Re: linuxThreads and coredumps

From: Patrick D Wildi (news@wildi.com)
Date: Fri Jul 21 2000 - 12:31:50 EST


On Fri, 21 Jul 2000, Yahoo Account wrote:

> Hi,
> I would like to get proper core files in my linux multithreaded application if I get
> any signals like segv, sigbus etc. Currently either manager threads becomes
> 'defunct' or the main thread dumps core which is useless since we can't know the faulty location. ( I agree that this is according to
> the Linux thread documentatiion) But this makes developement very difficult
> since we don't know the actual reason for the application to crash.
>
> I appreciate any kind of help

Here is a HACK I use to get around the problem. It abuses a
bit in mm->def_flags. It sets that for the first thread that
faults (normally the culprit) and dumps that one and none other.
It is against 2.2.13, but should work with later 2.2.x versions.

Patrick

> thanks,
> -jcj



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



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:16 EST