https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105960
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=53130&action=edit
Source files and compile script
The attached archive shows a crash when running 32-bit binaries compiled with
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.