Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Leaked semaphore objects in test_concurrent_futures #104090

Open
Labels
3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
@furkanonder

Description

@furkanonder

Bug report

Configuration:

./configure --with-pydebug
$ ./python -mtest test_concurrent_futures0:00:00 load avg: 5.30 Run tests sequentially0:00:00 load avg: 5.30 [1/1] test_concurrent_futures/workspace/cpython/Lib/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=150426) is multi-threaded, use offork() may lead to deadlocksin the child.  self.pid =os.fork()/workspace/cpython/Lib/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 6 leaked semaphore objects to clean up at shutdown  warnings.warn('resource_tracker: There appear to be %d'Traceback (most recent call last):  File"/workspace/cpython/Lib/multiprocessing/util.py", line 300,in _run_finalizersfinalizer()  File"/workspace/cpython/Lib/multiprocessing/util.py", line 224,in __call__    res = self._callback(*self._args,**self._kwargs)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/workspace/cpython/Lib/multiprocessing/synchronize.py", line 87,in _cleanup    sem_unlink(name)FileNotFoundError: [Errno 2] No such file or directoryTraceback (most recent call last):  File"/workspace/cpython/Lib/multiprocessing/util.py", line 300,in _run_finalizersfinalizer()  File"/workspace/cpython/Lib/multiprocessing/util.py", line 224,in __call__    res = self._callback(*self._args,**self._kwargs)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/workspace/cpython/Lib/multiprocessing/synchronize.py", line 87,in _cleanup    sem_unlink(name)FileNotFoundError: [Errno 2] No such file or directoryTraceback (most recent call last):  File"/workspace/cpython/Lib/multiprocessing/util.py", line 300,in _run_finalizersfinalizer()  File"/workspace/cpython/Lib/multiprocessing/util.py", line 224,in __call__    res = self._callback(*self._args,**self._kwargs)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/workspace/cpython/Lib/multiprocessing/synchronize.py", line 87,in _cleanup    sem_unlink(name)FileNotFoundError: [Errno 2] No such file or directoryTraceback (most recent call last):  File"/workspace/cpython/Lib/multiprocessing/util.py", line 300,in _run_finalizersfinalizer()  File"/workspace/cpython/Lib/multiprocessing/util.py", line 224,in __call__    res = self._callback(*self._args,**self._kwargs)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/workspace/cpython/Lib/multiprocessing/synchronize.py", line 87,in _cleanup    sem_unlink(name)FileNotFoundError: [Errno 2] No such file or directoryTraceback (most recent call last):  File"/workspace/cpython/Lib/multiprocessing/util.py", line 300,in _run_finalizersfinalizer()  File"/workspace/cpython/Lib/multiprocessing/util.py", line 224,in __call__    res = self._callback(*self._args,**self._kwargs)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/workspace/cpython/Lib/multiprocessing/synchronize.py", line 87,in _cleanup    sem_unlink(name)FileNotFoundError: [Errno 2] No such file or directoryTraceback (most recent call last):  File"/workspace/cpython/Lib/multiprocessing/util.py", line 300,in _run_finalizersfinalizer()  File"/workspace/cpython/Lib/multiprocessing/util.py", line 224,in __call__    res = self._callback(*self._args,**self._kwargs)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/workspace/cpython/Lib/multiprocessing/synchronize.py", line 87,in _cleanup    sem_unlink(name)FileNotFoundError: [Errno 2] No such file or directorytest_concurrent_futures passedin 2 min 17 sec== Tests result: SUCCESS ==1test OK.Total duration: 2 min 17 secTests result: SUCCESS

Your environment

  • CPython versions tested on: CPython 3.12.0a7+
  • Operating system and architecture: Ubuntu 22.04.2 LTS | Linux-5.15.0-47-generic-x86_64-with-glibc2.35 little-endian

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp