From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21583 invoked by alias); 18 Aug 2012 13:42:36 -0000 Received: (qmail 21563 invoked by uid 22791); 18 Aug 2012 13:42:34 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Aug 2012 13:42:22 +0000 From: "arjan at linux dot intel.com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14494] New: gdb crashes in bfd_getl16 on debuginfo file Date: Sat, 18 Aug 2012 13:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arjan at linux dot intel.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q3/txt/msg00240.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14494 Bug #: 14494 Summary: gdb crashes in bfd_getl16 on debuginfo file Product: gdb Version: 7.5 Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: arjan@linux.intel.com Classification: Unclassified Created attachment 6590 --> http://sourceware.org/bugzilla/attachment.cgi?id=6590 the libc.so file that causes the crash gdb -readnow /usr/lib/debug/lib64/libc-2.16.so.debug gives the following backtrace: #0 bfd_getl16 (p=0x7fd47abc965b) at libbfd.c:570 #1 0x000000000057333a in read_2_bytes (buf=0x7fd47abc965b
, abfd=) at dwarf2read.c:13088 #2 dwarf_parse_macro_header (opcode_definitions=opcode_definitions@entry=0x7fff1d59ddf0, abfd=abfd@entry=0x26ed6c0, mac_ptr=0x7fd47abc965b
, offset_size=offset_size@entry=0x7fff1d59dde8, section_is_gnu=section_is_gnu@entry=1) at dwarf2read.c:17156 #3 0x000000000057c1ac in dwarf_decode_macros (cu=cu@entry=0x27929b0, offset=5835, comp_dir=0x7fd47c59d368
, section_is_gnu=section_is_gnu@entry=1) at dwarf2read.c:17509 #4 0x0000000000589a81 in read_file_scope (cu=, die=) at dwarf2read.c:7691 #5 process_die (die=, cu=cu@entry=0x27929b0) at dwarf2read.c:6872 #6 0x000000000058d7da in process_full_comp_unit (pretend_language=language_minimal, per_cu=0x2702790) at dwarf2read.c:6680 #7 process_queue () at dwarf2read.c:6250 #8 dw2_do_instantiate_symtab (per_cu=per_cu@entry=0x2702790) at dwarf2read.c:2177 #9 0x000000000058dd2c in dw2_instantiate_symtab (per_cu=0x2702790) at dwarf2read.c:2198 #10 0x000000000058e192 in dw2_expand_all_symtabs (objfile=) at dwarf2read.c:3136 #11 0x0000000000509996 in symbol_file_add_with_addrs_or_offsets (abfd=, add_flags=6, addrs=addrs@entry=0x0, flags=, flags@entry=0, parent=parent@entry=0x0, num_offsets=0, offsets=0x0) at symfile.c:1126 #12 0x0000000000509c4a in symbol_file_add_from_bfd (abfd=, add_flags=, addrs=addrs@entry=0x0, flags=flags@entry=0, parent=parent@entry=0x0) at symfile.c:1198 #13 0x0000000000509c91 in symbol_file_add (name=name@entry=0x7fff1d59fdaa "/usr/lib/debug/lib64/libc-2.16.so.debug", add_flags=, addrs=addrs@entry=0x0, flags=flags@entry=0) at symfile.c:1210 #14 0x000000000050a045 in symbol_file_add_main_1 (args=0x7fff1d59fdaa "/usr/lib/debug/lib64/libc-2.16.so.debug", from_tty=1, flags=0) at symfile.c:1235 #15 0x000000000052e6cf in catch_command_errors (command=0x50a1a0 , arg=arg@entry=0x7fff1d59fdaa "/usr/lib/debug/lib64/libc-2.16.so.debug", from_tty=1, mask=mask@entry=6) at exceptions.c:573 #16 0x0000000000530add in captured_main (data=data@entry=0x7fff1d59ea80) at main.c:899 (the crash happens also on a regular "bt" command of some crashed application, but this is the easiest testcase) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.