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] Segfaults and/or miscompilations when using packed relocations with CPython #169136
Since #120267 was merged I tried implementing a change for CPython to not skip anymore functions with computed gotos. However specific build configurations still pose problems. I've reported my findings here: python/cpython#141775
More specifically, tested on my machine x86_64 Fedora Linux 43, binutils 2.45, clang/llvm/bolt 21.1.4, gcc 15.2.1, glibc 2.42.
The broken configs:
GCC:
Shared build with packed relocs: CC=gcc LDFLAGS="-Wl,-z,pack-relative-relocs" ./configure --enable-bolt --enable-shared && make -j
On main it passes
On main segfaults with python/cpython#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
Since #120267 was merged I tried implementing a change for CPython to not skip anymore functions with computed gotos. However specific build configurations still pose problems. I've reported my finding here:
Activity
llvmbot commentedon Nov 22, 2025
@llvm/issue-subscribers-bolt
Author: None (stratakis)
Details
Hello all,Since #120267 was merged I tried implementing a change for CPython to not skip anymore functions with computed gotos. However specific build configurations still pose problems. I've reported my finding here:
pzfl commentedon Jun 30, 2026
@stratakis
This might be fixed with #206830.