[lkml]   [2000]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Anyone working on multi-threaded core files for 2.4 ?

> Open question: whether or not to allow the remaining threads to
> continue once the dump is completed, to abort them, or to signal
> them. Probably should be run time configurable.

I was expecting to take the Posix thread style viewpoint in which any
of the core dumping signals kill the _process_, so all of the threads
are necessarily dead thereafter since they have nowhere to live any

This approach is certainly what people migrating from other Unixen
expect. (And, killing everyone is also what Linux threads

Andreas Dilger <> was kind enough to point out
that there have been a couple of recent postings (which I failed to
find in my original search :-() which claim already to have
implemented this, and provided patches :-

Terje Malmedal <>:

The Malmedal patch is not actually a patch to generate a
multi-threaded core file, rather it generates a separate complete core
file for each thread. I will not consider this further.

Jason Villarreal <>:

The Villarreal patch is exactly the kind of thing I was thinking
of. It generates a standard multi-threaded ELF core file.

I _think_, but would need to read it in more detail to be sure, that
it assumes that all of the threads in the process are sent the
signal which forced the dump. It then lets the last one out actually
write the file including the thread specific data recorded by all of
the previous threads to exit.

Since the Villarreal patch exists and seems to do all that I wanted, I
don't propose to create a competing patch.

Maybe you kernel gurus could point out any problems with the Villarreal
approach ?

-- Jim

James Cownie <>
Etnus, LLC. +44 117 9071438

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:1.841 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site