Overview
| Artifact ID: | 1e41b3c181cc322fc42117b85d50f06ac42dfe5c234d3b55d542ee917407ed48 |
|---|---|
| Ticket: | 4955f5d8a4dce006e063f924bc9709f7850ecb6a
tailcall splicing spot vs. raw TclInvokeObjectCommand |
| User & Date: | serhiy.storchaka on 2026-10-14 18:22:45 |
Changes
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
In 9.0 <nowiki>Tcl_GetCommandInfo()</nowiki> no longer returns a string proc for such commands (TclInvokeObjectCommand was removed in [5a28eecf35]), and Tk no longer uses tailcall in these procs. But the panic still happens in 8.6.18, 9.0.5 and 9.1 if the objProc of the proc is called directly. Tcl_NRCallObjProc(), which runs an NRE command from its objProc, does not provide the spot that tailcall needs. Proposed fix in branch [/timeline?r=nrcallobjproc-tailcall-point|nrcallobjproc-tailcall-point]: Tcl_NRCallObjProc() and Tcl_NRCallObjProc2() push a tailcall point. Tests tailcall-bug-4955f5d8a4-* (with a new <nowiki>[testcmdinfo call]</nowiki>, which calls the objProc in a child interpreter, as suggested here).
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"