Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to identify the exe file associated with core dump

4 views
Skip to first unread message

mthread

unread,
Jan 25, 2010, 4:54:26 AM1/25/10
to
Hi,
We have multiple applications(C & C++) running in our system. When
a core dump is generated we did not know which application caused the
core dump. Is there a way to find the application name from the core
dump file. Kindly help me on this issue.


Philip Pemberton

unread,
Jan 25, 2010, 5:26:31 AM1/25/10
to

Assuming this is on a *nix system of some description:
$ file core

Or possibly:
$ gdb core

(But this is more an OS-specific question, not a C++ question)

Vladimir Jovic

unread,
Jan 25, 2010, 5:29:25 AM1/25/10
to

See this:
http://www.sinz.org/Michael.Sinz/Linux/core.html


btw you are off topic here

Richard Herring

unread,
Jan 25, 2010, 5:27:40 AM1/25/10
to
In message
<41bbc3e2-fde8-431d...@g29g2000yqe.googlegroups.com>,
mthread <rjk...@gmail.com> writes
This has nothing to do with C++ (or C): your question would be identical
if the applications were written in Fortran or COBOL.. You're more
likely to get a useful response by asking in a newsgroup that deals with
your particular operating system.

--
Richard Herring

James Kanze

unread,
Jan 26, 2010, 7:49:10 PM1/26/10
to
On Jan 25, 10:27 am, Richard Herring <junk@[127.0.0.1]> wrote:
> In message
> <41bbc3e2-fde8-431d-b065-fc0782b62...@g29g2000yqe.googlegroups.com>,

That's true, but there's a rather obvious answer (which is valid
for all systems---and all languages): the core dump is from the
program which crashed; i.e. which didn't finish its job.

--
James Kanze

Jorgen Grahn

unread,
Feb 6, 2010, 7:11:15 PM2/6/10
to
[Linux kernel patch which lets you control the core dump file name]

Interesting, but in a way not helpful: since the core dump already
contains the process name, making the file name contain it too adds no
information.

Even more offtopic: I find naming core files counter-productive in
practice. If your software is broken and tends to crash, named core
dumps will eventually make someone decide to *disable* core dumps, to
avoid filling the disk. And then you are stuck with no information at
all for your C++ debugging sessions.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

0 new messages