public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17133] New: gdb can't load libraries with >2G .debug_info sections
@ 2014-07-09  8:54 amodra at gmail dot com
  2014-07-09  9:01 ` [Bug gdb/17133] " amodra at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: amodra at gmail dot com @ 2014-07-09  8:54 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17133

            Bug ID: 17133
           Summary: gdb can't load libraries with >2G .debug_info sections
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: amodra at gmail dot com

dwarf2read.c:dwarf2_read_section uses obstack_alloc to allocate a buffer for
section contents.  I've just been looking at a gdb crash when trying to load a
shared library with a .debug_info section of 0x825b9155 bytes.

The trouble is that obstack_alloc takes an "int size" parameter.  "size" is
therefore negative and we go off the rails fairly quickly.  See
include/obstack.h.

So we have a 2G limit, even when gdb is 64-bit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-08-04 11:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09  8:54 [Bug gdb/17133] New: gdb can't load libraries with >2G .debug_info sections amodra at gmail dot com
2014-07-09  9:01 ` [Bug gdb/17133] " amodra at gmail dot com
2014-07-10  8:44 ` jan.kratochvil at redhat dot com
2014-07-10 13:29 ` amodra at gmail dot com
2014-07-10 14:28 ` dje at google dot com
2014-07-11 15:52 ` tromey at redhat dot com
2014-07-11 16:01 ` amodra at gmail dot com
2014-07-11 16:42 ` dje at google dot com
2014-07-11 17:59 ` dje at google dot com
2014-08-04 11:17 ` fweimer 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).