This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug backtrace/16158] New: Nonsensical backtrace values for malloc
- From: "ajax at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 12 Nov 2013 20:25:07 +0000
- Subject: [Bug backtrace/16158] New: Nonsensical backtrace values for malloc
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16158
Bug ID: 16158
Summary: Nonsensical backtrace values for malloc
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: backtrace
Assignee: unassigned at sourceware dot org
Reporter: ajax at redhat dot com
Fedora 20ish:
% gdb -q /usr/bin/Xvfb
(gdb) break get_bool_value
(gdb) run -ac -pogo -screen 0 1024x768x24 :34
...
Breakpoint 1, get_bool_value (
name=name@entry=0x5754b5 "xserver_object_manager",
buf=buf@entry=0x7fffffffdf80) at booleans.c:201
201 {
(gdb) break malloc
Breakpoint 2 at 0x38dc816790: malloc. (2 locations)
(gdb) cont
Continuing.
Breakpoint 2, __GI___libc_malloc (bytes=140737488347008) at malloc.c:2845
2845 {
(gdb) bt 2
#0 __GI___libc_malloc (bytes=140737488347008) at malloc.c:2845
#1 0x00000038de417695 in get_bool_value (
name=name@entry=0x5754b5 "xserver_object_manager",
buf=buf@entry=0x7fffffffdf80) at booleans.c:210
(More stack frames follow...)
(gdb) p /x 140737488347008
$1 = 0x7fffffffdf80
Note how 'bytes' is numerically equal to 'buf's address.
Relevant package versions:
gdb-7.6.50.20130731-16.fc20.x86_64
xorg-x11-server-Xorg-1.14.3-4.fc20.x86_64
libselinux-2.1.13-19.fc20.x86_64
--
You are receiving this mail because:
You are on the CC list for the bug.