From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6032 invoked by alias); 2 May 2012 23:19:58 -0000 Received: (qmail 6024 invoked by uid 22791); 2 May 2012 23:19:58 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 May 2012 23:19:44 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q42NJgFj017036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 May 2012 19:19:43 -0400 Received: from host2.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q42NJVfA008149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 2 May 2012 19:19:35 -0400 Date: Wed, 02 May 2012 23:19:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: Tom Tromey , gdb-patches@sourceware.org, ccoutant@google.com, saugustine@google.com Subject: Crash on new testcase gdb.dwarf2/pr13961.exp [Re: Crash regression for gdb.ada/*.exp] Message-ID: <20120502231930.GA626@host2.jankratochvil.net> References: <20120418185511.0AED52461AF@ruffy.mtv.corp.google.com> <878vhi6vq1.fsf@fleche.redhat.com> <20120429090455.GA9848@host2.jankratochvil.net> <20120430013711.GA3186@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00047.txt.bz2 On Mon, 30 Apr 2012 18:55:07 +0200, Doug Evans wrote: > Can you check that it fixes the regression for you? This new testcase crashes with gdbindex: Program terminated with signal 11, Segmentation fault. #0 0x000000000076e857 in dw2_find_symbol_file (objfile=0x3321c90, name=0x32f8d50 "main") at dwarf2read.c:2839 2839 return file_data->file_names[file_data->num_file_names - 1]; (gdb) p file_data->num_file_names $2 = 0 (gdb) bt #0 0x000000000076e857 in dw2_find_symbol_file (objfile=0x3321c90, name=0x32f8d50 "main") at dwarf2read.c:2839 #1 0x00000000006db9b0 in find_main_filename () at symtab.c:1861 #2 0x00000000006e8524 in set_initial_language () at symfile.c:1676 #3 0x00000000006e784e in symbol_file_add_main_1 (args=0x32f8db0 "/home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.dwarf2/pr13961.x", from_tty=1, flags=8) at symfile.c:1242 #4 0x00000000006e84ae in symbol_file_command (args=0x2e3e415 "/home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.dwarf2/pr13961.x", from_tty=1) at symfile.c:1640 #5 0x0000000000751890 in file_command (arg=0x2e3e415 "/home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.dwarf2/pr13961.x", from_tty=1) at exec.c:365 > * gdb.dwarf2/pr13961.S: New file. > * gdb.dwarf2/pr13961.exp: New file. I see I missed the testfile name only as a PR, which is hard to remember. Thanks, Jan