Skip to content

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

Closed

Description

@vstinner
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']

    Activity

    1. vstinner commented on Jun 12, 2019

      @vstinner
      MemberAuthor

      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.

    2. vstinner commented on Jun 25, 2019

      @vstinner
      MemberAuthor

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

    3. miss-islington commented on Jun 25, 2019

      @miss-islington
      Contributor

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

    4. vstinner commented on Jun 25, 2019

      @vstinner
      MemberAuthor

      Thanks Pierre Glaser. I close the issue.

    5. transferred this issue fromon Apr 10, 2022
    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.8 (EOL)end of life3.9 (EOL)end of lifetestsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions