* Determining if process is having core dump
@ 2004-06-07 10:21 Nirendra Awasthi
2004-06-07 12:22 ` Nirendra Awasthi
0 siblings, 1 reply; 2+ messages in thread
From: Nirendra Awasthi @ 2004-06-07 10:21 UTC (permalink / raw)
To: linux-mm
Hi,
Is there a way for a unrelated process to determine if another process
is exiting and is in the state of having core dump.
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.
Is there some other way to determine this. I don't want to limit size
of core file to 0 using ulimit, as this file is required to be analyzed
later.
Also, while process is exiting and it receives another signal, it is
corrupting the core dump.
-Nirendra
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Determining if process is having core dump
2004-06-07 10:21 Determining if process is having core dump Nirendra Awasthi
@ 2004-06-07 12:22 ` Nirendra Awasthi
0 siblings, 0 replies; 2+ messages in thread
From: Nirendra Awasthi @ 2004-06-07 12:22 UTC (permalink / raw)
To: linux-mm
Another problem I noticed is, while sending SIBABRT (or any signal which
causes core dump) to process already having core dump results in
corrupting core.
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 ?? ()
-Nirendra
Nirendra Awasthi wrote:
> Hi,
> Is there a way for a unrelated process to determine if another
> process is exiting and is in the state of having core dump.
>
> 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.
>
> Is there some other way to determine this. I don't want to limit
> size of core file to 0 using ulimit, as this file is required to be
> analyzed later.
> Also, while process is exiting and it receives another signal, it is
> corrupting the core dump.
>
> -Nirendra
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-07 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-07 10:21 Determining if process is having core dump Nirendra Awasthi
2004-06-07 12:22 ` Nirendra Awasthi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox