| Ticket Hash: | 02fb67f4d35b22b89ba627d28f24e65338b7e705 | ||
| Title: | Crash on process shutdown | ||
| Status: | Closed | Type: | Code Defect |
| Severity: | Critical | Priority: | Immediate |
| Subsystem: | Resolution: | Fixed | |
| Last Modified: |
2026-09-05 21:34:47 24.8 days ago |
Created: |
2026-07-29 02:16:40 63.6 days ago |
| Version Found In: | 2.0.1 | ||
| User Comments: | ||||
anonymous added on 2026-07-29 02:16:40:
I got a crash running Tcl/Tk trunk (9.1b1) and tcltls 2.0.1, on linux x84_64, OpenSSL 3.0.13 While I couldn't write a short script to repro, the setup is as follow:
The process segfaults at exit. The relevant lines from the backtrace are (tcltls built with --enable-symbols)
Steve Landers runs an analysis using Claude Opus 5 and it found these issues: TclTLS crash - the problem, TclTLS crash - the fix, TclLS crash - verification. Effectively, removing Tcl_CreateExitHandler() from generic/tls.c fixes the issue. bohagan added on 2026-07-30 01:21:37:
Thanks for the report. AI sure is getting good now. I didn’t know about channels being closed after the exit handler runs. Sounds like a TCL issue too. I’ll get this fixed in the next few days. Thanks. bohagan added on 2026-08-02 21:43:48:
This issue is fixed in trunk now. Rather than remove the Tcl_CreateExitHandler call, I made it a no-op so I can use it in the future. bohagan added on 2026-09-05 21:34:47:
Fixed in [2a9aba281f740144]. | ||||