From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Drago Krznaric <drago.krznaric@spray.se>
Cc: gdb@sourceware.org
Subject: Re: examining a core dump on a machine with other base addresses in shared libraries
Date: Wed, 27 May 2009 23:47:00 -0000 [thread overview]
Message-ID: <8ac60eac0905271646g2a775639sbe9a97d587fdc943@mail.gmail.com> (raw)
In-Reply-To: <1243457555.17311.4.camel@localhost.localdomain>
On Wed, May 27, 2009 at 1:52 PM, Drago Krznaric <drago.krznaric@spray.se> wrote:
> I have a program and a core dump created on machine A that I copy to
> machine B. I can open the core dump and get a nice backtrace on A but
> not on B. The reason appears to be that the shared libraries on A and B
> have different base addresses. They are otherwise exactly identical in
> hardware and software (RedHat 4).
Are you absolutely sure the libc binaries are identical between A and B?
We see a lot of similar GDB failures due to mismatch between libc versions
(but we don't use prelink).
You could verify whether prelink is the problem, by copying B:libc.so.6 and
B:ld-linux.so.2 to e.g. /tmp/lib, manually prelinking them to the same
address A:libc.so.6 and A:ld-linux.so.2 were prelinked at, and verifying
they "work" (set solib-absolute-prefix /tmp in GDB before loading the core).
I think you should also get identical (as in md5sum-identical) binary
for B:/tmp/lib/libc.so.6 and A:/lib/libc.so.6
Cheers,
--
Paul Pluzhnikov
next prev parent reply other threads:[~2009-05-27 23:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 20:52 Drago Krznaric
2009-05-27 21:41 ` Jan Kratochvil
2009-05-28 6:08 ` Drago Krznaric
2009-05-27 23:47 ` Paul Pluzhnikov [this message]
2009-05-28 20:29 ` Drago Krznaric
2009-05-31 4:51 ` Hui Zhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ac60eac0905271646g2a775639sbe9a97d587fdc943@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=drago.krznaric@spray.se \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox