Overview
| Artifact ID: | 80e7653ba66b4dbb864e3db26fb95062c2839a2a5ab8dca8177eb356b654fc11 |
|---|---|
| Ticket: | 8c52e7873850438e512afa106284e299812dc48d
dgp-refactor TclStackFree panic |
| User & Date: | dgp on 2023-08-03 19:45:52 |
Changes
- icomment:
TclDuplicatePureObj() includes a call to Tcl_ConvertToType() When the type is "bytecode", the conversion steps can stomp on the execution stack hanging off the interp. This is a general problem with the bytecode execution engine whenever it calls any function that takes an "interp" argument that might somehow circle back into the execution stack. Any routine like this needs protecting with enclosure in DECACHE_STACK_INFO() ... CACHE_STACK_INFO() I don't know why the panic only showed up on the dgp-refactor branch, but it seems to me the argument for protecting the execution stack would apply on trunk as well. A search through the tickets for CACHE_STACK_INFO should turn up more detailed background information from earlier similar problems. This is a nasty, hard-to-debug design defect that recurs occasionally. A more fundamental design solution would be welcome.
- login: "dgp"
- mimetype: "text/plain"