From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [RFA v2 3/4] Convert Rust to use discriminated unions
Date: Tue, 27 Feb 2018 23:23:00 -0000 [thread overview]
Message-ID: <7b49787a-458f-af22-bfb3-607859f7815e@redhat.com> (raw)
In-Reply-To: <20180222203018.23551-4-tom@tromey.com>
Hi Tom,
I was comparing test results from 20180207 and today, I
noticed that gdb.rust/simple.exp regressed:
~~~~~~
Running src/gdb/testsuite/gdb.rust/simple.exp ...
-PASS: gdb.rust/simple.exp: print a
-PASS: gdb.rust/simple.exp: ptype a
-PASS: gdb.rust/simple.exp: print sizeof(a)
-PASS: gdb.rust/simple.exp: print b
(...)
+UNTESTED: gdb.rust/simple.exp: could not run to breakpoint
~~~~~~
Looking at gdb.log I see:
~~~~~~~~~~~~~~~~~~~~~~
gdb) break simple.rs:152
src/gdb/dwarf2read.c:10367: internal-error: discriminant_info* alloc_discriminant_info(type*, int, int): Assertion `default_index == -1 || (default_index > 0 && default_index < TYPE_NFIELDS (type))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) Resyncing due to internal error.
n
This is a bug, please report it. For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.
src/gdb/dwarf2read.c:10367: internal-error: discriminant_info* alloc_discriminant_info(type*, int, int): Assertion `default_index == -1 || (default_index > 0 && default_index < TYPE_NFIELDS (type))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Command aborted.
(gdb) UNTESTED: gdb.rust/simple.exp: could not run to breakpointt
~~~~~~~~~~~~~~~~~~~~~~
I haven't bisected, but the references to discriminant info make me suspect
this patch I'm replying to.
This is Fedora 27 with:
$ rustc --version
rustc 1.13.0 (2c6933acc 2016-11-07)
Thanks,
Pedro Alves
next prev parent reply other threads:[~2018-02-27 23:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-22 20:30 [RFA v2 0/4] variants and variant parts Tom Tromey
2018-02-22 20:30 ` [RFA v2 1/4] Sign-extend non-bit-fields in unpack_bits_as_long Tom Tromey
2018-02-26 6:45 ` Joel Brobecker
2018-02-22 20:30 ` [RFA v2 4/4] Handle DW_TAG_variant_part and DW_TAG_variant Tom Tromey
2018-02-26 6:56 ` Joel Brobecker
2018-02-26 16:16 ` Tom Tromey
2018-02-22 20:30 ` [RFA v2 2/4] Initial support for variant parts Tom Tromey
2018-02-26 6:49 ` Joel Brobecker
2018-02-22 20:30 ` [RFA v2 3/4] Convert Rust to use discriminated unions Tom Tromey
2018-02-26 6:50 ` Joel Brobecker
2018-02-27 23:23 ` Pedro Alves [this message]
2018-02-28 0:23 ` Tom Tromey
2018-04-10 20:36 ` -readnow crash Rust regression [Re: [RFA v2 3/4] Convert Rust to use discriminated unions] Jan Kratochvil
2018-04-11 2:52 ` Tom Tromey
2018-04-11 7:04 ` Jan Kratochvil
2018-04-11 19:49 ` Tom Tromey
2018-04-12 18:10 ` Tom Tromey
2018-04-12 18:45 ` Keith Seitz
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=7b49787a-458f-af22-bfb3-607859f7815e@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).