Overview
| Artifact ID: | 63ea4df9981554562df0e27bf3016f47ab00186f769a3d3c4763756e091869ff |
|---|---|
| Ticket: | 87271f7cd6ab29a076b36e31041a8c940c20d943
TclOO + coroutine + event loop = coredump |
| User & Date: | dkf on 2022-06-28 11:51:40 |
Changes
- icomment:
Can confirm that the problem was also there in 8.6.4 (which is what I happen to have on this machine). <p> Output from the program is this: <pre> ::a1 INFO FRAME=5 1: type eval line 1 cmd main level 2 2: type proc line 6 cmd {vwait forever} proc ::main 3: type eval line 1 cmd ::coro-a1 proc ::main 4: type proc line 7 cmd {my dump-frames} method Work class ::A level 1 ::a2 INFO FRAME=5 1: type eval line 1 cmd main level 2 2: type proc line 6 cmd {vwait forever} proc ::main 3: type eval line 1 cmd ::coro-a2 proc ::main </pre> Note the missing frame 4 for the second trace. <p> Turning <code>dump-frames</code> into an ordinary procedure (and doing the obvious adjustment to the call site) also crashes with an almost identical trace of printed messages: <pre> proc dump-frames {} { puts "[uplevel self] INFO FRAME=[info frame]" for {set i 1} {$i < [info frame]} {incr i} { puts [format "\t%2d: %s" $i [info frame $i]] } } </pre> I conclude that the crash is <em>not</em> dependent on the <em>current</em> stack frame being a method stack frame. - login: "dkf"
- mimetype: "text/html"
- priority changed to: "9 Immediate"