| Ticket UUID: | 3603163 | ||
| Title: | [array set] inside [eval] inside proc: bad stack adjustment | ||
| Type: | Bug | Created on: | 2013-02-03 10:43:23 |
| Submitter: | pooryorick | Assigned to: | dkf |
| Subsystem: | 16. Commands A-H | Severity: | |
| Priority: | 9 Immediate | Last modified: | 2013-02-04 21:58:45 |
| Status: | Closed | Closed by: | dkf |
| Resolution: | Fixed | Closed on: | 2013-02-04 14:58:45 |
| Version: | current: 8.6.0 | ||
| Description: | ||||
The test below (added to trace.test in my case) results in the following error with --enable-symbols=compile:
Test file error: bad stack adjustment when compiling array (was 0 instead of 1)
without any "--enable-symbols" option, it simply produces a segmentation fault
test eval_array_in_proc {[array set] command in an eval script in a proc} {
unset -nocomplain x
proc body {} {
global x
eval {array set x {a 1}}
}
body
} {}
| ||||
| User Comments: | ||||
dkf added on 2013-02-04 16:01:22:
The purpose of that panic is to detect serious compilation problems at a point when it is possible to figure out what went wrong, rather than at some later time when a Tcl stack smash happens. Thanks for reporting! Was this with 8.6.0 release or with the trunk? I've been tinkering with things since 8.6.0 so it might already be fixed... dkf added on 2013-02-04 20:23:58:
Whatever. It's the trunk that's crashing with this test when I try it. :-( Prio bumped to max. dkf added on 2013-02-04 21:58:45:
allow_comments - 1 Should be fixed on trunk | ||||
