Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 91507504e23b40420aae6df1a8105203a336a7d5
Ticket: 218514ffffffffffffffffffffffffffffffffff
Tcl crashes executing some byte codes
User & Date: nobody on 2000-10-26 01:01:32
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 796 Bug
    Version: 8.1a2
    SubmitDate: '1998-11-05'
    LastModified: '1998-12-08'
    Severity: CRIT
    Status: Released
    Submitter: stanton
    ChangedBy: stanton
    RelatedBugIDs: 937 934
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '1998-11-06'
    FixedInVersion: 8.1b1
    ClosedDate: '2000-10-25'
    
    
    Date: Fri, 6 Nov 1998 07:28:39 +1100 (EST)
    From: Ben Elliston <[email protected]>
    To: [email protected]
    Subject: This script crashes wish 8.1a2
    
    A month or so ago, I posted this to comp.lang.tcl, but not to
    bugs@scriptics (as best I can remember).  It's a nasty one.
    
    Regards,
    Ben
    
    - -- start of forwarded message --
    
    I have narrowed a script of ours down to this much smaller version, which
    crashes wish 8.1a2.  From what I can see, the code which executes the
    bytecode is dying when executing the body of bar{}.
    
    I'm not indicating that this is a particularly good script, but it does
    crash the interpreter.  No script should crash the interpreter, no matter
    how bad it is.
    
    Ben
    
    #!libexec/wish
    # Hacked up Tcl-based GUI installation program
    
    proc foo {} {
      global installhome
      entry .e -textvariable installhome
    }
    
    proc bar {} {
      global installhome
      set installhome foobar
      puts $installhome
    }
    
    foo
    bar
    
    
    
    This was a result of a bug in tclVar.c where the name of a variable that was upvar'd was getting lost.
    
    
    
  4. foundin changed to: "obsolete: 8.1a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "Tcl crashes executing some byte codes"
  11. type changed to: "Bug"