Skip to content

test_gdb is skipped on some GitHub Action CIs #161517

Closed

Description

@vstinner

test_gdb is skipped on the following GitHub Action CIs (links from a recent action job):

Should we install gdb on these CIs?

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.)

I'm working on a PR to install gdb.

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    on Nov 6, 2026
  2. vstinner commented on Nov 6, 2026

    @vstinner
    MemberAuthor

    Ubuntu (bolt)

    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'

  3. added 3 commits that reference this issue on Nov 6, 2026
  4. vstinner commented on Nov 7, 2026

    @vstinner
    MemberAuthor

    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.

  5. added 2 commits that reference this issue on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions