From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12649 invoked by alias); 3 May 2012 06:54:54 -0000 Received: (qmail 12638 invoked by uid 22791); 3 May 2012 06:54:51 -0000 X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 06:54:38 +0000 Received: by vbbey12 with SMTP id ey12so1319672vbb.0 for ; Wed, 02 May 2012 23:54:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=9DFqLa5gOLC1bELMaG7cot9JTWVoxhdmeiFzuMqJk78=; b=QWBJkEcVV8OKvPaBkTj1j19VpnpSqT5YaLOS2x8ppex0p08WAjtDSFp0H7M1eqXXyX wfTq5LpkkJ7HDbOB6D6Vkpjadkrjy6VhW7uAVRgbYvSdcHeUb7F4AnnF9yElrcprUNKA W3Z1CEuBTn/aIVsybnu4o5RrWeu8r8OZda3SQHJUT+6QNeagS/w/3QOiG+/EiHpohKD6 06P2t0jxLjTKPV3L6RgXsLvO6lFQMx3fTpaiys1V28ARbvyVv+ek9p+BEw56d20rwRu5 UrcWD131irEe827qlmPEAfwi/NPRIMwPQ598ewzGGEjQqF/yB0ErEU4Y/GFW428BO6E+ ReNw== Received: by 10.52.172.172 with SMTP id bd12mr481152vdc.69.1336028077297; Wed, 02 May 2012 23:54:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.172.172 with SMTP id bd12mr481141vdc.69.1336028077168; Wed, 02 May 2012 23:54:37 -0700 (PDT) Received: by 10.52.165.2 with HTTP; Wed, 2 May 2012 23:54:37 -0700 (PDT) In-Reply-To: <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> <20120502231930.GA626@host2.jankratochvil.net> Date: Thu, 03 May 2012 06:54:00 -0000 Message-ID: Subject: Re: Crash on new testcase gdb.dwarf2/pr13961.exp [Re: Crash regression for gdb.ada/*.exp] From: Doug Evans To: Jan Kratochvil Cc: Tom Tromey , gdb-patches@sourceware.org, ccoutant@google.com, saugustine@google.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Gm-Message-State: ALoCoQlFgS2LjUPzPsHuF/CQFNRd9ze8RKFc+USurasZxub9fpZCEBHsAo4qn5RDkmy6vUhhaK4PbogDJGOKGvWsrT6aebg20Z+/zuN7V0HA0j6vZqOU8YVMhLZWdkOZsjXqaRVLXeVdSwyoKzjJPlaiUr160iXCpw== 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/msg00057.txt.bz2 On Wed, May 2, 2012 at 4:19 PM, Jan Kratochvil wrote: > 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: Serendipity. Fixed with this: 2012-05-02 Doug Evans * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no files. http://sourceware.org/ml/gdb-cvs/2012-05/msg00020.html Testcase enhanced with this: 2012-05-02 Doug Evans * gdb.dwarf2/pr13961.S: Add file and source location, but leave commented out. http://sourceware.org/ml/gdb-cvs/2012-05/msg00021.html > Program terminated with signal 11, Segmentation fault. > #0 =A00x000000000076e857 in dw2_find_symbol_file (objfile=3D0x3321c90, na= me=3D0x32f8d50 "main") at dwarf2read.c:2839 > 2839 =A0 =A0 =A0return file_data->file_names[file_data->num_file_names - = 1]; > (gdb) p file_data->num_file_names > $2 =3D 0 > (gdb) bt > #0 =A00x000000000076e857 in dw2_find_symbol_file (objfile=3D0x3321c90, na= me=3D0x32f8d50 "main") at dwarf2read.c:2839 > #1 =A00x00000000006db9b0 in find_main_filename () at symtab.c:1861 > #2 =A00x00000000006e8524 in set_initial_language () at symfile.c:1676 > #3 =A00x00000000006e784e in symbol_file_add_main_1 (args=3D0x32f8db0 "/ho= me/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.dwarf2/pr13961.x", from_tty= =3D1, flags=3D8) at symfile.c:1242 > #4 =A00x00000000006e84ae in symbol_file_command (args=3D0x2e3e415 "/home/= jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.dwarf2/pr13961.x", from_tty=3D1= ) at symfile.c:1640 > #5 =A00x0000000000751890 in file_command (arg=3D0x2e3e415 "/home/jkratoch= /redhat/gdb-clean/gdb/testsuite/gdb.dwarf2/pr13961.x", from_tty=3D1) at exe= c.c:365 > > >> =A0 =A0 =A0 =A0 * gdb.dwarf2/pr13961.S: New file. >> =A0 =A0 =A0 =A0 * gdb.dwarf2/pr13961.exp: New file. > > I see I missed the testfile name only as a PR, which is hard to remember. > > > Thanks, > Jan