Overview
| Artifact ID: | 92b005ee0d7485914729faa9f6abc1f0afe08398 |
|---|---|
| Ticket: | 3062331fffffffffffffffffffffffffffffffff
segfault in variable traces with ttk::* widgets |
| User & Date: | jenglish on 2011-06-15 05:20:35 |
Changes
- icomment:
I don't think the second fix (fossil e9e6f67c5b) fixes it either (check under valgrind) -- calling Tcl_Preserve()/Tcl_Release() in VarTraceProc() is too late, since tracePtr (VarTraceProc's clientData) has already been EventuallyFree()d by the time it gets there. Timeline is: script-level unset trace calls [destroy .b] .b's cleanup code calls Ttk_UntraceVariable, which frees the trace handle and (attempts to) remove the trace hook; trace hook gets called anyway, accessing freed memory.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"