Repository navigation
gh-161288: fix perf trampoline crash on UBSan builds - #161294
Conversation
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
I tested building Python with ./configure --with-undefined-behavior-sanitizer CC=clang LD=clang && make clean && make.
Without the fix, ./python -X perf -c pass logs a huge UBSan error and exit the process.
With the fix, ./python -X perf -c pass and ./python -X perf_jit -c pass complete successfully.
I confirm that #if __has_feature(undefined_behavior_sanitizer) test is true in C code built with clang -fsanitize=function or -fsanitize=undefined.
|
cpython/Lib/test/test_samply_profiler.py Lines 17 to 20 in 0d3ab6f It can probably be removed as well (I haven't checked)? |
|
@StanFromIreland Good catch, dropped it too. |
|
Thanks @NekoAsakura for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @NekoAsakura and @vstinner, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
GH-161348 is a backport of this pull request to the 3.15 branch. |
|
GH-161350 is a backport of this pull request to the 3.14 branch. |
Uh oh!
There was an error while loading. Please reload this page.