Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test_syslog: test_syslog_threaded() crashs randomly on ARM64 macOS 3.x #98178

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@vstinner

Description

@vstinner

test_syslog crashed 4 times in the last 2 days, each time in the test_syslog_threaded() function, on the "ARM64 macOS 3.x" buildbot:

Example of crash:

Fatal Python error: Segmentation faultThread 0x000000017bbcf000 (most recent call first):  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_syslog.py", line 67 in logger  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/threading.py", line 986 in run  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/threading.py", line 1049 in _bootstrap_inner  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/threading.pymake: *** [buildbottest] Segmentation fault: 11

This crash is on thesyslog.syslog() call in a thread. Code:

@threading_helper.requires_working_threading()deftest_syslog_threaded(self):start=threading.Event()stop=Falsedefopener():start.wait(10)i=1whilenotstop:syslog.openlog(f'python-test-{i}')# new string objecti+=1deflogger():start.wait(10)whilenotstop:syslog.syslog('test message from python test_syslog')# <=== HERE: line 67orig_si=sys.getswitchinterval()support.setswitchinterval(1e-9)try:threads= [threading.Thread(target=opener)]threads+= [threading.Thread(target=logger)forkinrange(10)]withthreading_helper.start_threads(threads):start.set()time.sleep(0.1)stop=Truefinally:sys.setswitchinterval(orig_si)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp