From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24824 invoked by alias); 8 Feb 2013 16:38:39 -0000 Received: (qmail 24738 invoked by uid 22791); 8 Feb 2013 16:38:37 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from us02smtp1.synopsys.com (HELO vaxjo.synopsys.com) (198.182.60.75) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Feb 2013 16:38:33 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by vaxjo.synopsys.com (Postfix) with ESMTP id A4157E302 for ; Fri, 8 Feb 2013 08:38:32 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 8B406BC0 for ; Fri, 8 Feb 2013 08:38:32 -0800 (PST) Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 83D46BBF for ; Fri, 8 Feb 2013 08:38:32 -0800 (PST) Received: from DE02WEHTC2.internal.synopsys.com (10.225.19.82) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.2.298.4; Fri, 8 Feb 2013 08:38:32 -0800 Received: from DE02WEMBX2.internal.synopsys.com ([fe80::e51d:dd29:ce50:4455]) by DE02WEHTC2.internal.synopsys.com ([::1]) with mapi id 14.02.0298.004; Fri, 8 Feb 2013 17:38:29 +0100 From: Kai Schuetz To: "gdb@sourceware.org" Subject: Crash triggered by DWARF debug info: Any ideas ? Date: Fri, 08 Feb 2013 16:38:00 -0000 Message-ID: <15151570812B8041A31A98C098B7E75104291D@DE02WEMBX2.internal.synopsys.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00021.txt.bz2 Hi, I'm looking into some crash in gdb 7.5.1 in the DWARF reader. The DWARF (v3) debug info in the case is pretty basic (it was generated by = the "ARM Assembler", version 4.0). The .debug_info section just consists of a single debug info entry for each= compilation unit, consisting of name, producer, comp_dir, low_pc, high_pc = and stmt_list. The .debug_line section contains line statements for the com= pilation units. When symbol loading is triggered in gdb it crashes inside of record_block_r= ange due to "block" being 0. This is due to end_symtab_get_static_block() returning 0 when called in pro= cess_full_comp_unit(). Highpc and lowpc look reasonable at this point. (I also tried skipping the call of dwarf2_record_block_ranges() if "static_= block" is 0, however this lead to lots of warnings about psymtabs and symta= bs being inconsistent (warning: (Internal error: pc 0x178 in read in psymta= b, but not in symtab.)), and the source line mapping not working). Any idea what to hunt for ? Thanks, Kai