From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 4AE2F385800F for ; Tue, 6 Sep 2022 14:25:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4AE2F385800F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 371F2AE9BE; Tue, 6 Sep 2022 16:25:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XTEUGK7cNL0z; Tue, 6 Sep 2022 16:25:22 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p5085519d.dip0.t-ipconnect.de [80.133.81.157]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 65343AEBA3; Tue, 6 Sep 2022 16:25:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1662474322; bh=vhB//zXMQQJmaFeCkgjwqAFgRAstWgP/wS0g3wVdsPo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QIJfHgds82/RZwOi2CYQDD7Y7RB/EMW5UjmjBkEfdyRxkpDY6dkdajP7/Yy2J0/wv IBC/7SM0frhMt0CQFfhnHtpnNy+DKiuSmeuuLpNc+zUcjO4NYRMsrwHVvYSsfr3PuE FVjIhgZqRnnLDNw66ytInPbdCn4DI2oMbNeEr4LmfbPTQHVcvqRgGPlgrUtez+aQzf 5SZ74BEqPy6Egq8iQKgmLmwHpB1ggJ6L1eCI50kSdnLEWwh3ZynnlbNo7PpecmM3WS mRtbf/yQz0oDP9XwUSyr7kdKLb1baUgFOJXift8v8vDLU4da5INf+SZC+kHVZh5ZO/ z15/MizVj6tAQ== From: Rainer Orth To: Iain Buclaw Cc: Iain Buclaw via Gcc-patches , Joseph Myers , Richard Biener Subject: Re: [PATCH] d: Fix #error You must define PREFERRED_DEBUGGING_TYPE if DWARF is not supported (PR105659) References: <20220816211627.209433-1-ibuclaw@gdcproject.org> <1661946124.o8swlumpp1.astroid@pulse.none> <1661972814.ht3t1le0d2.astroid@pulse.none> <1662134159.ozionptp0l.astroid@pulse.none> <1662461291.9qhrd4im4r.astroid@pulse.none> <1662473974.qwin0prel4.astroid@pulse.none> Date: Tue, 06 Sep 2022 16:25:21 +0200 In-Reply-To: <1662473974.qwin0prel4.astroid@pulse.none> (Iain Buclaw's message of "Tue, 06 Sep 2022 16:19:53 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3788.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Iain, >> there is indeed ;-) The previous d21 emits >> >> binary ./266566/gcc/d21 >> version v2.100.1 >> >> predefs GNU D_Version2 LittleEndian GNU_DWARF2_Exceptions >> GNU_StackGrowsDown GNU_InlineAsm assert D_PreConditions D_PostConditions >> D_Invariants D_ModuleInfo D_Exceptions D_TypeInfo all X86 D_HardFloat >> Posix Solaris CppRuntime_Gcc >> >> while the patched one gives >> >> core.exception.ArrayIndexError@/var/gcc/reghunt/master/gcc/d/dmd/root/stringtable.d(291): >> index [3530971477] is out of bounds for array of length 0 >> gcc.deh(505): uncaught exception >> : internal compiler error: Abort >> 0x96d5b6c crash_signal >> /var/gcc/reghunt/master/gcc/toplev.cc:314 >> > > Excellent, and the stage1 compiler? binary ./prev-gcc/d21 version v2.100.1 predefs GNU D_Version2 LittleEndian GNU_DWARF2_Exceptions GNU_StackGrowsDown GNU_InlineAsm assert D_PreConditions D_PostConditions D_Invariants D_ModuleInfo D_Exceptions D_TypeInfo all X86 D_HardFloat Posix Solaris CppRuntime_Gcc So identical to the pre-patch one. Just in case, here's the stacktrace of the crashing d21, filtered through c++filt -s dlang: Thread 2 received signal SIGABRT, Aborted. [Switching to Thread 1 (LWP 1)] 0xfe1be2e5 in __lwp_sigqueue () from /lib/libc.so.1 (gdb) bt #0 0xfe1be2e5 in __lwp_sigqueue () from /lib/libc.so.1 #1 0xfe1b62cf in thr_kill () from /lib/libc.so.1 #2 0xfe0ed662 in raise () from /lib/libc.so.1 #3 0xfe0bae74 in abort () from /lib/libc.so.1 #4 0x0a8e786d in gcc.deh.terminate(immutable(char)[], uint) (msg=..., line=) at /var/gcc/reghunt/master/libphobos/libdruntime/gcc/deh.d:414 #5 0x0a8e7ab3 in _d_throw (object=) at /var/gcc/reghunt/master/libphobos/libdruntime/gcc/deh.d:505 #6 0x0a8edf02 in onArrayIndexError (index=, length=, file=..., line=) at /var/gcc/reghunt/master/libphobos/libdruntime/core/exception.d:650 #7 0x0a8edf3d in _d_arraybounds_indexp (file=, line=, index=, length=) at /var/gcc/reghunt/master/libphobos/libdruntime/core/exception.d:848 #8 0x08ffc17a in dmd.root.stringtable.StringTable!(dmd.identifier.Identifier).StringTable.findSlot(uint, scope const(char)[]) const (this=..., hash=, str=...) at /var/gcc/reghunt/master/gcc/d/dmd/root/stringtable.d:291 #9 0x08ffc37e in dmd.root.stringtable.StringTable!(dmd.identifier.Identifier).StringTable.update(scope const(char)[]) (this=..., str=...) at /var/gcc/reghunt/master/gcc/d/dmd/root/stringtable.d:184 #10 0x08ffc7b9 in dmd.identifier.Identifier.idPool(const(char)[], bool) (isAnonymous=false, s=...) at /var/gc110 #16 toplev::main (this=, argc=, argv=) at /var/gcc/reghunt/master/gcc/toplev.cc:2277 #17 0x0a828851 in main (argc=3, argv=0xfeffdb98) at /var/gcc/reghunt/master/gcc/main.cc:39 Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University