Artifacts Associated With Ticket 0e3f777ed5
Ticket change [81742a99ef] (rid 255049) by erikleunissen on 2026-07-25 15:22:03:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
> cat exercise.tcl proc p {} { # This proc needs to hold at least one (arbitrary) command # for enterstep traces to work. puts "p invoked" } proc handleTrace1 {args} { trace remove execution p enterstep handleTrace1 } proc handleTrace0 {args} { trace add execution p enterstep handleTrace1 } trace add execution p leave handleTrace0 trace add execution p leave handleTrace0 p p > tclsh9.1 exercise.tcl p invoked Segmentation fault (core dumped) - foundin initialized to: "9.1b0"
- is_private initialized to: "0"
- login: "erikleunissen"
- priority initialized to: "5 Medium"
- private_contact initialized to: "609f4c7ecf7dbb7a46acdc7eb164753d196088a6"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "erikleunissen"
- subsystem initialized to: "46. Traces"
- title initialized to: "Segfault upon sequence of execution traces"
- type initialized to: "Bug"
Add attachment "exercise.tcl" [26bf69b260] (rid 255051) by erikleunissen on 2026-07-25 15:23:12.
Add attachment "stack_trace.txt" [c893585e68] (rid 255053) by erikleunissen on 2026-07-25 15:23:37.
Ticket change [6417b7c113] (rid 255054) by erikleunissen on 2026-07-25 15:25:16:
- comment changed to:
Attached reproducible script "exercise.tcl" and full stack trace in "stack_trace.txt". To reproduce do: > cat exercise.tcl proc p {} { # This proc needs to hold at least one (arbitrary) command # for enterstep traces to work. puts "p invoked" } proc handleTrace1 {args} { trace remove execution p enterstep handleTrace1 } proc handleTrace0 {args} { trace add execution p enterstep handleTrace1 } trace add execution p leave handleTrace0 trace add execution p leave handleTrace0 p p > tclsh9.1 exercise.tcl p invoked Segmentation fault (core dumped) - login: "erikleunissen"
- mimetype: "text/plain"
- comment changed to:
Ticket change [48cd208ac1] (rid 258055) by serhiy.storchaka on 2026-10-14 18:11:23:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Reproduced with 8.6.18, 9.0.5 and 9.1. When an enterstep trace removes itself while another enterstep trace is set, TclCheckInterpTraces() continues the reverse scan of the interpreter traces from the deleted trace and runs off the end of the list. Proposed fix in branch [/timeline?r=interp-trace-delete-self|interp-trace-delete-self]. Test trace-34.7.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [29d3627d7c] (rid 261374) by oehhar on 2026-11-10 16:54:05:
- icomment:
Fix and test are effective. Will merge tomorrow if CI is clean. Thanks Serhiy, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [78a6c33222] (rid 261406) by oehhar on 2026-11-11 09:45:12:
- closedate changed to: "2461355.9063901622"
- closer changed to: "oehhar"
- icomment:
Merged to: * main [245d2b1c] * core-9-0-branch [ff4839e9] * core-8-6-branch [a583dec2] Thanks for all. Bug closed. Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "oehhar"