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_repr_lock leaves a dangling process · Issue #155732 · python/cpython

test_repr_lock leaves a dangling process #155732

New issue
Copy link
New issue
Copy link
Closed
Closed
test_repr_lock leaves a dangling process#155732
Copy link
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtopic-multiprocessingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@serhiy-storchaka
serhiy-storchaka
opened on Aug 13, 2026
Issue body actions

Bug report

test_repr_lock starts the process P2, terminates it and never joins it, so it is still in multiprocessing.active_children() when the test ends:

$ ./python -m test --fail-env-changed test.test_multiprocessing_fork.test_processes -m test.test_multiprocessing_fork.test_processes.WithProcessesTestLock.test_repr_lock
Warning -- Dangling processes: {<Process name='P2' pid=3761884 parent=3761868 stopped exitcode=-SIGTERM>}
Result: ENV CHANGED

The same for the forkserver and spawn variants.

Running the whole file passes: the process is reaped before the environment is checked.

Linked PRs

  • gh-155732: Join the terminated process in test_repr_lock #155734
  • [3.15] gh-155732: Join the terminated process in test_repr_lock (GH-155734) #155766
  • [3.14] gh-155732: Join the terminated process in test_repr_lock (GH-155734) #155767
  • [3.13] gh-155732: Join the terminated process in test_repr_lock (GH-155734) #155768
Reacted by Duprat

Activity

  1. serhiy-storchaka
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-multiprocessing
    3.13only security fixesonly security fixes
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    3.16new features, bugs and security fixesnew features, bugs and security fixes
    on Aug 13, 2026
  2. serhiy-storchaka
    added 2 commits that reference this issue on Aug 14, 2026

    gh-155732: Join the terminated process in test_repr_lock (GH-155734)

    3c414a5

    [3.14] gh-155732: Join the terminated process in test_repr_lock (GH-1…

    031cd30
  3. serhiy-storchaka
    closed this as completedon Aug 14, 2026
  4. mbeijen
    added a commit that references this issue on Aug 14, 2026

    pythongh-155732: Join the terminated process in test_repr_lock (pytho…

    1cca3fd
  5. serhiy-storchaka
    added a commit that references this issue on Aug 15, 2026

    [3.13] gh-155732: Join the terminated process in test_repr_lock (GH-1…

    94a69e6
  6. hugovk
    added a commit that references this issue on Aug 27, 2026

    [3.15] gh-155732: Join the terminated process in test_repr_lock (GH-1…

    bfa1595
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

    3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtopic-multiprocessingtype-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 01402520 — 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.