Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Dave Butenhof <David.Butenhof@compaq.com>
Subject: Re: Core file format
Date: Thu, 03 May 2001 06:50:53 -0400	[thread overview]
Message-ID: <3AF1380D.66A682BD@compaq.com> (raw)
In-Reply-To: lb0ketottj9ai8j3e5g7bsaq33djdij1pl@4ax.com

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 ]-----/



      reply	other threads:[~2001-05-03 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 23:37 Core file format Mikhail Isayev
2001-05-03 10:50 ` Dave Butenhof [this message]
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