Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [5bd41844e6] tracing: (self) deleted command or coroutine after exit does... artifact: ea99374cdd user: serhiy.storchaka
2026-10-15
11:29 • Closed ticket [5bd41844e6]. artifact: a3c7ad6727 user: serhiy.storchaka
2025-03-23
18:37 • Ticket [5bd41844e6]: 4 changes artifact: 281de48f7f user: jan.nijtmans
2025-03-21
11:39 • Ticket [5bd41844e6]: 3 changes artifact: 3062d856dc user: sebres
2025-03-19
15:12 • Ticket [5bd41844e6]: 3 changes artifact: 1a480fe954 user: sebres
15:12 • Pending ticket [5bd41844e6]. artifact: 5066225aba user: sebres
15:06
fixes bug [5bd41844e62aceb2]: tracing - (self) deleted command or coroutine after exit must invoke l... check-in: 6264ad4a41 user: sebres tags: bug-5bd41844e6-coro-exec-trace
15:04
tests illustrating and covering bug [5bd41844e62aceb2]: paired `leave*` to `enter*` handlers by (sel... check-in: fd68471001 user: sebres tags: bug-5bd41844e6-coro-exec-trace
2025-03-18
18:58 • New ticket [5bd41844e6] tracing: (self) deleted command or coroutine after exit ... artifact: 01df7b34e4 user: sebres

tracing: (self) deleted command or coroutine after exit doesn't invoke leavestep handler, so it's not paired to enterstep

Closed / Fixed5bd41844e62aceb2969f4f1ff60de84ad2291c4eCreated 2 years agoUpdated 41 days ago
Descriptionwiki2025-03-18 18:58:08
Execution trace (leave or leavestep handler) will be avoided if command gets deleted during the executing and tracing process, so the leave/leavestep calls becomes unpaired to the enterstep calls (no matter how deep by nesting/recursion).

The same is also valid for coroutine after its exit (what basically equal to its deletion) and probably therefore more important here, because the deletion is not avoidable in case of coro.

The traces behind the behaviour lead to [571385ffffffffffffff], where the "fix" was introduced as preventive measures against a segfault, but the root of that issue was obviously different (and also already fixed now, I guess with the NRE).

The fix is more or less trivial, so I'll provided it as a branch soon.

sebreswiki2025-03-19 15:12:19

There is new 8.6-based branch bug-5bd41844e6-coro-exec-trace that fixes the behaviour (see new tests).

I'm waiting for a feedback... Tests and reviews are welcome.

sebres Ticket [5bd41844e6]: 3 changes [History diff]2025-03-19 15:12:28
sebres Ticket [5bd41844e6]: 3 changes [History diff]2025-03-21 11:39:21
jan.nijtmanswiki2025-03-23 18:37:14

Looks good to me. And gibhub actions tell's it's OK too!

serhiy.storchakawiki2026-10-15 11:29:07

Closing: fixed, see above.

serhiy.storchaka Ticket [5bd41844e6]: 3 changes [History diff]2026-10-22 17:19:26
Log in (anonymous is fine) to add a comment.