Artifacts Associated With Ticket 1439836fffffffff
Ticket change [e29f0649e8] (rid 87663) by dgp on 2006-02-27 19:21:19:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The flag TCL_EVAL_GLOBAL ought to have identical impact as [uplevel #0], but these tests demo they are different when exec traces are present: test trace-21.9 {trace execution: TCL_EVAL_GLOBAL} { trace add execution foo enter soom proc ::soom args {lappend ::info SUCCESS [info level]} set ::info {} namespace eval test_ns_1 { proc soom args {lappend ::info FAIL [info level]} # [testevalobjv 1 ...] ought to produce the same # results as [uplevel #0 ...]. testevalobjv 1 foo x uplevel #0 foo x } namespace delete test_ns_1 trace remove execution foo enter soom set ::info } {SUCCESS 1 SUCCESS 1} test trace-21.10 {trace execution: TCL_EVAL_GLOBAL} { trace add execution foo leave soom proc ::soom args {lappend ::info SUCCESS [info level]} set ::info {} namespace eval test_ns_1 { proc soom args {lappend ::info FAIL [info level]} # [testevalobjv 1 ...] ought to produce the same # results as [uplevel #0 ...]. testevalobjv 1 foo x uplevel #0 foo x } namespace delete test_ns_1 trace remove execution foo leave soom set ::info } {SUCCESS 1 SUCCESS 1} - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "None"
- title initialized to: "exec trace: TCL_EVAL_GLOBAL vs. [uplevel #0]"
- type initialized to: "Bug"
Ticket change [5a67be40c8] (rid 118136) by dgp on 2006-02-28 03:03:11:
- assignee changed to: "dgp"
- foundin changed to: "obsolete: 8.4.12"
- icomment:
Logged In: YES user_id=80530 This additional test demos similar trouble with [::unknown]: test parse-8.10 {Tcl_EvalObjv procedure, TCL_EVAL_GLOBAL} testevalobjv { rename ::unknown unknown.save proc ::unknown args {lappend ::info [info level]} catch {rename ::noSuchCommand {}} set ::info {} namespace eval test_ns_1 { testevalobjv 1 noSuchCommand uplevel #0 noSuchCommand } namespace delete test_ns_1 rename ::unknown {} rename unknown.save ::unknown set ::info } {1 1} - login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "TCL_EVAL_GLOBAL vs. [uplevel #0]"
- username: "dgp"
Ticket change [b90f079d53] (rid 129062) by dgp on 2006-02-28 05:45:49:
- icomment:
Logged In: YES user_id=80530 here's a patch with the tests and the fix.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f825e01522] (rid 91490) by dgp on 2006-02-28 05:45:50:
- icomment:
File Added - 169072: 1439836.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [978d27e8d8] (rid 110459) by dgp on 2006-02-28 06:49:11:
- icomment:
File Deleted - 169072: File Added - 169080: 1439836.patch Logged In: YES user_id=80530 revised patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1439836.patch" [837ee8adff] (rid 117390) by dgp on 2006-02-28 06:49:11.
Ticket change [18d571755b] (rid 122729) by dgp on 2006-02-28 06:56:21:
- icomment:
File Added - 169083: 1439836-85.patch Logged In: YES user_id=80530 here's the corresponding patch for the HEAD
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1439836-85.patch" [8a78ff5e6e] (rid 127397) by dgp on 2006-02-28 06:56:21.
Ticket change [2fb5279457] (rid 93109) by dgp on 2006-02-28 22:49:45:
- closedate changed to: "2006-02-28T15:49:45"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Patches committed. Bug fixed for 8.4.13 and 8.5a4.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"