From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6247F3858C55; Tue, 20 Sep 2022 14:06:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6247F3858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663682782; bh=HkgFUGCK1iJj7vjeZJOcVlr/z4iM21soXYbxQqVAEFU=; h=From:To:Subject:Date:From; b=viQy4NjgMbrPHPj3ODTFWsZFIAXig7k7N1r6KqVpwCtMr5R7Flet6EvbnY0xl4Vib 2ZC4bT5epryGSx+21FlfvLVcsqpLbCDzqdz5FvGcE2X9fhCiWMItixNOZpq7wFkpmU mkAQHx10EGWze+he94snKq2TTbYBisseh292vsww= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/106977] New: [13 regression] d21 dies with SIGBUS on 32-bit Darwin Date: Tue, 20 Sep 2022 14:06:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106977 Bug ID: 106977 Summary: [13 regression] d21 dies with SIGBUS on 32-bit Darwin Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ro at gcc dot gnu.org CC: iains at gcc dot gnu.org Target Milestone: --- Target: i386-apple-darwin11.4.2 Between 20220610 (5940b4e59f8e198dbf7e8b733561ef72a9ba2cbc) and 20220624 (3b8794302b52a819ca3ea78238e9b5025d1c56dd), 32-bit bootstrap started to fail on 32-bit Darwin (Mac OS X 10.7): when configuring the stage 2 libphobos, d21 dies with $ cat conftest.d module object; extern(C) int main() { return 0; } $ d21 conftest.d -I /libphobos/libdruntime -o conftest.s conftest.d:3:15: internal compiler error: Bus error: 10 3 | extern(C) int main() { | ^ I had a hard time getting more information out of this crash: * With gdb 9.1 I get Program received signal SIGBUS, Bus error. 0x00055398 in _ZN11Declaration7visibleEv (this=3D0x7) (gdb) bt #0 0x00055398 in _ZN11Declaration7visibleEv (this=3Dwarning: (Internal err= or: pc 0x7 in read in psymtab, but not in symtab.) 0x7) #1 0x001ed871 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) which is Declaration::visible() * With /usr/bin/gdb: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x0000004b _ZN11Declaration7visibleEv (this=3D0x7) at /vol/gcc/src/hg/master/darwin/gcc/d/dmd/declaration.d:547 547 return visibility; (gdb) bt #0 _ZN11Declaration7visibleEv (this=3D0x7) at /vol/gcc/src/hg/master/darwin/gcc/d/dmd/declaration.d:547 #1 0x001ed871 in get_symbol_decl () at parsetimevisitor.d:26 * With /usr/bin/lldb: Process 133 stopped * thread #1: tid =3D 0x1f03, 0x00055398 d21`Declaration::visible(this=3D0x0= 0000007) + 8 at declaration.d:547, stop reason =3D EXC_BAD_ACCESS (code=3D2, address= =3D0x4b) frame #0: 0x00055398 d21`Declaration::visible(this=3D0x00000007) + 8 at declaration.d:547 544=20=20 545 override final Visibility visible() pure nothrow @nogc @safe 546 { -> 547 return visibility; 548 } 549=20=20 550 override final inout(Declaration) isDeclaration() inout pure nothrow @nogc @safe (lldb) bt * thread #1: tid =3D 0x1f03, 0x00055398 d21`Declaration::visible(this=3D0x0= 0000007) + 8 at declaration.d:547, stop reason =3D EXC_BAD_ACCESS (code=3D2, address= =3D0x4b) frame #0: 0x00055398 d21`Declaration::visible(this=3D0x00000007) + 8 at declaration.d:547 frame #1: 0x001ed871 d21`get_symbol_decl(Declaration*) (.part.0) + 833 I haven't tried reghunting yet.=