|
2026-05-23
| ||
| 15:18 | • Closed ticket [e55a589d2b]: async send + busy thread + TCL_FINALIZE_ON_EXIT=1 =... artifact: 34841db942 user: apnadkarni | |
| 15:15 | Fix [e55a589d2b] - crash on finalization with another thread active. check-in: fc30388d62 user: apnadkarni tags: trunk, main | |
|
2026-05-22
| ||
| 08:17 | • Ticket [e55a589d2b] async send + busy thread + TCL_FINALIZE_ON_EXIT=1 == segmen... artifact: bed791123a user: apnadkarni | |
| 08:13 | Bug [e55a589d2b] - crash on finalization with another thread active. closed check-in: 429cd8cdf3 user: apnadkarni tags: bug-e55a589d2b | |
|
2026-05-21
| ||
| 16:37 | • Ticket [e55a589d2b] async send + busy thread + TCL_FINALIZE_ON_EXIT=1 == segmen... artifact: 8edd2ddcd3 user: apnadkarni | |
| 15:59 | • Ticket [e55a589d2b]: 3 changes artifact: e1dbfac386 user: apnadkarni | |
|
2025-05-01
| ||
| 10:58 | • New ticket [e55a589d2b]. artifact: 9927d52a6b user: pooryorick | |
async send + busy thread + TCL_FINALIZE_ON_EXIT=1 == segmentation fault
Closed / Fixede55a589d2bd744cfc176b0bce12696b11c6ca1cbCreated 2 years agoUpdated 193 days ago
Descriptionwiki2025-05-01 10:58:26
When evaluated under a recent build of trunk, with the environment variable TCL_FINALIZE_ON_EXIT=1, the following script produces a segmentation fault:
package require Thread
set tid [thread::create]
thread::send -async $tid {while 1 {}}
Referenced by2
fc30388d62Fix [e55a589d2b] - crash on finalization with another thread active. check-in2026-05-23 15:15:47429cd8cdf3Bug [e55a589d2b] - crash on finalization with another thread active. check-in2026-05-22 08:13:12
apnadkarniplain2026-05-21 15:59:17
Still present in core-9-0-branch as of today. Verified on Windows and Linux. Examining further ...
apnadkarni Ticket [e55a589d2b]: 3 changes
[History diff]2026-05-21 16:37:27
apnadkarniplain2026-05-22 08:17:43
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.
apnadkarniplain2026-05-23 15:18:18
Fixed in [fc30388d62]. Not backported to 9.0 as a corner case and not worth risking without a full beta cycle.
Log in (anonymous is fine) to add a comment.