Artifacts Associated With Ticket e55a589d2bd744cf
Ticket change [9927d52a6b] (rid 239658) by pooryorick on 2025-05-01 10:58:26:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
When evaluated under a recent build of trunk, with the environment variable TCL_FINALIZE_ON_EXIT=1, the following script produces a segmentation fault: <code><verbatim> package require Thread set tid [thread::create] thread::send -async $tid {while 1 {}} </verbatim></code> - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "80. Thread Package"
- title initialized to:
async send + busy thread + TCL_FINALIZE_ON_EXIT=1 == segmentation fault
- type initialized to: "Bug"
Ticket change [e1dbfac386] (rid 253741) by apnadkarni on 2026-05-21 15:59:17:
- icomment:
Still present in core-9-0-branch as of today. Verified on Windows and Linux. Examining further ...
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [8edd2ddcd3] (rid 253742) by apnadkarni on 2026-05-21 16:37:27:
- assignee changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [bed791123a] (rid 253744) by apnadkarni on 2026-05-22 08:17:43:
- icomment:
Proposed fix in [bug-e55a589d2b](https://core.tcl-lang.org/tcl/timeline?r=bug-e55a589d2b). Not sure it is a complete fix, and may leak memory but I don't think a complete fix between non-cooperating threads is possible in Tcl. In any case, since this is at exit time so should suffice as a fix to at least not crash.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [34841db942] (rid 253830) by apnadkarni on 2026-05-23 15:18:18:
- closedate changed to: "2461184.1377126388"
- closer changed to: "apnadkarni"
- icomment:
Fixed in [fc30388d62]. Not backported to 9.0 as a corner case and not worth risking without a full beta cycle.
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"