[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where's my core file ?



I don't know - on one of our systems (stock mandrake kernel 2.4.3) whenever
a thread (but not the main thread) crashes, it generates a core for every
thread on the application (including the main thread).
It is important to get a core for each thread, so you can know the status of
your application at the time of the crash - and the stacks of each thread is
a very important clue in it - other wise I may not even know where in the
application it crashes...

Oded

..
Rule of Creative Research:
 (1) Never draw what you can copy.
 (2) Never copy what you can trace.
 (3) Never trace what you can cut out and paste down.

----- Original Message -----
From: "guy keren" <choo@actcom.co.il>
To: "Oded Arbel" <odeda-linux-il@betalfa.org.il>
Cc: "Linux-IL mailing list" <linux-il@cs.huji.ac.il>
Sent: Tuesday, August 21, 2001 12:45 AM
Subject: Re: Where's my core file ?


>
> linux has problems with supporting core files for multi-threaded
> application - it doesn't realy work. i was surprised to find this out
> myself - but this seems to be the case (surely with kernel 2.2, and i'm
> almost sure its still so with kernel 2.4). on other systems, yu'll get a
> single core file (why several? all threads share their memory - only
> different stacks).
>
> the way around this? always have a debugger attached to your program, when
> you expect it to crash (i.e. test it). if you want to debug copies of the
> program not under a debugger - have your code generate very extensive
> logging information.
>
> --
> guy
>
> "For world domination - press 1,
>  or dial 0, and please hold, for the creator." -- nob o. dy
>
>


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il