GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Data race in `faulthandler.enable()` and `faulthandler.disable()` with free-threading · Issue #151363 · python/cpython Open Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:
cpython/Modules/faulthandler.c Lines 536 to 541 in b18168c
while cpython/Modules/faulthandler.c Lines 641 to 658 in b18168c
so two threads calling Reproducer: import faulthandler, os from threading import Thread, Event def owner(): f = open(os.devnull, 'w') for _ in range(200000): faulthandler.enable(file=f, all_threads=False) f.write('x') f.flush() f.close() def toggler(): for _ in range(200000): faulthandler.disable() threads = [Thread(target=owner) for _ in range(4)] threads += [Thread(target=toggler) for _ in range(4)] for t in threads: t.start() for t in threads: t.join() With TSAN build, the TSAN Report: CPython versions tested on:CPython main branch Operating systems tested on:Linux Activity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |