Overview
| Artifact ID: | b922d95c0f51144006acf6030bb3fb5896b7865a |
|---|---|
| Ticket: | 2939073fffffffffffffffffffffffffffffffff
Unset PATTERN unsafe with trace-originated secondary unsets |
| User & Date: | ferrieux on 2010-01-31 01:34:30 |
Changes
- icomment:
Still not managed to reproduce, but a good candidate from RTFS: At line 3199 of tclVar.c, for [array unset var pattern], a loop iterates over key with a stateful iterator: for (varPtr2=VarHashFirstVar(varPtr->value.tablePtr, &search); varPtr2!=NULL ; varPtr2=VarHashNextVar(&search)) { then, in the body of that loop, when a match is found, the unset is done, possibly calling traces, possibly wreaking the chaining of hash keys. Some kind of locking, or a more robust iterator, must be used I think. - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"