GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_audit.test_sys_remote_exec() fails on Linux >= 5.17 · Issue #142627 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
test_audit.test_sys_remote_exec() fails on Linux >= 5.17#142627
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on Dec 12, 2025
Issue body actions

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

  • gh-142627: Ignore anonymous mappings in Linux remote debugging #142628
  • [3.14] gh-142627: Ignore anonymous mappings in Linux remote debugging (GH-142628) #142630

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Dec 12, 2025
  2. vstinner
    added a commit that references this issue on Dec 12, 2025

    pythongh-142627: Ignore anonymous mappings in Linux remote debugging

    73711a3
  3. vstinner commented on Dec 12, 2025

    @vstinner
    vstinner
    on Dec 12, 2025
    MemberAuthor
    More actions

    Since "Annotate anonymous mmap usage if "-X dev" is used" change (commit)

    It's an issue in remote debugging which tries to locate the memory mapping of libpython by searching for the string "python" in /proc/pid/maps. New mappings such as "[anon:cpython:pymalloc]" are now matching, but there are anonymous mappings, not the libpython we are looking for.

    Note: I cannot reproduce the issue on Fedora, since Fedora builds the Linux kernel without the CONFIG_ANON_VMA_NAME option.

  4. vstinner
    added a commit that references this issue on Dec 12, 2025

    gh-142627: Ignore anonymous mappings in Linux remote debugging (#142628)

    e0bca09
  5. miss-islington
    added a commit that references this issue on Dec 12, 2025

    pythongh-142627: Ignore anonymous mappings in Linux remote debugging (p…

    54e005a
  6. vstinner
    closed this as completedon Dec 12, 2025
  7. vstinner
    added a commit that references this issue on Dec 12, 2025

    [3.14] gh-142627: Ignore anonymous mappings in Linux remote debugging (…

    8e49601
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 dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.