https://sourceware.org/bugzilla/show_bug.cgi?id=33720
Thomas Debesse <dev at illwieckz dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dev at illwieckz dot net
--- Comment #4 from Thomas Debesse <dev at illwieckz dot net> ---
Created attachment 16523
--> https://sourceware.org/bugzilla/attachment.cgi?id=16523&action=edit
complete test case with complete source code
Here is the complete test case with the complete source code, including build
tools.
I added a `build.sh` script you can use to rebuild the executable, the compiler
can be changed using the CC environment variable, this way:
$ CC=gcc-15 ./build.sh
Once built, you can test the binary by running it that way:
$ ./nacl_helper_bootstrap
When built correctly, it should display:
bootstrap_helper: Usage: PROGRAM ARGS...
When the reported bug occurs, it simply crashes before printing that line.
The test case is extracted from the Native Client source repository, with some
file reorganization done to fit in that archive.
For your information, here is the table of my test results with various GCC
versions and binutils and distribution combinations I conducted:
GCC 5 | binutils 2.30 | Ubuntu 18.04 Bionic | ✅️ working
GCC 6 | binutils 2.30 | Ubuntu 18.04 Bionic | ✅️ working
GCC 7 | binutils 2.30 | Ubuntu 18.04 Bionic | ✅️ working
GCC 8 | binutils 2.30 | Ubuntu 18.04 Bionic | ✅️ working
GCC 7 | binutils 2.31.1 | Debian 10 Buster | ✅️ working
GCC 8 | binutils 2.31.1 | Debian 10 Buster | ✅️ working
GCC 7 | binutils 2.34 | Ubuntu 20.04 Focal | ✅️ working
GCC 8 | binutils 2.34 | Ubuntu 20.04 Focal | ❌️ broken
GCC 9 | binutils 2.34 | Ubuntu 20.04 Focal | ❌️ broken
GCC 10 | binutils 2.34 | Ubuntu 20.04 Focal | ❌️ broken
GCC 9 | binutils 2.35.2 | Debian 11 Bullseye | ✅️ working
GCC 10 | binutils 2.35.2 | Debian 11 Bullseye | ✅️ working
GCC 10 | binutils 2.38 | Ubuntu 22.04 Jammy | ❌️ broken
GCC 11 | binutils 2.38 | Ubuntu 22.04 Jammy | ❌️ broken
GCC 12 | binutils 2.38 | Ubuntu 22.04 Jammy | ❌️ broken
GCC 10 | binutils 2.40 | Debian 12 Bookworm | ✅️ working
GCC 12 | binutils 2.40 | Debian 12 Bookworm | ✅️ working
GCC 10 | binutils 2.42 | Ubuntu 24.04 Noble | ❌️ broken
GCC 11 | binutils 2.42 | Ubuntu 24.04 Noble | ❌️ broken
GCC 12 | binutils 2.42 | Ubuntu 24.04 Noble | ❌️ broken
GCC 13 | binutils 2.42 | Ubuntu 24.04 Noble | ❌️ broken
GCC 14 | binutils 2.42 | Ubuntu 24.04 Noble | ❌️ broken
GCC 10 | binutils 2.44 | Debian 13 Trixie | ✅️ working
GCC 12 | binutils 2.44 | Debian 13 Trixie | ✅️ working
GCC 14 | binutils 2.44 | Debian 13 Trixie | ✅️ working
The earlier combination I found to be failing was GCC 8 with binutils 2.34 on
Ubuntu 20.04 Focal.
I also tested Clang from version 8 to 20 in various combinations with those
binutils and distribution variants but they all worked, I only experience the
regression with GCC.
--
You are receiving this mail because:
You are on the CC list for the bug.