Skip to content

test_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup, on AMD64 FreeBSD 10.x Shared 3.x #75224

Closed

Description

@vstinner
BPO 31041
Nosy @vstinner
Superseder
  • bpo-30830: test_logging leaks dangling threads on FreeBSD
  • 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 2017-08-10.15:43:31.392>
    created_at = <Date 2017-07-26.00:54:05.861>
    labels = ['3.7', 'tests', 'performance']
    title = 'test_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup, on AMD64 FreeBSD 10.x Shared 3.x'
    updated_at = <Date 2017-08-10.15:43:31.391>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2017-08-10.15:43:31.391>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-08-10.15:43:31.392>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2017-07-26.00:54:05.861>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31041
    keywords = ['buildbot']
    message_count = 4.0
    messages = ['299180', '299399', '300008', '300107']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '30830'
    type = 'resource usage'
    url = 'https://bugs.python.org/issue31041'
    versions = ['Python 3.7']

    Activity

    1. vstinner commented on Jul 26, 2017

      @vstinner
      MemberAuthor

      http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/625/steps/test/logs/stdio

      (...)
      test_output (test.test_logging.UnixSocketHandlerTest) ... ok
      test_output (test.test_logging.UnixDatagramHandlerTest) ... ok
      test_output (test.test_logging.UnixSysLogHandlerTest) ... ok
      test__all__ (test.test_logging.MiscTestCase) ... ok
      test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads after 4 sec (count: 0, dangling: 1)
      ok
      test_handle_called_with_queue_queue (test.test_logging.QueueListenerTest) ... ok
      test_no_messages_in_queue_after_stop (test.test_logging.QueueListenerTest) ... ok
      (...)

      See also bpo-30830: "HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x".

      Previously fixed warnings: bpo-30131.

    2. changed the title [-]test_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup[/-] [+]test_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup, on AMD64 FreeBSD 10.x Shared 3.x[/+] on Jul 26, 2017
    3. vstinner commented on Jul 28, 2017

      @vstinner
      MemberAuthor

      I ran "./python -m test -v test_logging --fail-env-changed -F" in 3 terminals on the FreeBSD 10 buildbot, and I failed to reproduce the bug. I ran my test for 5 minutes.

      Maybe threading_cleanup() should call support.gc_collect().

    4. vstinner commented on Aug 9, 2017

      @vstinner
      MemberAuthor

      New fail:
      http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/680/steps/test/logs/stdio

      test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, dangling: 1)
      ok

    5. vstinner commented on Aug 10, 2017

      @vstinner
      MemberAuthor

      Let's mark this issue as a duplicate of bpo-30830.

    6. 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 lifeperformancePerformance or resource usagetestsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions