classification
Title: test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8
Type: Stage:
Components: Tests Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: pablogsal, pierreglaser, pitrou, vstinner
Priority: normal Keywords:

Created on 2019-06-12 11:45 by vstinner, last changed 2019-06-12 11:47 by vstinner.

Messages (1)
msg345320 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-06-12 11:45
x86 Gentoo Refleaks 3.8:
https://buildbot.python.org/all/#/builders/223/builds/9

3:22:46 load avg: 5.83 [423/423/2] test_multiprocessing_forkserver failed (5 min 10 sec)
beginning 6 repetitions
123456
./buildbot/buildarea/cpython/3.8.ware-gentoo-x86.refleak/build/Lib/test/_test_multiprocessing.py:5002: ResourceWarning: unclosed file <_io.BufferedReader name=10>
  p = subprocess.Popen([sys.executable,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test test_multiprocessing_forkserver failed -- Traceback (most recent call last):
  File "/buildbot/buildarea/cpython/3.8.ware-gentoo-x86.refleak/build/Lib/test/_test_multiprocessing.py", line 5015, in test_resource_tracker
    _resource_unlink(name2, rtype)
AssertionError: OSError not raised

/buildbot/buildarea/cpython/3.8.ware-gentoo-x86.refleak/build/Lib/multiprocessing/resource_tracker.py:203: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
/buildbot/buildarea/cpython/3.8.ware-gentoo-x86.refleak/build/Lib/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: '//psm_dfd85228': [Errno 2] No such file or directory: '//psm_dfd85228'
  warnings.warn('resource_tracker: %r: %s' % (name, e))

---

Test added by:

commit f22cc69b012f52882d434a5c44a004bc3aa5c33c
Author: Pierre Glaser <pierreglaser@msn.com>
Date:   Fri May 10 22:59:08 2019 +0200

    bpo-36867: Make semaphore_tracker track other system resources (GH-13222)
    
    The multiprocessing.resource_tracker replaces the multiprocessing.semaphore_tracker module. Other than semaphores, resource_tracker also tracks shared_memory segment
s. Patch by Pierre Glaser.
History
Date User Action Args
2019-06-12 11:47:36vstinnersetnosy: + pitrou, pablogsal, pierreglaser
2019-06-12 11:45:11vstinnercreate