Overview
| Artifact ID: | 2cedf0a235dab139488782d8d9197cfffa9d79cb |
|---|---|
| Ticket: | 2629338fffffffffffffffffffffffffffffffff
segfault on traced vars in TclCallVarTraces |
| User & Date: | dgp on 2009-11-06 05:52:29 |
Changes
- icomment:
I'm very uneasy about this patch, since I still have no understanding about what bug it is fixing, nor any test case to confirm that it actually fixes anything. The original description says "The core issue is essentially that TclUnsetVarStruct calls all the unset traces on the variable, then sets about deleting the traces. The problem is, the traces may have already deleted themselves when they were called. (which tdom's always do.) In particular, the 'head' of the list may have removed itself." However, UnsetVarStruct moves all trace operations over to a dummy copy that ought to be out of reach. tdom does make calls to Tcl_UntraceVar(), true, but those are no-ops, since they lookup the original traced variable, which no longer has any traces to remove since they've all been moved over to the dummy.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"