From: "Elan Feingold" <efeingold@mn.rr.com>
To: <linux-kernel@vger.kernel.org>
Subject: Multithreaded core dumps
Date: Thu, 30 Aug 2001 00:21:06 -0500 [thread overview]
Message-ID: <000c01c13113$91d7c060$0400000a@gorilla> (raw)
Hi,
First post (although lurking on and off since 0.99pl14 or so), so please
be gentle.
We recently convinced my company to move from VxWorks to (embedded)
Linux. For better or worse, our application is heavily multithreaded.
It seems that current versions of Linux dump single-threaded core. I've
done a bit of research and it seems that:
- GDB is more than happy to load multiple register sets per core file.
- There are patches to the kernel dump multiple core files, one per LWP.
This is not really helpful in my case, since we're on an embedded
platform with little Flash to store cores. Besides, loading up gdb on
10-20 core files looking for the one that had the problem doesn't sound
very fun, as opposed to saying "info threads".
Because I am (not so) young and (very) foolish, it doesn't sound that
hard, at first (and uneducated) glance, to dump register sets for all
related LWPs to a single core file, even in a portable way across x86
and PPC architectures. Under SMP, it might be a bit trickier, but
Solaris manages to do it, so it can't be impossible, and capturing any
state for each thread would seem better than nothing at all, since all
the LWPs are about to die anyways. I'm considering using some of my
(copious) spare time and trying to patch the kernel to do this. I have
a few questions:
0. Am I wrong or confused about the state of postmortem multithreaded
debugging under Linux?
1. Is anyone else working on this? If not, why not? Am I missing
something?
2. If this is simply something that nobody is working on because other
things are more interesting, can anybody give me a few pointers on where
to start?
Best regards,
-elan
Aspiring Kernel Hacker
next reply other threads:[~2001-08-30 5:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-30 5:21 Elan Feingold [this message]
2001-08-30 5:50 ` Multithreaded core dumps Kip Macy
2001-08-30 8:24 ` Alan Cox
2001-08-30 9:03 ` Alexander Viro
2001-08-30 9:12 ` Alan Cox
2001-08-30 9:33 ` David S. Miller
2001-08-30 10:08 ` Alexander Viro
2001-08-30 8:16 ` Multithreaded core dumps (CLONE_THREAD and elf) Terje Eggestad
2001-08-30 9:19 ` Andreas Dilger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000c01c13113$91d7c060$0400000a@gorilla' \
--to=efeingold@mn.rr.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox