Overview
| Artifact ID: | 739e830331dbccd6733c3be8c98513eeafedc5eac866914379e3939fcf209c16 |
|---|---|
| Ticket: | e533296a92d890449603ce54a5b1e2f04912e68a
SegFault on [info frame] on apply |
| User & Date: | chw on 2026-08-26 19:48:18 |
Changes
- icomment:
Seems be present even in 8.5. This is my wildly guessed fix (diff against trunk): ---snip--- Index: generic/tclCmdIL.c ================================================================== --- generic/tclCmdIL.c +++ generic/tclCmdIL.c @@ -1292,13 +1292,11 @@ case TCL_LOCATION_BC: { /* * Execution of bytecode. Talk to the BC engine to fill out the frame. */ - CmdFrame *fPtr = (CmdFrame *)TclStackAlloc(interp, sizeof(CmdFrame)); - - *fPtr = *framePtr; + CmdFrame f = *framePtr, *fPtr = &f; /* * Note: * Type BC => f.data.eval.path is not used. * f.data.tebc.codePtr is used instead. @@ -1328,11 +1326,10 @@ ADD_PAIR("cmd", TclGetSourceFromFrame(fPtr, 0, NULL)); if (fPtr->cmdObj && framePtr->cmdObj == NULL) { needsFree = lc - 1; } - TclStackFree(interp, fPtr); break; } case TCL_LOCATION_SOURCE: /* ---snip--- - login: "chw"
- mimetype: "text/plain"