Overview
| Artifact ID: | 1cb95e9683735cd26012b9c0fcfe65fc4abe5875 |
|---|---|
| Ticket: | 484200ffffffffffffffffffffffffffffffffff
TclEvalObjvInternal: potential segfault |
| User & Date: | dgp on 2001-11-21 15:11:23 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
Within TclEvalObjvInternal(), trace procedures are called in a loop like: for (tracePtr = iPtr->tracePtr; tracePtr != NULL; tracePtr = nextPtr) { nextPtr = tracePtr->nextPtr; ... (*tracePtr->proc)(tracePtr->clientData, interp, iPtr->numLevels, commandCopy, cmdPtr->proc, cmdPtr->clientData, objc, argv); } Trouble with that is (*tracePtr->proc) could do anything, including calling Tcl_DeleteTrace on the Tcl_Trace held by nextPtr. If it does that, there will be a segfault. The technique used by command and variable traces that involves defining additional structures such as ActiveCommandTrace and special handling could be adapted to solve this problem. - foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "TclEvalObjvInternal: potential segfault"
- type changed to: "Bug"