From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,51a227bf1ca68db5,start X-Google-Attributes: gidfee84,public From: vinny_in_vancouver@my-dejanews.com Subject: Core Dump Stumper Date: 1999/04/22 Message-ID: <7fo6bi$af2$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 469696076 X-Http-Proxy: 1.0 x11.dejanews.com:80 (Squid/1.1.22) for client 192.75.23.74 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Apr 22 22:03:33 1999 GMT Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/4.05 [en] (X11; U; OSF1 V4.0 alpha) 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