From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f1d5a8f73eb31a54 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-05-03 03:50:57 PST Path: newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3AF1380D.66A682BD@compaq.com> From: Dave Butenhof X-Mailer: Mozilla 4.77 [en] (X11; U; OSF1 V5.0 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Core file format References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 03 May 2001 06:50:53 -0400 NNTP-Posting-Host: 16.31.48.112 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 988887054 16.31.48.112 (Thu, 03 May 2001 03:50:54 PDT) NNTP-Posting-Date: Thu, 03 May 2001 03:50:54 PDT Organization: Compaq Computer Corporation Xref: newsfeed.google.com comp.unix.tru64:2155 Mikhail Isayev wrote: > I got some strange problem analyzing core files on Tru64. Both dbx and > ladebug show stack trace OK, if I run them on the same box there the > core has occured. If the box is different stack trace is full with > garbage. What's probably happened is that your two "boxes" also have different versions of the operating system installed, with different shared libraries. (They may even APPEAR to have the same version, from "uname" or even "sizer -v", but have different patch levels of one or more library.) If so, it's not the "stack trace" that's broken, but the attempt by the debugger to find NAMES for the addresses in the stack trace, because the code has moved around between versions. > What's the problem? Can I cure it? I mean can I extract the exception > location anyway, if my box is different? "Core file migration" is a topic covered by the ladebug user documentation. You can get it (along with the latest version of the debugger) off the web, from http://www.compaq.com/products/software/ladebug/. In particular, see the documentation section on "transported core files": ftp://ftp.compaq.com/pub/products/software/developer/ladebug_debugger_manual.html#at.core.tran > (Never had this problem on Solaris, though) I find it hard to see how any debugger could avoid this problem, unless the core file includes all the program text without needing to look at the real shared libraries. (Which would make for rather large core files, wasting an awful lot of space.) /------------------[ David.Butenhof@compaq.com ]------------------\ | Compaq Computer Corporation POSIX Thread Architect | | My book: http://www.awl.com/cseng/titles/0-201-63392-2/ | \-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/