FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test_multiprocessing_forkserver: test_forkserver_sigkill() fails randomly · Issue #78221 · python/cpython · GitHub

Repository navigation

test_multiprocessing_forkserver: test_forkserver_sigkill() fails randomly #78221

Closed

Description

BPO 34040
Nosy @vstinner, @miss-islington
PRs
  • bpo-34040, multiprocessing: Fix test_forkserver_sigkill() #8081
  • [3.7] bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081) #8084
  • [3.6] bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081) #8085
  • 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 2018-07-04.10:35:04.404>
    created_at = <Date 2018-07-04.07:49:19.169>
    labels = ['3.8', '3.7', 'tests']
    title = 'test_multiprocessing_forkserver: test_forkserver_sigkill() fails randomly'
    updated_at = <Date 2018-07-04.10:35:04.403>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-07-04.10:35:04.403>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-07-04.10:35:04.404>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2018-07-04.07:49:19.169>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34040
    keywords = ['patch']
    message_count = 7.0
    messages = ['321015', '321017', '321024', '321025', '321028', '321030', '321031']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'miss-islington']
    pr_nums = ['8081', '8084', '8085']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue34040'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. vstinner commented on Jul 4, 2018

      MemberAuthor

      AMD64 FreeBSD 10.x Shared 3.x:
      http://buildbot.python.org/all/#/builders/87/builds/1137

      ======================================================================
      FAIL: test_forkserver_sigkill (test.test_multiprocessing_forkserver.WithProcessesTestProcess)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/_test_multiprocessing.py", line 680, in test_forkserver_sigkill
          self.check_forkserver_death(signal.SIGKILL)
        File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/_test_multiprocessing.py", line 670, in check_forkserver_death
          self.assertTrue(evt.is_set())
      AssertionError: False is not true

      Re-running test 'test_multiprocessing_forkserver' in verbose mode
      Ran 310 tests in 100.124s
      OK (skipped=27)

    2. vstinner commented on Jul 4, 2018

      MemberAuthor

      Another example of failure:
      https://bugs.python.org/issue31687#msg307355

      x86 Tiger 3.x:

      http://buildbot.python.org/all/#/builders/30/builds/260

      ======================================================================
      FAIL: test_semaphore_tracker (test.test_multiprocessing_forkserver.TestSemaphoreTracker)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/_test_multiprocessing.py", line 4380, in test_semaphore_tracker
          _multiprocessing.sem_unlink(name2)
      AssertionError: OSError not raised

      ======================================================================
      FAIL: test_forkserver_sigkill (test.test_multiprocessing_forkserver.WithProcessesTestProcess)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/_test_multiprocessing.py", line 653, in test_forkserver_sigkill
          self.check_forkserver_death(signal.SIGKILL)
        File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/_test_multiprocessing.py", line 643, in check_forkserver_death
          self.assertTrue(evt.is_set())
      AssertionError: False is not true
    3. vstinner commented on Jul 4, 2018

      MemberAuthor

      New changeset 07888e1 by Victor Stinner in branch 'master':
      bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081)
      07888e1

    4. vstinner commented on Jul 4, 2018

      MemberAuthor

      Python 2.7 is not affected: it has no forkserver.

    5. miss-islington commented on Jul 4, 2018

      Contributor

      New changeset eb700f8 by Miss Islington (bot) in branch '3.7':
      bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081)
      eb700f8

    6. miss-islington commented on Jul 4, 2018

      Contributor

      New changeset ae23d8d by Miss Islington (bot) in branch '3.6':
      bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081)
      ae23d8d

    7. vstinner commented on Jul 4, 2018

      MemberAuthor

      I doubled the sleep: it should be better. If not, we can easily increase even more the sleep ;-)

    8. 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.7 (EOL)end of life3.8 (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


        Back | FazBrowse Home | New Git URL