Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl crashes executing some byte codes

Closed / Fixed218514ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:32
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.
welch Closed ticket [218514ffff]. [History diff]2000-10-26 08:23:19
Log in (anonymous is fine) to add a comment.