You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BOLT] specific build configs with packed rellocations segfault or miscompile with both GCC and Clang #141775
Tested on Fedora Linux 43, binutils 2.45, clang/llvm/bolt 21.1.4, gcc 15.2.1, glibc 2.42
Specific build configs when using the --enable-bolt flag fail. Found these after doing testing for #140250, which doesn't skip the computed gotos containing functions depending on the llvm version.
While this should also ideally be reported to the llvm bug tracker as well, I'm reporting it here first, towards resolving #101525
GCC:
Shared build with packed relocs: CC=gcc LDFLAGS="-Wl,-z,pack-relative-relocs" ./configure --enable-bolt --enable-shared && make -j
On 3.14 segfaults, also with #140250
On main it passes
On main segfaults with #140250 when not skipping computed gotos functions
Shared build with LTO and packed relocs: CC=gcc LDFLAGS="-Wl,-z,pack-relative-relocs" ./configure --with-lto --enable-bolt --enable-shared && make -j
On 3.14 bolt complains about adding sre_ucs2_match.lto_priv.0/1 to --skip-funcs
On 3.14 segfaults with #140250
On main segfaults, also with #140250
Shared build with PGO and packed relocs: CC=gcc LDFLAGS="-Wl,-z,pack-relative-relocs" ./configure --enable-optimizations --enable-bolt --enable-shared && make -j
On 3.14 passes, also with #140250
On main segfaults, also with #140250
Shared build with LTO, PGO and packed relocs (the current Fedora built RPM): CC=gcc LDFLAGS="-Wl,-z,pack-relative-relocs" ./configure --with-lto --enable-optimizations --enable-bolt --enable-shared && make -j
On 3.14 bolt complains about adding sre_ucs1_match.lto_priv.0/1 to --skip-funcs
On 3.14 segfaults with #140250
On main segfaults also with #140250
Activity
vstinner commentedon Nov 21, 2025
The issue is in BOLT which miscompiles Python, no? You might report the issue to BOLT instead?
cc @corona10