Skip to content
Tcl Source Code History Of Ticket 1016167fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1016167fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1016167fffffffffffffffffffffffffffffffff

  1. Ticket change [03233c5b8b] (rid 119769) by dgp on 2004-08-25 17:27:34:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      % namespace export after
      % namespace eval foo namespace import ::after
      % namespace origin foo::after
      ::after
      % foo::after 1
      % namespace origin foo::after
      ::foo::after
      
      Tcl_AfterObjCmd incorrectly assumes
      that objv[0] holds the name of the
      built-in after command itself, and uses
      Tcl_SetCommandInfo to overwrite "itself"
      
      With [namespace import]ed commands,
      though, objv[0] is the [namespace import]-created
      command, not the original.  The overwrite
      causes it to become an alternative
      implementation of [after], rather than an
      imported link to [after], as the different
      [namespace origin] results demonstrate.
      
    4. foundin initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "03. Timer Events"
    10. title initialized to: "[after] overwrites its imports"
    11. type initialized to: "Bug"
  2. Add attachment "1016167.patch" [a3c7a132f8] (rid 110098) by dgp on 2004-08-26 01:30:06.

  3. Ticket change [8cce4be67b] (rid 127797) by dgp on 2004-08-26 01:30:06:

    1. icomment:
      
      
      File Added - 99158: 1016167.patch
      
      Logged In: YES 
      user_id=80530
      
      
      Attached patch corrects this specific
      instance of the bug.
      
      Note that it makes use of the
      internal routine TclGetOriginalCommand
      to do so.
      
      Another fix would be to store [after]'s
      data directy in an Interp field, rather than
      in assocData and clientData (would also
      require internals privilege).
      
      Only fix that would be available to 
      extensions would be to arrange for
      the Tcl_CreateObjCommand call
      that creates [after] to pass in a real
      ClientData value that allows space
      for mods on the fly.  That fix would
      also take care of any other 
      C-based wrappers, that, like [namespace
      import], lead to the result of
      Tcl_GetCommandFromObj(objv[0]) not
      being the struct that holds the current
      clientData.  There appears to be no
      generally reliable way for a Tcl_ObjCmdProc
      to get at the Tcl_CmdInfo of the command
      currently being dispatched.  In order to
      write to the ClientData, it needs to be
      originally set up with space to write on.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [585650de5a] (rid 117782) by dgp on 2004-08-26 01:50:52:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      BTW, it appears that the "tclAfter"
      entry of interp assoc data is
      nowhere used.  If that's confirmed,
      you might consider abolishing it.
      
      Hmmm.... I think I see.  Since
      there's no Tcl_CmdDeleteProc
      registered for [after], the database
      of timer events isn't cleaned up
      if/when [after] is deleted.  Storing
      it as assoc data at least sees that
      they are cleaned up on interp
      deletion.
      
      All this seems to suggest that
      [after] really wants a real
      Tcl_CreateObjCommand call
      so that it can customize the
      ClientData and Tcl_CmdDeleteProc
      to its needs.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [dce1d60226] (rid 114563) by dkf on 2004-08-26 04:54:53:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Ensemble -unknown callback handling was vulnerable to this
      sort of nonsense.  That aspect is now Fixed (I had the
      command token handy anyway for cleanup.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [a67f0b1a1d] (rid 98611) by dgp on 2004-08-26 05:25:09:

    1. foundin changed to: "obsolete: 8.5a2"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      committed patch to HEAD as
      a workaround of the problem.
      
      Leaving open for the maintainer
      to provide a better fix.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. username: "dgp"
  7. Ticket change [8cff22b855] (rid 127841) by kennykb on 2004-09-08 00:50:35:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      Changes committed to HEAD - still need to backport to 8.4
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  8. Ticket change [45e832ff3c] (rid 99422) by kennykb on 2004-09-08 01:26:01:

    1. closedate changed to: "2004-09-07T18:26:01"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Changes backported, closing bug.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "kennykb"