Skip to content
Tcl Source Code History Of Ticket 1153871
Login

History Of Ticket 1153871

Artifacts Associated With Ticket 1153871

  1. Ticket change [d98b4fdc91] (rid 107629) by yurivict on 2005-02-28 23:20:31:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.4.9"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "yurivict"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to:
      Tcl_CreateObjTrace destroyes user-supplied clientData
      
    11. type initialized to: "Bug"
  2. Ticket change [0802e38176] (rid 89496) by msofer on 2005-03-01 08:01:20:

    1. 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.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "msofer"
  3. Ticket change [d49d168093] (rid 123482) by yurivict on 2005-03-01 08:34:52:

    1. 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
      
      
    2. login: "yurivict"
    3. mimetype: "text/plain"
    4. username: "yurivict"
  4. Ticket change [8e82cd6e47] (rid 120120) by msofer on 2005-03-02 02:10:31:

    1. 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?
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [fae357036f] (rid 91962) by yurivict on 2005-03-02 04:00:21:

    1. 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
      
      
    2. login: "yurivict"
    3. mimetype: "text/plain"
    4. username: "yurivict"
  6. Ticket change [d050f7348e] (rid 113155) by msofer on 2005-03-02 04:14:17:

    1. 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. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [770a54b19b] (rid 105695) by dgp on 2005-03-02 06:19:00:

    1. subsystem changed to: "46. Traces"
  8. Ticket change [00fa5c7731] (rid 119401) by dgp on 2005-03-02 06:19:01:

    1. assignee changed to: "dgp"
  9. Ticket change [c2052824b8] (rid 111428) by dgp on 2005-03-09 06:45:24:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      please test whether this patch
      for Tcl 8.4.9 corrects the problem.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Add attachment "1153871.patch" [27f6ed6d69] (rid 88616) by dgp on 2005-03-09 06:45:26.

  11. Ticket change [0ae85eaf04] (rid 113902) by dgp on 2005-03-09 06:45:26:

    1. icomment:
      
      
      File Added - 124730: 1153871.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [ea6331a908] (rid 103373) by dgp on 2005-03-09 06:46:51:

    1. icomment:
      
      
      File Added - 124731: 1153871-8.5.patch
      
      Logged In: YES 
      user_id=80530
      
      
      Here's the corresponding patch
      for Tcl 8.5a3 ...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Add attachment "1153871-8.5.patch" [dd3e0ee763] (rid 114633) by dgp on 2005-03-09 06:46:51.

  14. Ticket change [4893896859] (rid 99913) by dgp on 2005-03-11 05:10:48:

    1. resolution changed to: "Fixed"
    2. status changed to: "Closed"
  15. Ticket change [b3fa730a7c] (rid 124941) by dgp on 2005-03-11 05:10:49:

    1. closedate changed to: "2005-03-10T22:10:49"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      fixes committed for 8.4.10 and 8.5a3.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"