From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7ABBE3858C27; Mon, 13 Jun 2022 19:54:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7ABBE3858C27 From: "terra at gnome dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105960] New: Crash in 32-bit mode Date: Mon, 13 Jun 2022 19:54:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: terra at gnome dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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 target_milestone attachments.created 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 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: Mon, 13 Jun 2022 19:54:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105960 Bug ID: 105960 Summary: Crash in 32-bit mode Product: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: terra at gnome dot org Target Milestone: --- Created attachment 53130 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53130&action=3Dedit Source files and compile script The attached archive shows a crash when running 32-bit binaries compiled wi= th gcc 12.1 I am preliminarily blaming the C compiler. 0. Unpack tar file 1. Edit "compile" to point at the desired compiler 2. ./compile 3. ./crash32 Expected: immediate return Observed: Segmentation fault (core dumped) (gdb) where #0 0xf7fc73d0 in *ABS*@plt () from /home/welinder/crash32/liboink32.so #1 0x0804841d in main () Observations (probably more "anecdote" than "data"): * Doesn't happen in 64-bit mode * Doesn't happen without optimization * The shared library appears to be a required part * The use target_clones appears to be a required part * This did not happen with gcc 11.1 # uname -a Linux xxxxxxxxxx 5.3.18-150300.59.63-default #1 SMP Tue Apr 5 12:47:31 UTC = 2022 (d77db66) x86_64 x86_64 x86_64 GNU/Linux # /usr/local/products/gcc/12.1.0/bin/gcc --version gcc (GCC) 12.1.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=