Artifacts Associated With Ticket 1153871fffffffff
Ticket change [d98b4fdc91] (rid 107629) by yurivict on 2005-02-28 23:20:31:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Caller supplied clientData argument to Tcl_CreateObjTrace. OBSERVE\D PROBLEM: coredump, analysis shows that clientData pointer supplied by user was typecasted to the pointer to the private structure TraceCommandInfo defined only in tclCmdMZ.c: tclCmdMZ.c:4318: tcmdPtr = (TraceCommandInfo*)tracePtr->clientData; tcmdPtr->curFlags = traceFlags; tcmdPtr->curCode = code; and subsequent assignments to TraceCommandInfo destroy user-owned memory area. Yuri
- foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "yurivict"
- subsystem initialized to: "10. Objects"
- title initialized to:
Tcl_CreateObjTrace destroyes user-supplied clientData
- type initialized to: "Bug"
Ticket change [0802e38176] (rid 89496) by msofer on 2005-03-01 08:01:20:
- icomment:
Logged In: YES user_id=148712 Core dump => setting to max priority I assume that this was not triggered by a tcl script, right? In any case, we also seem to be lacking a test in the testsuite.
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "msofer"
- icomment:
Ticket change [d49d168093] (rid 123482) by yurivict on 2005-03-01 08:34:52:
- icomment:
Logged In: YES user_id=129507 Tcl_CreateObjTrace was called before any TCLs, then memory corrution way down the road by subsequent TCL scripts. It's very obscure, I could only catch it by "gdb watch" command. Documentation should be fixed too since it says something about "arbitrary one-word value" which is not even the case. Yuri
- login: "yurivict"
- mimetype: "text/plain"
- username: "yurivict"
- icomment:
Ticket change [8e82cd6e47] (rid 120120) by msofer on 2005-03-02 02:10:31:
- icomment:
Logged In: YES user_id=148712 Looking at the code: Tcl_CreateObjTrace should only be passed flag values 0 or TCL_ALLOW_INLINE_COMPILATION. So we definitely have a bug in that we're not checking that value. What you are observing suggests that the flag somehow got a different value - or that that flag value itself was corrupted. Could you please confirm what flag value was passed to Tcl_CreateObjTrace?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [fae357036f] (rid 91962) by yurivict on 2005-03-02 04:00:21:
- icomment:
Logged In: YES user_id=129507 Actually it was called twice, for enter and leave. for enter with flags TCL_ALLOW_INLINE_COMPILATION for leave with flags TCL_TRACE_LEAVE_EXEC | TCL_ALLOW_INLINE_COMPILATION ---- seems to be unconditionally wrong for TCL to dereference user-supplied clientData, line: tcmdPtr = (TraceCommandInfo*)tracePtr->clientData; Yuri
- login: "yurivict"
- mimetype: "text/plain"
- username: "yurivict"
- icomment:
Ticket change [d050f7348e] (rid 113155) by msofer on 2005-03-02 04:14:17:
- icomment:
Logged In: YES user_id=148712 (1) Agreed about "unconditionally wrong", not denying the bug! (2) Tcl_CreateObjTrace is documented to accept only TCL_ALLOW_INLINE_COMPILATION as flag value. It should probably throw an error (return NULL) if it receives any other value. Note that under these conditions, the clientData is not deref'ed or overwritten. (3) Alternatively, we may find a way to enable Tcl_CreateObjTrace to process correctly other flag values. This implies some internal redesign. In the meantime - please use the function as documented.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [770a54b19b] (rid 105695) by dgp on 2005-03-02 06:19:00:
- subsystem changed to: "46. Traces"
Ticket change [00fa5c7731] (rid 119401) by dgp on 2005-03-02 06:19:01:
- assignee changed to: "dgp"
Ticket change [c2052824b8] (rid 111428) by dgp on 2005-03-09 06:45:24:
- icomment:
Logged In: YES user_id=80530 please test whether this patch for Tcl 8.4.9 corrects the problem.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1153871.patch" [27f6ed6d69] (rid 88616) by dgp on 2005-03-09 06:45:26.
Ticket change [0ae85eaf04] (rid 113902) by dgp on 2005-03-09 06:45:26:
- icomment:
File Added - 124730: 1153871.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ea6331a908] (rid 103373) by dgp on 2005-03-09 06:46:51:
- icomment:
File Added - 124731: 1153871-8.5.patch Logged In: YES user_id=80530 Here's the corresponding patch for Tcl 8.5a3 ...
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1153871-8.5.patch" [dd3e0ee763] (rid 114633) by dgp on 2005-03-09 06:46:51.
Ticket change [4893896859] (rid 99913) by dgp on 2005-03-11 05:10:48:
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [b3fa730a7c] (rid 124941) by dgp on 2005-03-11 05:10:49:
- closedate changed to: "2005-03-10T22:10:49"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 fixes committed for 8.4.10 and 8.5a3.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"