Skip to content

test_audit.test_sys_remote_exec() fails on Linux >= 5.17 #142627

@vstinner

Description

@vstinner

Bug report

Bug description:

Since "Annotate anonymous mmap usage if "-X dev" is used" change (commit), many tests started to fail on Linux buildbots building Python with --enable-shared. I can reproduce the issue on Ubuntu 24.04.

Example AMD64 Ubuntu Shared 3.x: https://buildbot.python.org/all/#/builders/506/builds/11959

5 tests failed:
    test_audit test_external_inspection test_profiling test_remote_pdb
    test_sys

Example:

test_sys_remote_exec (test.test_audit.AuditTest.test_sys_remote_exec) ... FAIL

Stderr:
Fatal Python error: _Py_CheckFunctionResult: a function returned a result with an exception set
Python runtime state: initialized
OSError: Cannot open ELF file '[anon:cpython:pymalloc]' for section 'PyRuntime' search: No such file or directory

The above exception was the direct cause of the following exception:

SystemError: <built-in function remote_exec> returned a result with an exception set

Current thread 0x00007f8388d70b80 [python] (most recent call first):
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/audit-tests.py", line 672 in test_sys_remote_exec
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/audit-tests.py", line 761 in <module>

Extension modules: math.integer (total: 1)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

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