Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[array set] broken in [namespace eval]

Closed / Fixed3600328fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-01-11 03:33:23
Starting with checkin http://core.tcl.tk/tcl/info/0a095f089c

in a --enable-symbols=all build of Tcl, the command
[evalstats] panics:

$ make shell
...
% evalstats
bad stack adjustment when compiling array (was 2 instead of 1)
make: *** [shell] Abort trap
dkfplain2013-01-11 18:45:26
Nothing to do with [evalstats]. It's somewhere in [history] as a single blank line typed interactively will also cause the failure. Investigating...
msoferplain2013-01-11 18:49:57
When fixed, please review if commit 6547cc9e7b fixes a real bug, or rather provides cover for one.
dkfplain2013-01-11 18:56:45
It is a problem in how [array set] interacts with the ensemble compiler, and is due to wanting to retract the generation of bytecode (a push of a variable name).
dkfplain2013-01-11 18:57:58
6547cc9e7b doesn't appear related to this one
dkf Ticket [3600328fff]: 1 change [History diff]2013-01-11 18:58:19
dkf Ticket [3600328fff]: 1 change [History diff]2013-01-11 18:59:05
dgpplain2013-01-11 20:06:24
Apologies for the [evatstats] mislead.  Just running
`make test`
dgpplain2013-01-11 20:07:00
... in the --enable-symbols=all build reveals several
failures and panics.
dkfplain2013-01-11 20:12:47
Yeah; there's problems due to stack balances going wrong; I need to fix them too, since they're otherwise going to cause wrong code (and strange crashes) which is why they're a Tcl_Panic in the first place. After all, it's better to detect the problem than not…
dkfplain2013-01-11 21:30:27
See the bug-3600328 branch (though there are still problems when running the test suite...)
dkfplain2013-01-17 22:10:39
allow_comments - 1

Problems that remain are due to bugs from elsewhere; this fix committed to trunk.
Log in (anonymous is fine) to add a comment.