Re: is it possible to find which process dumped core

2006-06-06 Thread [EMAIL PROTECTED]
if your core is from a python program you can check what file/function was running use this gdb macro: define pbt set $i = 0 set $j = 0 while $i < 1000 select $i if $eip >= &PyEval_EvalFrame if $eip < &PyEval_EvalCodeEx echo c frame # p $i echo py frame # p $j set $j

Re: is it possible to find which process dumped core

2006-06-05 Thread Georg Brandl
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 du

Re: is it possible to find which process dumped core

2006-06-05 Thread Serge Orlov
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 sam

Re: is it possible to find which process dumped core

2006-06-05 Thread Steve Holden
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

Re: is it possible to find which process dumped core

2006-06-05 Thread K.S.Sreeram
su wrote: > 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? You're best bet would be to run the 'file' program using the subprocess module and parse the output that it generates. Re