From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11333 invoked by alias); 30 Jul 2012 19:55:09 -0000 Received: (qmail 11314 invoked by uid 22791); 30 Jul 2012 19:55:08 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_DW,TW_FC,TW_XC X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jul 2012 19:54:56 +0000 From: "hjl.tools at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14377] [7.5 Regression] JIT debug is broken Date: Mon, 30 Jul 2012 19:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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/msg00119.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14377 --- Comment #5 from H.J. Lu 2012-07-30 19:54:42 UTC --- Created attachment 6562 --> http://sourceware.org/bugzilla/attachment.cgi?id=6562 GDB chokes on it valgrind reports: ==23313== Invalid read of size 1 ==23313== at 0x639749: read_unsigned_leb128 (dwarf2read.c:13581) ==23313== by 0x628A6A: peek_die_abbrev (dwarf2read.c:6070) ==23313== by 0x628AFF: skip_children (dwarf2read.c:6098) ==23313== by 0x628FBC: locate_pdi_sibling (dwarf2read.c:6248) ==23313== by 0x6378D3: load_partial_dies (dwarf2read.c:12593) ==23313== by 0x625CB0: process_psymtab_comp_unit_reader (dwarf2read.c:4800) ==23313== by 0x62559E: init_cutu_and_read_dies (dwarf2read.c:4584) ==23313== by 0x62617B: process_psymtab_comp_unit (dwarf2read.c:4882) ==23313== by 0x6273CF: dwarf2_build_psymtabs_hard (dwarf2read.c:5377) ==23313== by 0x6232C6: dwarf2_build_psymtabs (dwarf2read.c:3704) ==23313== by 0x50F4E0: read_psyms (elfread.c:1467) ==23313== by 0x594529: require_partial_symbols (psymtab.c:88) ==23313== Address 0xcc467f3 is 0 bytes after a block of size 211 alloc'd ==23313== at 0x4A0884D: malloc (vg_replace_malloc.c:263) ==23313== by 0x6F8CEA: xmalloc (common-utils.c:50) ==23313== by 0x5EF3A8: gdb_bfd_map_section (gdb_bfd.c:485) ==23313== by 0x61EF3E: dwarf2_read_section (dwarf2read.c:1838) ==23313== by 0x62731A: dwarf2_build_psymtabs_hard (dwarf2read.c:5356) ==23313== by 0x6232C6: dwarf2_build_psymtabs (dwarf2read.c:3704) ==23313== by 0x50F4E0: read_psyms (elfread.c:1467) ==23313== by 0x594529: require_partial_symbols (psymtab.c:88) ==23313== by 0x59A782: syms_from_objfile (symfile.c:1002) ==23313== by 0x59A991: symbol_file_add_with_addrs_or_offsets (symfile.c:1105) ==23313== by 0x59AB8F: symbol_file_add_from_bfd (symfile.c:1195) ==23313== by 0x6F3D58: jit_bfd_try_read_symtab (jit.c:901) (top-gdb) p *orig_pdi $20 = {offset = {sect_off = 60}, tag = DW_TAG_subprogram, has_children = 1, is_external = 0, is_declaration = 0, has_type = 0, has_specification = 0, has_pc_info = 1, may_be_inlined = 0, scope_set = 0, has_byte_size = 0, has_template_arguments = 0, fixup_called = 0, is_dwz = 0, spec_is_dwz = 0, name = 0x31d2fcd "native runtime.js", linkage_name = 0x0, scope = 0x0, d = { locdesc = 0x0, offset = {sect_off = 0}}, lowpc = 28346582892064, highpc = 28346582892708, sibling = 0x0, spec_offset = {sect_off = 0}, die_parent = 0x0, die_child = 0x0, die_sibling = 0x0} (top-gdb) -- 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.