Overview
| Artifact ID: | 6ddc922fb12b9787ab33caf3758939abc08005b61024604386a88dd50302446c |
|---|---|
| Ticket: | 1acd172c424b57c947df0024c5de16fd59207499
Ensemble compilation leads to change in "unknown" behavior |
| User & Date: | sebres on 2024-03-12 14:18:51 |
Changes
- comment changed to:
Testcases in TIP #688 implementation show a different error-message for http::idna unknown command handling compared to trunk. This shows something unexpected is happening: <pre> ==== http-idna-1.2.0 IDNA package: basics FAILED ==== Contents of test case: ::tcl::idna ? ---- Result was: unknown subcommand "?": must be decode, encode, puny, or version ---- Result should have been (exact matching): unknown or ambiguous subcommand "?": must be decode, encode, puny, or version ==== http-idna-1.2.0 FAILED </pre> - foundin changed to: "TIP #688 implementation"
- icomment:
I don't know whether it is the same issue (however all versions 8.6+ seem to affected), but since it's pretty reproducible in sebres-8-6-clock-speedup-cr2 (where the compilation of mapped ensemble still there), we can combine both things in the same ticket. The issue: ``` interp alias {} dis {} ::tcl::unsupported::disassemble proc test {} { clock format 0 -too-few-options-4-test }; time { puts [list [catch test msg] $msg]; # puts [dis proc test] } 2 ``` produce: ``` 1 {wrong # args: should be "clock format clockval|-now ?-format string? ?-gmt boolean? ?-locale LOCALE? ?-timezone ZONE?"} 1 {wrong # args: should be "::tcl::clock::format clockval|-now ?-format string? ?-gmt boolean? ?-locale LOCALE? ?-timezone ZONE?"} ``` So rewrite ensemble stops to work after epoch change (here caused by auto load of ::tcl::clock stubs), see 2nd output. The compilation of ensemble (either compile of `INST_INVOKE_REPLACE` or recompilation TEBC after epoch switch) seems to have a bug, which causes that `TclInitRewriteEnsemble` would be not executed at some point anymore. Uncommenting of dissassemble shows that the epoch changes and proc-code indeed losses `INST_INVOKE_REPLACE` instruction hereafter. Non-compiled ensemble does it correct, because in that case `TclInitRewriteEnsemble` is invoked from NRE by invocation of main ensemble command. - login: "sebres"
- mimetype: "text/x-markdown"