From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98988 invoked by alias); 27 Feb 2018 23:23:02 -0000 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 Received: (qmail 98964 invoked by uid 89); 27 Feb 2018 23:23:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_1,KAM_SHORT,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=UD:rs, 1130 X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Feb 2018 23:23:00 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B814D40FB65B; Tue, 27 Feb 2018 23:22:58 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2C9452144B21; Tue, 27 Feb 2018 23:22:58 +0000 (UTC) Subject: Re: [RFA v2 3/4] Convert Rust to use discriminated unions To: Tom Tromey , gdb-patches@sourceware.org References: <20180222203018.23551-1-tom@tromey.com> <20180222203018.23551-4-tom@tromey.com> From: Pedro Alves Message-ID: <7b49787a-458f-af22-bfb3-607859f7815e@redhat.com> Date: Tue, 27 Feb 2018 23:23:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180222203018.23551-4-tom@tromey.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-02/txt/msg00433.txt.bz2 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: . 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