Re: Core dumps for threads

Chris Wedgwood (cw@f00f.org)
Mon, 26 Feb 2001 00:03:09 +1300


On Sun, Feb 25, 2001 at 11:28:14AM +0100, Andi Kleen wrote:

It would need a recursive mm semaphore -- core dumps can page
fault and page faults take the semaphore again. Other alternative
is to copy the MM like fork before dumping, but then core dumping
could fail much quicker when you ran out of memory.

Ouch... would creating another semaphore or flag 'dumping_core' work
or is that jut a bad idea?

I ask this because like it or not; people use threaded applications
and having threaded core dumps would be cool. Requiring a copy to
dump isn't really elegant or an option if you run a process who's RSS
is 400M on a 512MB machine as I do.

--cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/