Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8 #81425

Closed
vstinner opened this issue Jun 12, 2019 · 4 comments
Labels
3.8 only security fixes 3.9 only security fixes tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 37244
Nosy @pitrou, @vstinner, @pablogsal, @miss-islington, @pierreglaser
PRs
  • bpo-37244: Increase robustness of test_resource_tracker #14288
  • [3.8] bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288) #14383
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-06-25.23:37:37.365>
    created_at = <Date 2019-06-12.11:45:11.041>
    labels = ['3.8', 'tests', '3.9']
    title = 'test_multiprocessing_forkserver: test_resource_tracker() failed on  x86 Gentoo Refleaks 3.8'
    updated_at = <Date 2019-06-25.23:37:37.356>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-06-25.23:37:37.356>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-06-25.23:37:37.365>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2019-06-12.11:45:11.041>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37244
    keywords = ['patch']
    message_count = 4.0
    messages = ['345320', '346564', '346567', '346571']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'vstinner', 'pablogsal', 'miss-islington', 'pierreglaser']
    pr_nums = ['14288', '14383']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue37244'
    versions = ['Python 3.8', 'Python 3.9']

    @vstinner
    Copy link
    Member Author

    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 f22cc69
    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.

    @vstinner vstinner added 3.8 only security fixes tests Tests in the Lib/test dir labels Jun 12, 2019
    @vstinner
    Copy link
    Member Author

    New changeset e1a63c4 by Victor Stinner (Pierre Glaser) in branch 'master':
    bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)
    e1a63c4

    @miss-islington
    Copy link
    Contributor

    New changeset dd4edbc by Miss Islington (bot) in branch '3.8':
    bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)
    dd4edbc

    @vstinner
    Copy link
    Member Author

    Thanks Pierre Glaser. I close the issue.

    @vstinner vstinner added the 3.9 only security fixes label Jun 25, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants