new test failures
Closed / Fixed2487771fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 17 years ago
Descriptionplain2009-01-05 13:23:00
Suspect cause is the 2412068 fix.
==== info-22.8 info frame, basic trace FAILED
==== Contents of test case:
join [lrange [etrace] 0 2] \n
---- Result was:
8 {type source line 728 file info.test cmd {info frame $level} proc ::etrace level 0}
7 {type source line 765 file info.test cmd etrace proc ::tcltest::RunTest}
6 {type proc line 11 cmd {uplevel 1 $script} proc ::tcltest::RunTest}
---- Result should have been (glob matching):
* {type source line 728 file info.test cmd {info frame $level} proc ::etrace level 0}
* {type source line 765 file info.test cmd etrace proc ::tcltest::RunTest}
* {type source line * file tcltest* cmd {uplevel 1 $script} proc ::tcltest::RunTest}
==== info-22.8 FAILED
==== info-38.7 location information for arg substitution FAILED
==== Contents of test case:
join [lrange [testevalex {return -level 0 [etrace]}] 0 3] \n
---- Result was:
9 {type source line 728 file info.test cmd {info frame $level} proc ::etrace level 0}
8 {type eval line 1 cmd etrace proc ::tcltest::RunTest}
7 {type source line 1414 file info.test cmd {testevalex {return -level 0 [etrace]}} proc ::tcltest::RunTest}
6 {type proc line 11 cmd {uplevel 1 $script} proc ::tcltest::RunTest}
---- Result should have been (glob matching):
* {type source line 728 file info.test cmd {info frame \$level} proc ::etrace level 0}
* {type eval line 1 cmd etrace proc ::tcltest::RunTest}
* {type source line 1414 file info.test cmd {testevalex {return -level 0 \[etrace]}} proc ::tcltest::RunTest}
* {type source line 2298 file tcltest.tcl cmd {uplevel 1 $script} proc ::tcltest::RunTest}
==== info-38.7 FAILED
dkfplain2009-01-05 20:27:12
Correct. That's exactly it. The deeper cause is that, w.r.t. TIP#280, Tcl_EvalObj and Tcl_EvalEx are *massively* different, and when I try to hack past it I get core dumps. I hate TIP#280.
dgp Ticket [2487771fff]: 1 change
[History diff]2009-01-05 20:29:23
ferrieuxplain2009-01-05 21:21:31
Then let's un-TIP it. Seriously.
hobbsplain2009-01-06 02:27:00
How about engineering past it instead of hacking? TIP#280 is a set of features requested from countless people that really shouldn't be disregarded so quickly.
dgpplain2009-01-06 02:31:12
I've claimed it. "Engineering past it" is my plan.
dkfplain2009-01-06 04:18:41
I was just grumbling about a job that was harder than it should have been. But the dgp claimed it :)
dgpplain2009-01-07 00:28:06
In a -singleproc 1 run, I think this failure
is another symptom of the same issue:
==== oo-22.1 OO and info frame FAILED
==== Contents of test case:
oo::define c self method frame {} {
info frame 0
}
oo::define c {
method frames {} {
info frame 0
}
method level {} {
info frame
}
}
oo::objdefine i {
method frames {} {
list [next] [info frame 0]
}
method level {} {
expr {[next] - [info frame]}
}
}
list [i level] [i frames] [dict get [c frame] object]
---- Result was:
1 {{type proc line 2 cmd {info frame 0} method frames class ::c level 0} {type proc line 2 cmd {info frame 0} method frames object ::i level 0}} ::c
---- Result should have been (glob matching):
1 {{type source line * file * cmd {info frame 0} method frames class ::c level 0} {type source line * file * cmd {info frame 0} method frames object ::i level 0}} ::c
Also many more info.test failures in that mode.
dkfplain2009-01-07 06:35:03
I think the greatly increased number of failures is related to the fact that Tcl_EvalObj (and especially its NRE-aware version) is significantly different to Tcl_EvalEx. It's also possible that I didn't pass quite the right flags, especially the extended flags that are passed through setting ill-documented magic fields. The degree to which all the various Tcl*Eval* APIs have diverged is highly unhelpful, and I suspect that in some cases the divergence has been because "that's how things were implemented at the time" rather than for any actual good reason. But the whole area has now become bewildering to me, which I think indicates that the code in the area is in serious need of a good shake out so it stops impeding maintenance. (The TIP#280 support code is the biggest problem, since it adds a lot of internal API that is deeply non-linear and non-obvious. And entirely undocumented.) The changes that lead to this caused this simply by taking a different route into the basic evaluation engine for the guts of [source]...
dgpplain2009-01-07 11:48:19
Yes. See 1669392.
nijtmansplain2009-04-28 16:40:39
In more than 3 months there was no activity in this one. This worries
me a somewhat, because I found a (closed source) package which breaks
because of this. Therefore, I would like to suggest to raise the
prio on this. To me it would be blocking for Tcl 8.7.
Explanation: What this package needs to do is find out whether the
currently running command is run from some known source file. It
does this by examining the stack, searching for a key-value
pair {type source}. If it is found, it examines the "file" key
to see if it's value matches the known source file. However,
with the current trunk, this no longer works.
(I wish I could be more helpful than that....)
dkfplain2009-04-28 17:32:54
Which closed source package?
dkf Ticket [2487771fff]: 1 change
[History diff]2009-04-28 17:32:55
dgpplain2009-04-28 20:45:07
dkf beat me to the prio bump. Regardless of the recorded prio, this bug is in my mind one of the blockers for 8.6b2. Yeah, 3 months. don't remind me. someday I'll work on Tcl again.
dgpplain2009-12-10 01:31:00
I think aku's improvements to TIP 280 in the last several months have fixed this one. Can nijtmans please confirm that the broken closed source package is again happy with the Tcl HEAD?
dgp Pending ticket [2487771fff].
[History diff]2009-12-10 01:31:01
nijtmansplain2009-12-11 17:40:47
Hurray, yes it's fixed now. Thanks, Adreas!
nijtmansplain2009-12-11 17:40:48
allow_comments - 1
Log in (anonymous is fine) to add a comment.