public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug backtrace/16158] New: Nonsensical backtrace values for malloc
@ 2013-11-12 20:25 ajax at redhat dot com
  0 siblings, 0 replies; only message in thread
From: ajax at redhat dot com @ 2013-11-12 20:25 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-12 20:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12 20:25 [Bug backtrace/16158] New: Nonsensical backtrace values for malloc ajax at redhat dot com

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).