Overview
| Artifact ID: | bf4389df09abc4cefd7531cf32546b851dcb9072 |
|---|---|
| Ticket: | 3008307fffffffffffffffffffffffffffffffff
callerPtr chain does not traverse coro floor |
| User & Date: | coldstore on 2010-05-30 07:54:18 |
Changes
- icomment:
To make it clearer where the badness is occurring, I've modified the code. proc bottomp {y} { puts stderr "*running bottom" after 0 top 1 puts stderr "*yield in bottom" yield puts stderr "*return from bottom" } proc topp {x} { puts stderr "*running top" coroutine bottom bottomp 2 after 0 bottom 3 puts stderr "*yield in top" yield puts stderr "*return from top" } puts stderr "*starting" coroutine top topp 1 set done 0 vwait done And here is the output (edited for clarity): *starting TclNRCoroutineObjCmd save caller: 0x86a7610 SAVE : 0x8679e48 TclProcCompileProc: PUSH : 0x869f470 0x8679e48 TclProcCompileProc: DELETING 0x869f470 POP : 0x8679e48 PushProcCallFrame: PUSH : 0x869f470 0x8679e48 *running top TclNRCoroutineObjCmd save caller: 0x86a7a90 SAVE : 0x869f470 0x8679e48 TclProcCompileProc: PUSH : 0x869ec70 0x869f470 0x8679e48 TclProcCompileProc: DELETING 0x869ec70 POP : 0x869f470 0x8679e48 PushProcCallFrame: PUSH : 0x869ec70 0x869f470 0x8679e48 *running bottom *yield in bottom NRCoroutineCallerCallback save running: 0x86a7a90 SAVE : 0x869ec70 0x869f470 0x8679e48 NRCoroutineCallerCallback restore caller: 0x86a7a90 RESTORE : 0x869f470 0x8679e48 *yield in top NRCoroutineCallerCallback save running: 0x86a7610 SAVE : 0x869f470 0x8679e48 NRCoroutineCallerCallback restore caller: 0x86a7610 RESTORE : 0x8679e48 NRInterpCoroutine save caller: 0x86a7610 SAVE : 0x8679e48 NRInterpCoroutine restore running: 0x86a7610 RESTORE : 0x869f470 0x8679e48 *return from top InterpProcNR2: POP : 0x8679e48 InterpProcNR2: DELETING 0x869f470 NRCoroutineExitCallback restore caller 0x86a7610 RESTORE : 0x8679e48 NRInterpCoroutine save caller: 0x86a7a90 SAVE : 0x8679e48 NRInterpCoroutine restore running: 0x86a7a90 RESTORE : 0x869ec70 0x869f470 0xfffffff9Segmentation fault The badness here is around stack element 0x869f470 I - login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"