Overview
| Artifact ID: | f0408fa16d92567c009c9aee4b3d0f248b44cf5c98c2e067a70b507dffd65a39 |
|---|---|
| Ticket: | 7e3f26c7481986b6c90359fd24d713a5c96c55f9
Memory corruption false positive with TCL_MEM_DEBUG |
| User & Date: | serhiy.storchaka on 2026-10-18 10:03:22 |
Changes
- foundin changed to: "9.0.5, 9.1.0"
- icomment:
[f505b17748] changed the expected refCount of freed objects to <tt>0xE8...</tt>, but <tt>Tcl_DbCkfree</tt> still fills freed memory with <tt>0x61</tt>, so the "decrementing refCount of previously disposed object" panic can no longer fire; a use-after-free decrement is caught only by the threaded check ("Tcl_Obj allocated in another thread", without file and line). The <tt>0x61616161</tt> checks in tclDisassemble.c and tclPreserve.c never matched on 64-bit either. Proposed fix in branch [/timeline?r=memdebug-freed-marker|memdebug-freed-marker]: <tt>Tcl_DbCkfree</tt> fills freed memory with <tt>0xE8</tt>, as suggested here, and all five checks use the same marker. A use-after-free decrement now panics with the file and line again. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"