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

Christopher Blizzard (
Wed, 19 Nov 1997 09:29:57 -0500

In message <>, Philip Gladstone is rumored to have
:I have a patch for 2.0.32 that creates a multithreaded core dump
:(when a multithreaded process dies). I also have patches for gdb-4.16
:to allow it to read it. *However* I only have this implemented for
:i386, and I need someone who understands the other architectures to
:implement the following function:
: void get_pt_regs_for_task(struct pt_regs *regs,
: struct task_struct *task)
:i.e. a function that fills out a pt_regs structure for a random
:task (which is not the current task). This is pretty easy for
:the i386... (since it is already on the stack)
: Philip


I would personally be very interested in patches for this. Also, is there
a chance that something like this could be integrated into the mainstream
kernel? There is a need for it. It would be quite nice to be able to say
that 2.2 would core dump MT programs "correctly". :)


Christopher Blizzard
AppliedTheory Communications, Inc.