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 — readline leaks the completer delimiters buffer on re-import · Issue #160353 · 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 reportRe-importing readline after removing it from sys.modules leaks the buffer allocated by set_completer_delims(). Reproduced on Linux with an AddressSanitizer build of CPython main, commit ad101c3 (3.16.0a1+dev): ASAN_OPTIONS=detect_leaks=1 ./python -I -S -B -c 'import readline, sys; readline.set_completer_delims("x" * 28); del sys.modules["readline"]; import readline'LeakSanitizer reports 29 bytes leaked in one allocation, originating from strdup() in readline_set_completer_delims_impl() (Modules/readline.c:853). During re-import, setup_readline() overwrites completer_word_break_characters with a new allocation without freeing the previous buffer. Repeated calls to set_completer_delims() without re-importing do not Related reports: #94064, #152398. CPython versions tested on:CPython main branch, 3.16, 3.15 Operating systems tested on:Linux Linked PRsActivity
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. |