Artifacts Associated With Ticket 1444291fffffffff
Ticket change [76f1496e16] (rid 105681) by dgp on 2006-03-06 17:29:07:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Here's a test case illustrating a problem with handling of TCL_EVAL_INVOKE flag value in TclEvalObjvInternal: test parse-8.12 {Tcl_EvalObjv procedure, TCL_EVAL_INVOKE} { set ::auto_index(noSuchCommand) { proc noSuchCommand {} {lappend ::info global} } set ::auto_index(::[string trimleft [namespace current]::test_ns_1::noSuchCo mmand :]) [list \ proc [namespace current]::test_ns_1::noSuchCommand {} { lappend ::info ns }] catch {rename ::noSuchCommand {}} set ::slave [interp create] $::slave alias bar noSuchCommand set ::info {} namespace eval test_ns_1 { $::slave eval bar } namespace delete test_ns_1 interp delete $::slave catch {rename ::noSuchCommand {}} set ::info } global The [::unknown] command is called when Tcl cannot resolve a command name. The default ::unknown proc defined in init.tcl attempts to [auto_load] a command so that the unresolved command name will resolve in future attempts. While performing thi task, the ::unknown proc assumes that the resolution context is given by: [uplevel 1 {::namespace current}] When the command name being resolved is getting eval'd because it is the target of an interp alias, this assumption is not true. TCL_EVAL_INVOKE forces resolution in ::, but swaps back to caller context before ::unknown is called. As the test demos, this can cause the wrong command to be auto-loaded, and evaled. - foundin initialized to: "obsolete: 8.4.12"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "[::unknown] and alias targets (TCL_EVAL_INVOKE)"
- type initialized to: "Bug"
Ticket change [99c4df07f1] (rid 110848) by dgp on 2006-03-07 01:08:26:
- icomment:
Logged In: YES user_id=80530 Attached patch fixes core-8-4-branch, while simplifying TEOvI at the same time.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2aae6670a8] (rid 118620) by dgp on 2006-03-07 01:08:27:
- icomment:
File Added - 169950: 1444291.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1444291.patch" [91e664171e] (rid 120695) by dgp on 2006-03-07 04:39:28.
Ticket change [b9222725ea] (rid 129084) by dgp on 2006-03-07 04:39:28:
- icomment:
Logged In: YES user_id=80530 revised patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [47c78408a0] (rid 99762) by dgp on 2006-03-07 04:39:30:
- icomment:
File Deleted - 169950: File Added - 169982: 1444291.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a9ba6d446d] (rid 99195) by dgp on 2006-03-07 04:48:14:
- icomment:
Logged In: YES user_id=80530 corresponding patch for HEAD
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1444291-85.patch" [23756fcc38] (rid 130938) by dgp on 2006-03-07 04:48:14.
Ticket change [704b781ea9] (rid 100448) by dgp on 2006-03-07 04:48:17:
- icomment:
File Added - 169984: 1444291-85.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [16c7e2e43d] (rid 124768) by dgp on 2006-03-07 04:57:22:
- closedate changed to: "2006-03-06T21:57:22"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 patches committed.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"