Skip to content

test_logging hangs on an IPv6-only host #82076

Closed

Description

@gpshead
BPO 37895
Nosy @gpshead

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 = 'https://github.com/gpshead'
closed_at = None
created_at = <Date 2019-08-20.18:26:19.132>
labels = ['3.7', '3.8', 'type-bug', 'tests', '3.9']
title = 'test_logging hangs on an IPv6-only host'
updated_at = <Date 2019-08-20.18:26:19.132>
user = 'https://github.com/gpshead'

bugs.python.org fields:

activity = <Date 2019-08-20.18:26:19.132>
actor = 'gregory.p.smith'
assignee = 'gregory.p.smith'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2019-08-20.18:26:19.132>
creator = 'gregory.p.smith'
dependencies = []
files = []
hgrepos = []
issue_num = 37895
keywords = []
message_count = 1.0
messages = ['350031']
nosy_count = 1.0
nosy_names = ['gregory.p.smith']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue37895'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

Activity

  1. gpshead commented on Aug 20, 2019

    @gpshead
    MemberAuthor

    test_logging hangs when run on an IPv6-only host. (127.0.0.1 isn't even available)

    test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... Exception in thread Thread-3:
    Traceback (most recent call last):
      File "/home/greg/oss/cpython/Lib/threading.py", line 938, in _bootstrap_inner
        self.run()
      File "/home/greg/oss/cpython/Lib/logging/config.py", line 918, in run
        server = self.rcvr(port=self.port, handler=self.hdlr,
      File "/home/greg/oss/cpython/Lib/logging/config.py", line 885, in __init__
        ThreadingTCPServer.__init__(self, (host, port), handler)
      File "/home/greg/oss/cpython/Lib/socketserver.py", line 452, in __init__
        self.server_bind()
      File "/home/greg/oss/cpython/Lib/socketserver.py", line 466, in server_bind
        self.socket.bind(self.server_address)
    OSError: [Errno 99] Cannot assign requested address

    possibly more, but it's hung here.

    I'm preparing an IPv6-only buildbot.

  2. self-assigned this
    on Aug 20, 2019
  3. added
    testsTests in the Lib/test dir
    type-bugAn unexpected behavior, bug, or error
    on Aug 20, 2019
  4. transferred this issue fromon Apr 10, 2022
  5. removed their assignment
    on Jul 2, 2026
  6. serhiy-storchaka commented on Jul 22, 2026

    @serhiy-storchaka
    Member

    Should be fixed by #154491.

  7. added a commit that references this issue on Jul 24, 2026
    45a10f5
  8. added 3 commits that reference this issue on Jul 24, 2026
    624c704
    2cb04b9
    f4c210c
  9. added a commit that references this issue on Aug 14, 2026
    3095e1f
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 life3.9 (EOL)end of lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions