is it possible to find which process dumped core

Georg Brandl g.brandl-nospam at gmx.net
Mon Jun 5 14:22:22 EDT 2006


Steve Holden wrote:
> su wrote:
>> to find which process dumped core at the promt we give
>> 
>> $ file core.28424
>> 
>> core.28424: ELF 32-bit LSB core file of 'soffice.bin' (signal 11),
>> Intel 80386, version 1 (SYSV), from 'soffice.bin'
>> 
>> from this command we know 'soffice.bin' process dumped core. Now can i
>> do the same using python i.e. finding which process dumped core?  if so
>> how can i do it?
>> 
> Unfortunately, without some debugging, all you are likely to find is 
> that /usr/bin/python (or some other interpreter executable) dumped core.
> 
> You'd have to poke around inside the core image to find out which file 
> was being executed when the interpreter failed.

I think he didn't want to analyze a Python core dump.

su: look into /usr/share/file/magic or whatever it's called on your box
to see where "file" looks for the executable name.

Georg



More information about the Python-list mailing list