diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2003-05-12 17:31:50 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2003-05-12 17:31:50 (GMT) |
commit | 88277cfbf1cceab46833ba93902ebb9fe1da8133 (patch) | |
tree | a67727437b70adf865cb3434bd950af5eb0c3db2 /tests | |
parent | b95a9126f621fbe906c1e61a45a571d044973e91 (diff) | |
download | tcl-88277cfbf1cceab46833ba93902ebb9fe1da8133.zip tcl-88277cfbf1cceab46833ba93902ebb9fe1da8133.tar.gz tcl-88277cfbf1cceab46833ba93902ebb9fe1da8133.tar.bz2 |
* generic/tclVar.c (TclObjLookupVar): [Bug 735335] temporary fix,
disabling usage of tclNsVarNameType.
* tests/var.test (var-15.1): test for [Bug 735335]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/var.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/var.test b/tests/var.test index c8e57d8..2f0c1df 100644 --- a/tests/var.test +++ b/tests/var.test @@ -14,7 +14,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: var.test,v 1.20.2.1 2003/03/24 00:55:16 msofer Exp $ +# RCS: @(#) $Id: var.test,v 1.20.2.2 2003/05/12 17:31:51 msofer Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -680,6 +680,20 @@ test var-14.1 {array names syntax} -body { array names foo bar baz snafu } -returnCodes 1 -match glob -result * +test var-15.1 {segfault in [unset], [Bug 735335]} { + proc A { name } { + upvar $name var + set var $name + } + # + # Note that the variable name has to be + # unused previously for the segfault to + # be triggered. + # + namespace eval test A useSomeUnlikelyNameHere + namespace eval test unset useSomeUnlikelyNameHere +} {} + catch {namespace delete ns} catch {unset arr} catch {unset v} |