Skip to content
Tcl Source Code History Of Ticket 218903
Login

History Of Ticket 218903

Artifacts Associated With Ticket 218903

  1. Ticket change [a5ca17c1f8] (rid 110436) by nobody on 2000-10-26 01:07:26:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2613 Bug
      Version: 8.0.5
      SubmitDate: '1999-08-31'
      LastModified: '1999-09-18'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows NT
      OSVersion: 4.0
      Machine: X86
      FixedDate: '1999-09-18'
      FixedInVersion: 8.2.1
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Nick Bender
      
      
      
      CustomShell:
      
      None.
      
      
      
      Comments:
      
      Haven't checked later versions...
      
      
      
      ReproducibleScript:
      
      Run the following in tclsh:
      
          
      
          % array set nospace::new {}
      
          
      
          ...crash...
      
      
      
      ObservedBehavior:
      
      Crashes with null pointer in line 3177 of generic/tclVar.c
      
      
      
      DesiredBehavior:
      
      % array set nospace::new {}
      
          can't set "nospace::new": parent namespace doesn't exist
      
          %
      
      
      
      Patch:
      
      *** tclVar.c.oldFri Aug 20 16:59:27 1999
      
      --- tclVar.c.newFri Aug 20 16:58:42 1999
      
      ***************
      
      *** 3170,3179 ****
      
         * Create variable for new array.
      
         */
      
        
      
      ! varPtr = TclLookupVar(interp, varName, (char *) NULL, 0, 0,
      
        /*createPart1*/ 1, /*createPart2*/ 0,
      
        &arrayPtr);
      
            }
      
            TclSetVarArray(varPtr);
      
            TclClearVarUndefined(varPtr);
      
            varPtr->value.tablePtr =
      
      --- 3170,3184 ----
      
         * Create variable for new array.
      
         */
      
        
      
      ! varPtr = TclLookupVar(interp, varName, (char *) NULL,
      
      ! TCL_LEAVE_ERR_MSG, "set",
      
        /*createPart1*/ 1, /*createPart2*/ 0,
      
        &arrayPtr);
      
      + if (varPtr == NULL) {
      
      +   return TCL_ERROR;
      
      + }
      
            }
      
      + 
      
            TclSetVarArray(varPtr);
      
            TclClearVarUndefined(varPtr);
      
            varPtr->value.tablePtr =
      
      
      
      PatchFiles:
      
      generic/tclVar.c
      
      
      
      
      
      Verified in 8.2 
      -- 08/31/1999 hobbs
      The above patch was not exactly correct.  A correct version
      has been applied for 8.2.1. 
      -- 09/18/1999 hobbs
      
    4. foundin initialized to: "final: 8.0.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "array set in undefined namespace crashes tclsh"
    11. type initialized to: "Bug"
  2. Ticket change [51e5acea3a] (rid 126209) by welch on 2000-10-26 08:31:15:

    1. closedate changed to: "2000-10-26T01:31:15"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [bd7bd5e23a] (rid 101912) by dgp on 2001-04-21 04:13:33:

    1. closedate changed to: "2001-04-20T21:13:33"
    2. closer changed to: "dgp"
    3. subsystem changed to: "07. Variables"