Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Decoding stack in core file without correct libs?
@ 2017-07-13  9:25 Pierre Ossman
  2017-07-13  9:55 ` Dmitry Samersoff
  2017-07-13 15:22 ` Jan Kratochvil
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Ossman @ 2017-07-13  9:25 UTC (permalink / raw)
  To: gdb

Hi,

I'd like to see if there is a way to produce binaries so that gdb can 
walk the stack in a core dump even if the libraries gdb sees doesn't 
match the libraries when the core dump was generated.

My scenario is simply that we might get crashes at customer sites. 
Rather than getting some kind of remote access up an running, it would 
be easier to have them send us a core dump from the crash. We then load 
the core file together with a binary with debug symbols on our end.

Unfortunately gdb doesn't traverse the stack correctly if the crash is 
in a system library. We just get random addresses for each frame.

It's okay that we cannot get the proper symbols or local variables for 
frames that are in system libraries, but is there some way to get access 
to the frames that are in our binary?

Regards
-- 
Pierre Ossman           Software Development
Cendio AB               https://cendio.com
Teknikringen 8          https://twitter.com/ThinLinc
583 30 Linköping        https://facebook.com/ThinLinc
Phone: +46-13-214600    https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-13 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-13  9:25 Decoding stack in core file without correct libs? Pierre Ossman
2017-07-13  9:55 ` Dmitry Samersoff
2017-07-13 10:21   ` Pierre Ossman
2017-07-13 15:22 ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox