Overview
| Artifact ID: | 642dd38c0aa57384f38229a1a1d733ffe1ae4759 |
|---|---|
| Ticket: | 16828b3744521541660af48501fa06e63e564ad3
TclOO segmentation fault |
| User & Date: | dah on 2016-06-15 23:16:27 |
Changes
- icomment:
I think I know the cause of the crash. 1) vwait ::test::foo waits for foo to be set. 2) When ::test::foo is set, vwait exits its loop 3) namespace teardown still sees ::test::foo as having a trace on it and invokes trace handlers 4) vwait's VwaitVarProc is called a second time for the variable UNSET trace event however it's out of the Tcl_VwaitObjCmd function by now and this function passes the address of a local variable named "done" to Tcl_TraceVar2 thereby smashing the stack and eventually leading to a crash. Tcl_UntraceVar2 isn't unsetting the trace in Tcl_VwaitObjCmd. I took out the TCL_TRACE_UNSETS flags and the crash went away.
- login: "dah"
- mimetype: "text/plain"
- username: "dah"