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
test_gdb is skipped on some GitHub Action CIs #161517
macOS uses clang and might prefer lldb, but we don't provide any helper/script for lldb. I suppose that gdb just works on macOS. (I don't have access to macOS, I cannot test.)
Oh, wait. gdb is installed, but test_gdb is skipped on Python optimized by BOLT:
test.test_gdb.test_backtrace skipped -- test_gdb is not reliable on BOLT optimized builds
Ubuntu (installed)
Oh, wait (again). gdb is installed, but test_gdb is skipped because tests are run on an installed Python:
test.test_gdb.test_cfunction skipped -- test_gdb only works on source builds at the moment.
Hypothesis tests on Ubuntu
Oh, wait (!). gdb is installed, but test_gdb is skipped because of gdb security settings:
test.test_gdb.test_backtrace skipped -- gdb security settings prevent use of custom hooks; stderr: 'warning: File "/home/runner/work/cpython/cpython-builddir/python-gdb.py" auto-loading has been declined by your 'auto-load safe-path\' set to "$debugdir:$datadir/auto-load:/home/runner/work/cpython/cpython-builddir/hypovenv/bin/python-gdb.py".\n'
I wrote #161519 to fix test_gdb on the Hypothesis job.
I wrote #161520 to enable test_gdb on macOS, but I gave up: running GDB on macOS fails badly with serious GDB bugs. As I expected, it's better to target lldb on macOS.
I also updated my other PR #161432 to ignore skipped test_gdb if Python is installed.
Activity
vstinner commentedon Nov 6, 2026
Oh, wait. gdb is installed, but test_gdb is skipped on Python optimized by BOLT:
test.test_gdb.test_backtrace skipped -- test_gdb is not reliable on BOLT optimized buildsOh, wait (again). gdb is installed, but test_gdb is skipped because tests are run on an installed Python:
test.test_gdb.test_cfunction skipped -- test_gdb only works on source builds at the moment.Oh, wait (!). gdb is installed, but test_gdb is skipped because of gdb security settings:
test.test_gdb.test_backtrace skipped -- gdb security settings prevent use of custom hooks; stderr: 'warning: File "/home/runner/work/cpython/cpython-builddir/python-gdb.py" auto-loading has been declined by your 'auto-load safe-path\' set to "$debugdir:$datadir/auto-load:/home/runner/work/cpython/cpython-builddir/hypovenv/bin/python-gdb.py".\n'pythongh-161517: Fix test_gdb on GHA Hypothesis tests
pythongh-161517: Fix test_gdb on GHA Hypothesis tests
gh-161517: Fix test_gdb on GHA Hypothesis tests (#161519)
vstinner commentedon Nov 7, 2026
I wrote #161519 to fix test_gdb on the Hypothesis job.
I wrote #161520 to enable test_gdb on macOS, but I gave up: running GDB on macOS fails badly with serious GDB bugs. As I expected, it's better to target lldb on macOS.
I also updated my other PR #161432 to ignore skipped test_gdb if Python is installed.
I close this issue.
[3.14] gh-161517: Fix test_gdb on GHA Hypothesis tests (GH-161519) (#…
[3.15] gh-161517: Fix test_gdb on GHA Hypothesis tests (GH-161519) (#…