Overview
| Artifact ID: | 138a5999ba88bed23b7ad65d2bb5d1ee8fd9544ad898dd296e3dd4dba08572c4 |
|---|---|
| Ticket: | 87271f7cd6ab29a076b36e31041a8c940c20d943
TclOO + coroutine + event loop = coredump |
| User & Date: | dkf on 2024-05-16 14:51:04 |
Changes
- icomment:
The band-aid fix: ``` Index: generic/tclCmdIL.c ================================================================== --- generic/tclCmdIL.c +++ generic/tclCmdIL.c @@ -1380,11 +1380,11 @@ /* * 'proc'. Common to all frame types. Conditional on having an associated * Procedure CallFrame. */ - if (procPtr != NULL) { + if (procPtr != NULL && procPtr->cmdPtr != NULL) { Tcl_HashEntry *namePtr = procPtr->cmdPtr->hPtr; if (namePtr) { Tcl_Obj *procNameObj; ``` The problem is I'm not sure how to fix this properly. (You can also detect whether `framePtr->framePtr->isProcCallFrame & FRAME_IS_METHOD` is true, but that activates in more cases; the test suite picks that up.) In particular, should the `info frame` call report the declaration object/class or the call object/class? That's a critical difference when dealing with subclassing... - login: "dkf"
- mimetype: "text/x-markdown"