Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
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:
- Today:https://buildbot.python.org/all/#/builders/725/builds/2786
- 2 days ago:https://buildbot.python.org/all/#/builders/725/builds/2780
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)