public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Core file getting corrupted
@ 2004-06-08  8:46 Nirendra Awasthi
  0 siblings, 0 replies; only message in thread
From: Nirendra Awasthi @ 2004-06-08  8:46 UTC (permalink / raw)
  To: linux-kernel

Hi,

    Sending SIBABRT (or any signal that causes core dump) to a process 
which is already having core dump results in corrupting core file.

Following is the output while analyzing core with gdb:

Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0xffffe411 in ?? ()

I created the process with large core, and on sending SIGABRT and 
SIGQUIT signal to process successively, "most" of the time core file 
gets corrupted.

     Is there a way for a unrelated process to determine if another 
process is exiting and is in the state of having core dump, so it does 
not try to send another signal.



         In solaris, this can be determined using libkvm(checking 
process flags for SDOCORE and COREDUMP). Is there a way to do this in 
linux 2.6

     One of the things I observed is flag in /proc/<pid>/stat (9th 
attribute) is set to non-zero after process receives a signal to quit 
after core dump (SIGABRT, SIGQUIT etc.). Is it an indication that 
process is going to exit or what does it indicates.

-Nirendra


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-08  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08  8:46 Core file getting corrupted Nirendra Awasthi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox