From: vinny_in_vancouver@my-dejanews.com
Subject: Core Dump Stumper
Date: 1999/04/22 [thread overview]
Message-ID: <7fo6bi$af2$1@nnrp1.dejanews.com> (raw)
When I try to analyse some core dumps we got, I
seem to be seeing some unexpected results. I'd
like to ask you gurus about what the results mean.
Here's the situation:
(1) the application we built on DU4 is linked to
another applications' libraries
(2) all of our own code were compiled with in
debug mode ('-g')
(3) we build the libraries and executables in
debug mode. Before we package them into the kit,
we strip the libraries and executables.
(4) on one of our customer sites, the application
crashed.
(5) we got the core file. I relinked the same
libraries and executable so that they are not
stripped. I then run the non-stripped executable
with the core file in decladebug. When I do a
where on each of the threads which the core file
is reporting, it does not mention any of our
code at all! Does this mean that the crash
did not occur in our code?
The results I am expecting is that it will at the
very least mention some parts of our own code.
I expect these results based on the tests I ran
based on the advice of one of the
UNIX gurus in one of the UNIX newsgroups:
"Compiling with debug on, saving the debug version,
and then stripping off the symbolic information to
produce a release version is the way to go.
This allows you to do what I humbly call backstrapping.
When the release version cores, load it into dbx but
point dbx to the debug version of your executable.
Presto, the symbolic information is there at your
disposal and with correct displacements."
I tried what the UNIX guru advised by writing code
which intentionally crashes and then stripping the
libraries and executables and then causing the crash
and then taking a look at the core using non-stripped
executables and libraries, and he's right: "Presto,
the symbolic information is there" at our disposal.
My question is: if I do not see any mention of any
of the code we wrote in the core file using the
debugger, does that mean that the crash
occurred in code outside of our own?
Btw, do you know of any good sources for analysing
core files in OSF1?
Vinny
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
next reply other threads:[~1999-04-22 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-22 4:00 vinny_in_vancouver [this message]
1999-04-23 4:00 ` Core Dump Stumper Adam Price
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox