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_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup, on AMD64 FreeBSD 10.x Shared 3.x #75224

Closed
vstinner opened this issue Jul 26, 2017 · 4 comments
Labels
3.7 (EOL) end of life performance Performance or resource usage tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

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

    @vstinner
    Copy link
    Member Author

    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.

    @vstinner vstinner added 3.7 (EOL) end of life tests Tests in the Lib/test dir performance Performance or resource usage labels Jul 26, 2017
    @vstinner vstinner 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 Jul 26, 2017
    @vstinner
    Copy link
    Member Author

    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().

    @vstinner
    Copy link
    Member Author

    vstinner commented Aug 9, 2017

    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

    @vstinner
    Copy link
    Member Author

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

    @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.7 (EOL) end of life performance Performance or resource usage tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant