* Core Dump Stumper
@ 1999-04-22 4:00 vinny_in_vancouver
1999-04-23 4:00 ` Adam Price
0 siblings, 1 reply; 2+ messages in thread
From: vinny_in_vancouver @ 1999-04-22 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Core Dump Stumper
1999-04-22 4:00 Core Dump Stumper vinny_in_vancouver
@ 1999-04-23 4:00 ` Adam Price
0 siblings, 0 replies; 2+ messages in thread
From: Adam Price @ 1999-04-23 4:00 UTC (permalink / raw)
I am not a programmer, but ...
How about a buffer overflow, I know from the security newsgroups that these
can be deliberately exploited to cause the stack to be executed, so why not
accidentally, this would mean that the problem was with your code, but that
the crash was in some other chunk of memory.
Not much comfort I know, but have you tried to reproduce the error in the
new version with your symbol information ? This may give you better core
dumps.
Sorry I can't be more helpful,
Adam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-23 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-22 4:00 Core Dump Stumper vinny_in_vancouver
1999-04-23 4:00 ` Adam Price
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox