Skip to content
Tcl Source Code History Of Ticket 1740700fffffffff
Login

History Of Ticket 1740700fffffffff

Artifacts Associated With Ticket 1740700fffffffff

  1. Ticket change [90c2de677c] (rid 120506) by dgp on 2007-06-21 03:17:04:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      noted in the chat:
      
      infinite loop:
      % proc foo {i args} {namespace eval ::a set [incr i] 1; trace add variable ::a::$i unset [list ::foo $i]}
      % foo 0
      % info vars a::*
      ::a::1
      % namespace delete a
      
    4. foundin initialized to: "obsolete: 8.5a7"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "07. Variables"
    11. title initialized to: "var deletion infinite loop"
    12. type initialized to: "Bug"
  2. Ticket change [7b132252fa] (rid 90450) by msofer on 2007-07-07 02:29:24:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      The algorithm for variable deletion on namespace death keeps unsetting variables (and running unset traces) until no more are left. It does make sure that a variable cannot revive *itself* (ie, #1746143 is not possible on namespace deletion), but makes otherwise no difference between variables that existed at the time of the [namespace delete] call and those that were created afterwards.
      
      This does look like a bug to me - but I am not sure what the right behaviour would be. One radical solution would be to unhook the ns's variable table before starting to unset, replacing it with an empty one. After unsetting all variables in the main table, the second table would be deleted without running unset traces. Such a thing would change the semantics slightly: no pre-existing variable in this namespace is accessible while var unset traces are running. In contrast, today they may (or may not) be: variables are unset in table order (ie, more or less random), so some of them may still be accessible while others are already gone. Can't imagine much use for this.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Add attachment "undo.patch" [4b090ae570] (rid 126629) by dgp on 2007-09-10 03:59:22.

  4. Ticket change [6c62579dcd] (rid 128501) by dgp on 2007-09-10 03:59:22:

    1. closedate changed to: "2007-09-09T20:59:22"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      File Added - 244864: undo.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      This bug is fixed on HEAD.
      
      If it's decided this isn't really
      a bug after all, attached patch
      will restore this behavior.
      File Added: undo.patch
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Pending"
    8. username: "dgp"
  5. Ticket change [0375721dab] (rid 119832) by sf-robot on 2007-09-24 09:20:03:

    1. closedate changed to: "2007-09-24T02:20:03"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"