Re: core dumps from multi-threaded (kernel cloned) processes

Christopher Blizzard (blizzard@AppliedTheory.com)
Fri, 14 Nov 1997 15:12:22 -0500


In message <346CA4A6.3978E179@raptor.com>, Philip Gladstone is rumored to have
said:
:kwrohrer@enteract.com wrote:
:I'm a little unclear on the semantics of posix threads and seg faults --
:namely if the signal is not caught, does the whole process die, or just
:that
:thread? If the former case, then I'd just terminate the whole
:heavyweight
:process, but if the latter case, then I think that the linux pthreads is
:behaving incorrectly.
:

Unfortunately, the way that it works in Linux is that each thread has it's
own process...sort of. Signals are delivered to each "process" seperately
and the pthreads library does it's best to deliver them according to the
specification. This doesn't work very well with regards to core dumps or
debugging.

--Chris

:by the way, does nayone know if where the ELF core file spec is -- which
:defines the notes of type "CORE"? [I have the ELF spec itself...]
:
:Philip
:--
:Philip Gladstone +1 617 487 7700
:Raptor Systems, Waltham, MA http://www.raptor.com/
:Our new daughter: http://www.mwmc.com/Extweb/Cybernursery/17423662.htm
:
------------
Christopher Blizzard
AppliedTheory Communications, Inc.
http://odin.appliedtheory.com/
blizzard@appliedtheory.com
------------