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 — Concurrent codecs.unregister() calls can crash in PyCodec_Unregister · Issue #157078 · python/cpython Closed as not planned Closed as not planned Copy link DescriptionDescription
Observed Behavior Eight threads repeatedly registering and unregistering one search function caused an ASan SEGV on address Affected Version CPython 3.14.7 at commit Reproduction ASAN_OPTIONS=detect_leaks=0:halt_on_error=1 PYTHON_GIL=0 python3.14 poc/reproduce.py 10 Setting PoC Source Code
import codecs import sys import threading import time duration = float(sys.argv[1]) if len(sys.argv) > 1 else 10.0 stop = threading.Event() def search(name): return None codecs.register(search) def exercise(): while not stop.is_set(): codecs.unregister(search) codecs.register(search) threads = [threading.Thread(target=exercise) for _ in range(8)] for thread in threads: thread.start() time.sleep(duration) stop.set() for thread in threads: thread.join() print("completed") Activity
MetadataMetadataAssigneesLabelsNo labels ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |