public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27677] New: gdb print wrong address of global variable in coredump analysis
@ 2021-04-01 5:51 1371561216 at qq dot com
2021-04-01 13:41 ` [Bug gdb/27677] " simark at simark dot ca
0 siblings, 1 reply; 2+ messages in thread
From: 1371561216 at qq dot com @ 2021-04-01 5:51 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27677
Bug ID: 27677
Summary: gdb print wrong address of global variable in coredump
analysis
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: 1371561216 at qq dot com
Target Milestone: ---
OS: Ubuntu 18.04.5 LTS
gdb version: 8.1.1
Our team developed a program `main` that dlopen `/usr/lib/libxxx.so`. We now
have a coredump but not the `main` program. We try to analyze it by `gdb
/usr/lib/libxxx.so core`, and find it crashes at a function call inside
`libxxx.so`. But when trying to print the address of a global variable defined
in `libxxx.so`, gdb show the unrelocated address. If we change the gdb command
to `gdb /lib/x86_64-linux-gnu/libc.so.6 core` it then print the right value. I
guess the original address is overwritten.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug gdb/27677] gdb print wrong address of global variable in coredump analysis
2021-04-01 5:51 [Bug gdb/27677] New: gdb print wrong address of global variable in coredump analysis 1371561216 at qq dot com
@ 2021-04-01 13:41 ` simark at simark dot ca
0 siblings, 0 replies; 2+ messages in thread
From: simark at simark dot ca @ 2021-04-01 13:41 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27677
Simon Marchi <simark at simark dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simark at simark dot ca
--- Comment #1 from Simon Marchi <simark at simark dot ca> ---
Hi,
Could you please try with a more recent GDB, ideally the master branch?
If the problem still happens, please share some reproducer source code, along
with all the compilation and debugger commands to reach the problem.
Simon
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-01 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 5:51 [Bug gdb/27677] New: gdb print wrong address of global variable in coredump analysis 1371561216 at qq dot com
2021-04-01 13:41 ` [Bug gdb/27677] " simark at simark dot ca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).