Tcl Source Code

Check-in [0b7238035e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [7d47ba7d94] on musl: TclpGetCStackLimit() returned NULL on Linux without glibc, so the regexp engine assumed a 1 MB stack and stack-4.1 segfaulted. Use pthread_getattr_np() for secondary threads, and RLIMIT_STACK for the main thread, whose stack musl reports only as far as it is already mapped.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | musl-stack-limit
Files: files | file ages | folders
SHA3-256: 0b7238035ecff2707ffe9be69dcee7324af7b05fb4e43613b264d3b6969aa37e
User & Date: serhiy.storchaka 2026-10-28 11:03:01.550
Context
2026-11-18
16:01
Fix [7d47ba7d94]: the regexp engine could overflow the C stack on deeply nested REs check-in: 2f0f1fadba user: jan.nijtmans tags: core-9-0-branch
2026-10-28
13:51
[7d47ba7d94] follow-up: on musl: TclpGetCStackLimit() returned NULL check-in: e67bd0fb30 user: jan.nijtmans tags: trunk, main
11:03
Fix [7d47ba7d94] on musl: TclpGetCStackLimit() returned NULL on Linux without glibc, so the regexp e... closed check-in: 0b7238035e user: serhiy.storchaka tags: musl-stack-limit
2026-10-27
21:13
Fix clang warning: tclBinary.c:2783:2: warning: jump from switch statement to this case label is inc... check-in: bf7b2511c3 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to unix/tclUnixThrd.c.