From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 18EEA3858435; Wed, 2 Mar 2022 09:47:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18EEA3858435 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/104743] [12 regression] gdc.dg/torture/pr96152.d FAILs Date: Wed, 02 Mar 2022 09:47:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2022 09:47:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104743 --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Iain Buclaw --- > Does anything change if you compile the test with > `-ftrivial-auto-var-init=3Dzero` ? No, the test fails just the same. gdb shows Thread 2 received signal SIGBUS, Bus error. [Switching to Thread 1 (LWP 1)] _d_newitemU (_ti=3D0xffffffff7f1f3000) at /vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/lifetime.d:1110 1110 *cast(TypeInfo*)(p + itemSize) =3D null; // the GC might no= t have cleared this area (gdb) bt #0 _d_newitemU (_ti=3D0xffffffff7f1f3000) at /vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/lifetime.d:1110 #1 0x000000010007bd64 in rt.aaA.allocEntry(scope const(rt.aaA.Impl*), scope const(void*)) (aa=3D0xffffffff7f1f2000, pkey=3D0xffffffff7f1f0000) at /vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/aaA.d:214 #2 0x000000010007cd14 in _d_assocarrayliteralTX (ti=3D0x100071db8 , keys=3D.= .., vals=3D...) at /vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/aaA.d:= 767 #3 0x000000010007b57c in object.aaLiteral!(pr96152.__unittest_L20_C7().ThrowingElement, int).aaLiteral(pr96152.__unittest_L20_C7().ThrowingElement[], int[]) (keys= =3D..., values=3D...) at /vol/gcc/src/hg/master/local/libphobos/libdruntime/object.= d:2868 ... 1: x/i $pc =3D> 0x100087080 <_d_newitemU+100>: clrx [ %o0 + %i2 ] (gdb) p/x $o0 + $i2 $3 =3D 0xffffffff7f1f0054 i.e. the address isn't properly 8-byte aligned as required on a strict-alignment target like SPARC.=