Re: linuxThreads and coredumps

Patrick D Wildi (news@wildi.com)
Fri, 21 Jul 2000 10:31:50 -0700 (PDT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--0-1562830712-964200710=:26964
Content-Type: TEXT/PLAIN; charset=US-ASCII

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

--0-1562830712-964200710=:26964
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=pthr-kernel-patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSF.4.21.0007211031500.26964@shell7.ba.best.com>
Content-Description:
Content-Disposition: attachment; filename=pthr-kernel-patch

ZGlmZiAtdSBsaW51eC0yLjIuMTMvZnMvYmluZm10X2VsZi5jIGxpbnV4L2Zz
L2JpbmZtdF9lbGYuYw0KLS0tIGxpbnV4LTIuMi4xMy9mcy9iaW5mbXRfZWxm
LmMgIFN1biBKdW4gMTMgMTA6NTA6MDQgMTk5OQ0KKysrIGxpbnV4L2ZzL2Jp
bmZtdF9lbGYuYyAgICAgVHVlIE1hciAxNCAxNToxMzo0MiAyMDAwDQpAQCAt
MTA3Myw3ICsxMDczLDcgQEANCiANCiAgICAgICAgaWYgKCFjdXJyZW50LT5k
dW1wYWJsZSB8fA0KICAgICAgICAgICAgbGltaXQgPCBFTEZfRVhFQ19QQUdF
U0laRSB8fA0KLSAgICAgICAgICAgYXRvbWljX3JlYWQoJmN1cnJlbnQtPm1t
LT5jb3VudCkgIT0gMSkNCisgICAgICAgICAgICB0ZXN0X2FuZF9zZXRfYml0
KDMxLCAmY3VycmVudC0+bW0tPmRlZl9mbGFncykgIT0gMCkNCiAgICAgICAg
ICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgY3VycmVudC0+ZHVtcGFibGUg
PSAwOw0KIA0KDQo=
--0-1562830712-964200710=:26964--

-
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/