Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Tom Tromey <tromey@redhat.com>,
	gdb-patches@sourceware.org, ccoutant@google.com,
		saugustine@google.com
Subject: Re: Crash on new testcase gdb.dwarf2/pr13961.exp [Re: Crash regression for gdb.ada/*.exp]
Date: Thu, 03 May 2012 06:54:00 -0000	[thread overview]
Message-ID: <CADPb22T+QO1WiNpF0zfE-ad3D1V-8akvFHFpGmOq5Ci2Qpe_NA@mail.gmail.com> (raw)
In-Reply-To: <20120502231930.GA626@host2.jankratochvil.net>

On Wed, May 2, 2012 at 4:19 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> 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  <dje@google.com>

        * 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  <dje@google.com>

        * 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  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


  reply	other threads:[~2012-05-03  6:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18 18:58 [RFA 2/3] Initial Fission support, rewrite DIE reading Doug Evans
2012-04-25 14:58 ` Doug Evans
2012-04-26 21:52 ` Tom Tromey
2012-04-26 23:05   ` Doug Evans
2012-04-29  9:17     ` Crash regression for gdb.ada/*.exp [Re: [RFA 2/3] Initial Fission support, rewrite DIE reading] Jan Kratochvil
2012-04-30  1:37       ` Doug Evans
2012-04-30  2:05         ` Jan Kratochvil
2012-04-30 17:09           ` Doug Evans
2012-04-30 17:19             ` Jan Kratochvil
2012-04-30 18:09               ` Doug Evans
2012-05-02 23:19             ` Crash on new testcase gdb.dwarf2/pr13961.exp [Re: Crash regression for gdb.ada/*.exp] Jan Kratochvil
2012-05-03  6:54               ` Doug Evans [this message]
2012-07-19  8:17             ` Crash regression for gdb.ada/*.exp [Re: [RFA 2/3] Initial Fission support, rewrite DIE reading] Andreas Schwab
2012-07-19 16:18               ` dje

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADPb22T+QO1WiNpF0zfE-ad3D1V-8akvFHFpGmOq5Ci2Qpe_NA@mail.gmail.com \
    --to=dje@google.com \
    --cc=ccoutant@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=saugustine@google.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox