Triage of 818 open and Pending Bug tickets of Tcl with no comment or check-in from me on 2026-10-16 (in Tcl's workflow Pending means "resolved, waiting for confirmation"). Reproduced on Linux (main 9.1 tip, 9.0 tip, 8.7b1, 8.6 tip, 8.5, 8.4 and old releases), on FreeBSD, NetBSD, OpenBSD and OpenIndiana VMs for platform tickets, and on a Windows 11 VM. Rows marked patch link to a prototype patch (287 in all, in tcl-triage/prototypes). Updated 2026-11-11: the emoji before each ticket id shows its progress.
NOT-REPRODUCED (main, 9.0, 8.6 on Ubuntu 26.04.1 locally)
-constraints notInCIenv on own main build; the test body in a loop (300 iterations, 8 in parallel, with stdin/stdout/stderr closed) on main, 9.0.5, 8.6.18. Local cat is uutils 0.10.0 (rust-coreutils 0.10.0-1ubuntu2~26.04.1), which uses splice(); no SIGPIPE in any run.
cat gets SIGPIPE, so it writes after Tcl closed the read end. That points at the cat on the GitHub runner image (maybe an older uutils), not at Tcl.
gnucat / a tclsh child when available.
c057378986.patch: VERIFIED
sleep 2.5 -> old logic (after 5000): size=24 (expect 26), i.e. the WSL/macOS failure
size=26 ... after 6039 ms; make test -file exec.test 98 passed / 0 failed, exec-19.1 PASSED
NOT-REPRODUCED (main, 9.0, 8.6 on native Linux; 30/30 runs give 26, even with 30 copies in parallel). Test bug, not a Tcl bug
>>/2>> redirections opened with O_WRONLY|O_CREAT|O_APPEND (generic/tclPipe.c). The test reads the file size after a fixed after 5000, and 4 children that each run 3 × sleep 1 finish late when process creation is slow (WSL on an NTFS mount, macOS). If one child starts 2.5 s late, the old test gives 24, which is the macOS result in 538ba1e615. I could not check whether drvfs/NTFS appends are really atomic; that needs WSL.
after 5000. If it still fails on WSL with that change, then appends to the NTFS mount are really being lost.
NOT-REPRODUCED (main, 9.0.5, 8.6.18); no reporter script, needs info
interp delete + exit (also TCL_FINALIZE_ON_EXIT=1), under valgrind: clean on all three. Embedding program (emb.c) doing Tcl_DeleteInterp+Tcl_Finalize: clean. Tcl_Finalize before Tcl_DeleteInterp, or Tcl_Release after Tcl_Finalize, panics, but in 8.6 as well (API misuse; 9.x shows SIGILL because its panic uses a trap where 8.6 calls abort).
interp delete, on exit and with Tcl_DeleteInterp+Tcl_Finalize in an embedding app. Calling Tcl_DeleteInterp or Tcl_Release after Tcl_Finalize panics, but 8.6 does too. Can you post a minimal program and a backtrace? Otherwise we propose to close this.
NOT-REPRODUCED (main, 8.6 on FreeBSD 15.1 with base llvm-strip 19.1.7; Linux LLVM 21 earlier)
.L local symbols referenced by relocations), archived with llvm-ar-21; llvm-strip-21 -x, llvm-strip-21 --strip-unneeded and GNU strip -x all succeed, and llvm-strip -x keeps the referenced .L symbols. So current LLVM no longer errors out; the failure was LLVM 15 on FreeBSD 14 (2023). Main still has INSTALL_STRIP_LIBRARY = strip -x (unix/Makefile.in:154); the --strip-unneeded change was reverted (82baf7827f).
llvm-strip -x on libtclstub.a works and keeps the relocation-referenced .L symbols, so this looks like an old llvm-strip issue. To confirm on FreeBSD: make install-strip with the base llvm-strip; if it passes, this can be closed.
make install-strip INSTALL_ROOT=/tmp/x and check it gets past installing libtclstub.a.
make install-strip INSTALL_ROOT=/tmp/... succeeds on main and core-8-6-branch (both --enable-symbols and a default -O2 build); strip -x libtclstub.a exits 0 and keeps the relocation-referenced .L symbols (tclStubLib.o has 8 .L relocations on main, 5 on 8.6).
-x on local symbols referenced by relocations; newer llvm-strip keeps them like GNU strip.
make install-strip works on main and core-8-6-branch, and strip -x keeps the .L symbols referenced by relocations. So this was an llvm-strip 15 issue; suggest closing.
8798610883.patch: VERIFIED (macro fix correct, as a latent-bug cleanup) — but the triage's symptom ("$nan < 2**70 gives 1 on MSVC") is wrong and the added test is ineffective; the suggested ticket comment should be corrected (keep or drop the test as a plain regression test)
_MSC_VER branch of tclInt.h with -DEMU_MSC -D_finite=__builtin_isfinite -D_isnan=__builtin_isnan (temporary #if defined(_MSC_VER) || defined(EMU_MSC)). C check (work-a2/v2/isinf.c): unpatched macro -> IsInfinite(NaN)=1. BUT no script-visible effect: a battery of 41 NaN operations (work-a2/v2/nan.tcl: NaN vs 2**70 in all six comparisons, format, int/entier/wide/round/sqrt/isqrt, lsort/lsearch -real, binary format, min/max, arithmetic) gives identical output on the emulated-MSVC unpatched build, the emulated patched build and the native build. The comparison the triage named cannot see a NaN: INST_LT etc. in 8.6 tclExecute.c:6153 return early for TCL_NUMBER_NAN before CompareTwoNumbers (its only caller); the other TclIsInfinite sites check TclIsNaN first or reject NaN earlier.
IsInfinite(NaN)=0, Inf still 1; expr-bug-8798610883 passes
NOT-REPRODUCED at script level (8.6.18 MSVC 2022: all four NaN/bignum comparisons give 0; 9.0/main also 0). The macro is still wrong in 8.6 generic/tclInt.h, but it is not reachable from scripts
!_finite(d) for _MSC_VER, which is true for NaN. Of the call sites, only TclCompareTwoNumbers (double vs bignum, both directions) lets a NaN through, so $nan < 270 and 270 > $nan should return 1 on MSVC instead of 0. Other sites check TclIsNaN first or reject NaN earlier.
!_finite() is true for NaN, so MSVC builds compare NaN with a bignum as ordered (TclCompareTwoNumbers). Proposed fix: add && !_isnan(d) to the MSVC TclIsInfinite, with test expr-bug-8798610883. 9.0 uses isinf() and is not affected.
&& !_isnan(d) for cleanliness, or the ticket closed.
NOT-REPRODUCED (all tested)
man -l (run in doc/, so .so man.macros resolves) for main, the 9.0.0 tag and the 2023-01-27 revision 4fb77727c5. All show Tcl_Size | int *lengthPtr (out) (size_t | int in 2023) with its description. The source has always had .AP ... *lengthPtr out. The reporter's "missing name" came from their older man/groff (man 2.9.4).
\fBTcl_IsEmpty\fR(\fIfIobjPtr\fR), which should be \fIobjPtr.
.AP "Tcl_Size \&| int" *lengthPtr out), and current groff renders it with the name. The missing name was a rendering problem in the old man version. Closing. (Separately, the Tcl_IsEmpty synopsis line has a stray "fI".)
NOT-REPRODUCED (main, 9.0, 8.6)
exec [info nameofexecutable] ... & and then exiting, and the last one must still be alive 3 s later. Both the tclsh and the Tk variant pass. (The Tk variant ran with withdrawn windows on the inherited DISPLAY=:0 rather than Xvfb, by mistake.)
exec ... & then exit, the last must be alive 3 s later) OK on 9.1b1, 9.0.5, 8.6.18. Interactive session (scheduled task, wish started hidden by wscript, all windows withdrawn; work-win3/a35w.tcl): chains of 4 wish generations, each started with exec [info nameofexecutable] ... & from a wish that then exits with exit 0 or destroy .: all generations start and the last survives its parent, with wish 9.1b1, 9.0.5 and 8.6.18.
NOT-REPRODUCED on Tk 9.1b1 / 9.0.5 (both tests would pass); REPRODUCED for font-4.16 on Tk 8.6.18 (test expectation, NOT-A-BUG in Tcl)
font actual {-family times} -family -- \U10000 returns the fallback font used for that char ("Noto Sans Linear B"), not the base family ("Nimbus Roman"). In Tk main and 9.0 tests/font.test, font-4.14 was rewritten (now expects an error for -- 𐀀, no constraint) and font-4.16 is still {win knownBug} expecting "times"; in Tk 8.6 both are win tests expecting "Times New Roman".
font actual {-family times} -- 𐀀 gives the expected error "expected a single character" (font-4.14 passes); font actual {-family times} -family -- \U10000 returns "times", which is font-4.16's expected result, but the test is still constrained {win knownBug}. 8.6: font-4.14 (-family -- 𐀀) gives "Times New Roman" (passes); font-4.16 gives "Malgun Gothic", not "Times New Roman" (fails).
font actual ... char reports the fallback font that renders U+10000, so the expectation is wrong. On 9.x Windows, font actual reports the requested name ("times", not "Times New Roman") and gives no fallback for U+10000.
knownBug from font-4.16 in Tk 9.x; in 8.6 font-4.16 change the expected result or mark it knownBug)
NOT-REPRODUCED (all tested)
info frame -1 line for the command after a braced argument with backslash-newlines. Contexts tried: top-level if, if in a proc, foreach, $cmd (non-compiled if), switch, catch, if/else, if in while, namespace eval, uplevel #0, interp alias, and an execution trace on the first command. The second command always gets the right line (3 lines after the first). This matches sebres' 2021 result. The reporter said it is probably caused by their application's modified Tcl package.
NOT-REPRODUCED (all tested)
ac_cv_header_sys_epoll_h=no.
uname -s (build machine), but NOTIFIER_EPOLL is only defined if AC_CHECK_HEADERS([sys/epoll.h]) succeeds with the configured (cross) compiler, so a sysroot without sys/epoll.h gets no NOTIFIER_EPOLL (also true in 8.7a3); the reported failure needs a sysroot that has the header but not the functions, or a stale config cache. The remaining real issue, uname -s instead of the host OS, applies to all of Tcl's unix configure (tcl.m4 SC_CONFIG_SYSTEM too) and has no small fix. A clean override exists: ac_cv_header_sys_epoll_h=no ./configure -> "checking for sys/epoll.h... (cached) no", select notifier used.
ac_cv_header_sys_epoll_h=no (no need to edit configure). Can you show config.log if it still happens?
NOT-REPRODUCED (8.6 tip + Thread 2.8.13, MSVC 2022, x86 and x64)
install-pkgs (8.6 tip) re-runs nmake -f makefile.vc install in each pkgs\*\win, which rebuilds thread.res; RC1109 means rc could not create the output file (e.g. intermediate dir missing or file locked). Nothing in the Tcl makefiles points to it.
nmake -f makefile.vc INSTALLDIR=%USERPROFILE%/tmp/tri3/inst6072-<arch> release and ... install (drive-less forward-slash INSTALLDIR) from vcvarsall x86 and x64 (work-win3/r6072.cmd): both succeed; install of pkgs\thread2.8.13 does not even re-run rc (thread.res was built by release). Copies deleted afterwards. 9.0 not tried.
release followed by install with a drive-less INSTALLDIR works and the install pass no longer rebuilds thread.res. Please reopen if it still happens with 8.6.18.
Status now: Closed (Out of Date)
NOT-REPRODUCED (main, 9.0, 8.6)
Status now: Closed (Out of Date)
NOT-REPRODUCED (main, 9.0, 8.6)
Status now: Open
tests-async-pipe-close, in main: Rebase to trunkNOT-REPRODUCED (hangs: not on Win11 per Serhiy, 1400+ runs; test fixes merged into main only)
NOT-REPRODUCED (all tested)
info frame [info frame], info frame 0, inside dict get, inside set) gives type proc both in the proc and in its namespace eval. From a file all give type source. The type eval result in the ticket never appears.
type describes where the command's text comes from (the literal ns body sits inside the proc body), not the kind of scope, as info.n says.
type proc (or source when run from a file); type describes where the script text comes from, not the kind of scope. The eval result was probably from a development branch. Suggest closing unless there is a script that still shows it.
NOT-REPRODUCED (all tested)
NOT-REPRODUCED (all tested)
--enable-symbols=mem builds on Linux of main (full suite, all 522078 tests: only the 25 known zipfs.test failures caused by TCL_LIBRARY=<wt>/library) and of core-8-6-branch tip (full suite: 45088 tests, 0 failures, stringComp-14.2 passes; on main the test is string.test stringComp-14.22.*). Not tested on macOS. pointsman could not reproduce it on macOS 10.13 either.
noosxCI (74eb0415b0, 2020-11-16), not fixedNOT-REPRODUCED (main, 9.0, 8.6 on Linux); CANNOT-TEST (macOS). The test is skipped on the macOS CI with noosxCI (74eb0415b0, 2020-11-16), not fixed
after 5000 in exec-19.1 is too short on a slow or busy machine. Tcl does set O_APPEND.
noosxCI constraint could be dropped.
Status now: Closed (Works For Me)
NOT-REPRODUCED (main, 8.6; MSVC builds)
file attributes -readonly, and constraints {unixOrWin notRoot notFAT notWsl} (1cb4cb2fe2, 2023-03-02, for the constraint line)
win/58053c93b3.tcl (run with tcltest.exe from the build dir, on a local NTFS drive and if possible on a mapped network drive); prints the FS, the method used, whether the directory is still writable, and a VERDICT line
file attributes -readonly) the directory stays writable, which is why the test now relies on testchmod. No MinGW/MSYS2 build of Tcl was made (testchmod in win/tclWinTest.c is the same code for both compilers).
NOT-REPRODUCED (main with MSYS2 UCRT64 gcc and MSVC; 8.6 MSVC)
testchannel cut/splice, so tempdone's catch {close $tempchan} in the main interp does nothing. The file is closed only when the child interp/transform is torn down; if that happens later on Windows (or leaks), removeFile fails with EACCES because Windows cannot delete an open file.
tcltest.exe 93da2e42b9.tcl C:/path/to/tcl/tests. It runs ioTrans.test -match iortrans-11.* in %TEMP% and prints a VERDICT line.
Status now: Pending (Works For Me)
NOT-REPRODUCED (main, 8.7b1; 8.6 uses select and is not affected by this code)
localhost (::1 refused, retry on 127.0.0.1; half to a closed port) with readable/writable fileevents, interleaved with opening regular files and fconfigure -encoding with and without fileevents -> no valgrind errors.
NOT-REPRODUCED (all tested) — the demo itself was fixed by dgp's 2015-11-30 trunk commit (realloc in Tcl_ListObjReplace, roadmap item 1); the ticket stayed open only for the cosmetic items 2–3
lappend my_list A variant, i.e. the INST_LAPPEND_LIST_STK path). 8.6.18: a steady ~25 s per 50M elements all the way to LIST_MAX (536870909, then a clean "max length of a Tcl list" error), 0.06 s per 100k at 402.6M–403.4M where the slowdown used to start. Main (debug build): linear, ~84 s per 50M up to 200M; with 64-bit Tcl_Size its LIST_MAX is out of reach.
NOT-REPRODUCED (all tested)
-match socket-1[45].* of socket.test on main (own build), 9.0 tip and 8.6 tip tcltest, Linux: all pass (main 28+9, 9.0 37, 8.6 35 tests run) in ~2 s each; localhost only (socket-14.13 with 255.255.255.255 is Windows-only).
Status now: Closed (Fixed)
core-8-6-branch, in main, 9.0, 8.6: Fix 40f315bc23: [format %g] does not portably produce a Tcl numberNOT-REPRODUCED for the original report (main, 9.0, 8.6 with MSVC 2022 UCRT: %g/%e/%f/%G/%E/%a and padded/signed forms of ±Inf are all valid Tcl numbers). The side bug REPRODUCED on Windows as on Linux (main, 9.0): format %A Inf → IxF, %A -Inf → -xNF
string is double; prints VERDICT). It is likely fixed in VC2015+ UCRT builds ("inf"); old msvcrt.dll (MinGW without __USE_MINGW_ANSI_STDIO) printed "1.#INF".
format %A Inf → IxF, %A -Inf → -xNF
%A 1.5 → 0x1.8000000000000p+0, so the original test failed on Windows only). format.test passes on Windows (wt build) and Linux (wt-win1 build). 20 changed lines.
NOT-REPRODUCED (main, 9.0, 8.6)
NOT-REPRODUCED (all tested)
string match *a*a*a*a*b [string repeat a 30] and a long *a*b*c*d match, optimized builds 8.6.1, 8.6.2, 8.6.18, 9.0.5, 9.1b1, two to three runs each: 8.6.1 ~285 us, 8.6.2 ~305 us, 8.6.18 ~265 us, 9.0.5 ~230-250 us, 9.1b1 ~245 us. The long-pattern case is equal (~1.2 ms) everywhere.
*a*a*... patterns. This looks like an optimizer/code-layout artifact of that time; close.
NOT-REPRODUCED (main, 9.0, 8.6, 8.6.0-8.6.4, 8.5.0-8.5.19 on Linux); reproduced only with 8.4.20
NOT-REPRODUCED (main, 8.6.18); no reproducer in the ticket
NOT-REPRODUCED (main, 9.0, 8.6): HAVE_PTHREAD_ATTR_SETSTACKSIZE=1 is defined on Linux in all current builds (unix/tcl.m4 has run AC_CHECK_FUNCS(pthread_attr_setstacksize) since 2000), so TclpThreadCreate does honour a non-default stackSize.
NOT-REPRODUCED (main, 9.0, 8.6 on Windows 11, MSVC 2022)
%9.3f -0.000, %.3f -0.0, %g -0.0, %e -0.0, %.3f -0.0001 all keep the minus sign
Status now: Closed (Fixed)
async-test-msvc-constraint, in main: Fix the knownMsvcBug constraint in async.test, inverted since c0c61fa7cf: async-4.3 ran only on MSVC builds, where it is known to fail, and was skipped everywNOT-REPRODUCED (main, 8.6 on OpenBSD 7.9, 10 runs each). Side finding: on 8.7/9.x async-4.3 is skipped on every non-MSVC build because its constraint was inverted in 9ddb36e0bd (TIP #599, 2021-11-26).
make test TESTFLAGS="-file {event.test interp.test async.test}" repeated about 10 times. If clean, close.
testConstraint knownMsvcBug [expr {[tcl::build-info msvc]>0}]. Before 9ddb36e0bd it was ![info exists ::env(CI_BUILD_WITH_MSVC)], i.e. true everywhere *except* MSVC. Now async-4.3 runs only on MSVC, the one place where it is known to fail.
testConstraint knownMsvcBug [expr {![tcl::build-info msvc]}]; verified on OpenBSD main: async-4.3 runs and passes 10/10). It applies to core-9-0-branch as well (same line).
Status now: Pending (Works For Me)
NOT-REPRODUCED (main on Linux/Xvfb; Windows 8.6.18 + Thread 2.8.13 and 9.1 + Thread 3.0.7 already tested by Serhiy, 10/10 clean)
after 10 (no outside network), 20 threads, 200 toplevels x 50 entries, then exit: 10/10 runs exit 0. X11 has no window-handle quota, so the "low resources" part is Windows-only.
NOT-REPRODUCED (main + Thread 3.0.7 on NetBSD 10.1)
thread constraint, so it is skipped in our tclsh builds (no Thread package). Code reading only.
BG {finalize rc0} because the test drained the event queue with update, which let a second background flush run. Before 8.6.0 the test was rewritten to stop at the first BG write (vwait endbody-24.16, cc4f894e4a 2011-09-19, plus an after 1000 safety timeout in 29535daab1 2012-04-30), so this result is likely gone.
update. Can someone with NetBSD confirm that it now passes (it needs the Thread package)?
./tcltest ../tests/ioCmd.test -match 'iocmd.tf-24.*' (repeat ~20 times).
-match 'iocmd.tf-24.*' repeated 20 times: 0 failing runs; iocmd.tf-24.16 PASSED (checked with -verbose). 8.6 not run with Thread (it needs Thread 2.8); the 8.6 test is the same rewritten one.
update; it was rewritten before 8.6.0 (cc4f894e4a, 29535daab1).
NOT-REPRODUCED (main, 9.0.5, 8.6.18, 8.6.0)
chan event handler, where a helper does return -level [info level] inside try/finally on EOF (the Wibble pattern), with and without the apply {{} {tailcall co}} wrapper: finally runs, no bgerror on any version.
return -level [info level] escaped the coroutine and reached the event loop as TCL_RETURN. In 8.6.0+ [info level] is relative to the coroutine. A real return -level 2 out of a coroutine still gives "command returned bad code: 2", which is correct. Side note: for non-error codes TclDefaultBgErrorHandlerObjCmd (generic/tclEvent.c) prints "command returned bad code: 2x" (the -errorinfo, which starts with the result "x", is appended without a newline); the stale errorInfo from the report is gone.
return -level [info level] inside a coroutine called from [chan event] now stays inside the coroutine. Proposing to close.
NOT-REPRODUCED (all tested)
socket.test -match 'socket_*-12.*' 40 runs on main (own build) and 40 on the 8.6 tip tcltest: 0 failures (inet, inet6 and any variants).
NOT-REPRODUCED (main, 8.6)
win), still expects the lower-case tcl[pid].tmp from glob. Original failure was intermittent (Jan saw it once in 144443 runs; Jos often, with TEMP as a short 8.3 name).
string equal -nocase)
...\TEMPOR~1, 8dot3 enabled on C:); plus winFCmd-19.7 itself 20 times per version under the short-name TEMP: 0 mismatches, 0 failures (Defender real-time protection on).
Status now: Closed (Fixed)
win-delete-retry-not-empty, in main: Fix 3006571fff: [file delete -force] of a directory failed with "file already exists" when another process (e.g. a virus scanner or an indexer) kept a file intrunk, in main, 9.0: Fix [3006571]: error deleting: file already exists on Vistacore-9-0-branch, in main, 9.0, 8.6: Fix [3006571]: error deleting: file already exists on Vistacore-8-6-branch, in main, 9.0, 8.6: Fix [3006571]: error deleting: file already exists on VistaNOT-REPRODUCED (main, 8.6)
file delete -force has no retry. Does this still happen on Windows 10/11 (POSIX delete semantics on NTFS)? If it only affects network shares, a short retry in TraverseWinTree is one option.
//localhost/C$/...: 0 failures (Defender real-time protection on).
NOT-REPRODUCED (main 32- and 64-bit, 9.0 and 8.6 64-bit) on Windows 11; the heuristic is still in the code but cannot trigger on current Windows
#if !defined(_WIN64), so 64-bit builds always use QPC, and only 32-bit builds on AMD or newer Intel CPUs get the millisecond resolution. TclpGetWideClicks uses QPC directly in all builds.
#if !defined(_WIN64) CPUID block)
NOT-REPRODUCED (all tested)
NOT-REPRODUCED (main; 8.6 and 9.0 have the same buildall.vc.bat sequence, not run)
nmake ... release htmlhelp OPTS=none %1 and then nmake ... shell OPTS=static %1, so with install the static shell is built before installing in the same nmake call; probably fixed, not run. Repro: win/2912794fff.cmd (clean tree, VS prompt).
buildall.vc.bat all built.
shell install); if the Windows check passes, close as out of date. A related remaining issue (static dde lib in install) is 2b874804b5.
fossil open of main in a new dir, MSVC 2022 x64: win/2912794fff.cmd (buildall.vc.bat install) built release and failed only in htmlhelp (tcltk-man2html.tcl picked an unrelated ../../../tcl* dir as source tree in my scratch layout; not related to the ticket) and then stopped at a pause. Re-run of buildall's two nmake steps without htmlhelp on a clean tree: nmake release OPTS=none install and nmake shell OPTS=static install both succeed; INSTALLDIR/bin gets tcl91.dll, tclsh91.exe and tclsh91s.exe.
shell in the same nmake call as install.
release ... install, then shell OPTS=static install) succeed on a clean main checkout and install both shells. Closing as out of date.
2896758fff.patch: VERIFIED (not part of the patch: Lossless() tests outStatePtr->inputEncodingFlags where outputEncodingFlags looks intended, as the triage noted)
tcltest 2896.tcl (8 x U+00E9 in utf-8, both channels utf-8, -translation lf): profile tcl8 -size 4 -> fcopy returns 4, output 8 bytes, so -size counts characters; only without -size does the tcl8 path copy raw bytes (returns 16). generic/tclIO.c Lossless() requires toRead == -1 for that path. So the doc sentence is wrong
man -l fcopy.n (from doc/) renders "...set to “tcl8”, the input encoding matches the output encoding and no -size is given."
NOT-REPRODUCED (main, 9.0; the three-way rule is gone) — 8.6 keeps the old rule, which is what its fcopy.n documents; small DOCS nit on main/9.0
outStatePtr->inputEncodingFlags where outputEncodingFlags looks intended.) http.tcl copies from a binary socket, so -blocksize is bytes: no issue there.
NOT-REPRODUCED (main, 8.6 with --enable-dtrace on OpenIndiana x86-64, gcc 14.3, illumos dtrace); SPARC CANNOT-TEST (no SPARC VM)
./configure --enable-dtrace && make, then proc bad {} {error bad}; catch bad must return 1); otherwise we will close this as out of date.
(For the main session: try on the OpenIndiana VM with --enable-dtrace and run make test.)
--enable-symbols --enable-dtrace builds of main and core-8-6-branch (configure finds /usr/sbin/dtrace; tclDTrace.o linked). proc bad {} {error bad}; catch bad returns 1 on both, with and without probes enabled. Full suite (-notfile http*.test) with DTrace: main 522078 tests, 37 failed; 8.6 45088 tests, 10 failed. The failures are the same without DTrace (scan-15.1, socket-14.x async connect; zipfs only with TCL_LIBRARY set, gmake test -file zipfs.test passes). With probes enabled (pfexec dtrace -Z on proc-return/cmd-return/inst-done, 1.3 M inst-done firings), error/proc/basic/append/compile.test pass on both.
catch bad and pass the test suite the same as without DTrace, also with probes enabled. SPARC was not available. Suggest closing as out of date.
NOT-REPRODUCED (main, 9.0, 8.6)
exit 7. It checks every exit code and detects hangs with a 20 s timeout. On Linux 9.0.5, 40/40 runs returned 7.
exit(status) in generic/tclEvent.c.
(For the main session: run tclsh90 win\2750491fff.tcl 500 on the VM, also with a TCL_MEM_DEBUG / --enable-symbols=mem shared build if one is available.)
NOT-REPRODUCED (main, 9.0, 8.6 with MSVC 2022 / UCRT)
3.113412e+00 (correct). Repro script win/2666369fff.tcl (prints VERDICT).
_set_output_format(_TWO_DIGIT_EXPONENT) for msvcrt-based builds, or Tcl's own exponent formatting)
%e 3.11341234 → 3.113412e+00, %E → E+00, %.3e 12345.0 → 1.234e+04, %e 1e100 → 1.000000e+100, same as Unix
NOT-REPRODUCED (all tested)
1963074fff.patch: VERIFIED (real Solaris still untested)
tcltest tests/fCmd.test -match 'fCmd-27.*' -> fCmd-27.7 FAILED (chown of / to its own owner/group as non-root: operation not permitted); with the EPERM chown shim (LD_PRELOAD=work-a5/shim/eperm.so, simulating _POSIX_CHOWN_RESTRICTED) fCmd-27.5, 27.6, 27.7 FAILED, as reported on Solaris
fCmd-27.5/27.6 NOT-REPRODUCED (main, 8.6 on OpenIndiana, also in a setgid directory of a group the user is not in). The underlying chown() of an unchanged owner is REPRODUCED (main, 8.6).
/ as non-root. It fails on 9.0 tip with "operation not permitted" and passes with the patch. fCmd.test also passes with the eperm shim.)
other (removed afterwards); files created there get group other. fCmd-27.* run there still passes, and chgrp other f works too: illumos lets the owner set the file's current group under rstchown, even as a non-member, so this case is no longer hit. Setting the unchanged owner of a file one does not own still fails: file attributes / -owner root -group root → main "could not set owner for file "/": operation not permitted", 8.6 "not owner". With the prototype it returns "" (new fCmd-27.7 passes).
NOT-REPRODUCED (main, 9.0, 8.6)
open |tclsh block.tcl while the child is still running, 15 times; reports VM growth per close and slow closes)
open |tclsh block.tcl while the child runs) and a variant with 40 closes that also counts threads and private bytes 9 s later (work-win2/1958b.tcl), 3 runs: 9.1b1 and 9.0.5 grow by 0 bytes / 0 threads; 8.6.18 grows by one thread (+2.3 MB virtual) per run, the same for 15 and 40 closes, so it is a one-time helper thread, not a per-close leak. Rarely a close takes > 1 s (the 5 s wait before the TerminateThread fallback): 1 of 120 on 8.6, 1 of 80 on 9.1, 0 of 55 on 9.0 — without memory growth. (The second 9.0.5 run hung in after for good; that is the separate Tcl_Sleep bug at the end of this file.)
NOT-REPRODUCED (main, 8.6, 8.5)
seek 16 current/read/tell loop across the 4 GB boundary, output size checked. OK on all versions.
fsutil sparse setflag + seteof, because the VM disk has < 3 GB free): the reporter's seek 16 current/read/tell loop across the 4 GB boundary, output size checked. OK on 64-bit 9.1b1, 8.6.18, 8.6.0, 8.5.19 and on 32-bit (MACHINE=IX86) builds of main and core-8-6-branch.
keys[i] = NULL in ReleaseKeys, committed by andreas_kupries 200…NOT-REPRODUCED (main, 9.0, 8.6, 8.5) — the crash was worked around in 2008 (dgp's keys[i] = NULL in ReleaseKeys, committed by andreas_kupries 2008-03-08); ticket was kept open for a "proper" finalization-order fix
write method is not called at exit at all now (the buffered "HELLO THERE" is silently dropped), so the late Tcl_GetReturnOptions path is not even reached with this script.
Status now: Pending (Works For Me)
NOT-REPRODUCED (main, 9.0, 8.6)
duplicate of 1963074fff for the fCmd-27.5/27.6 part (NOT-REPRODUCED on OpenIndiana, see there); the tclEnv.c part was fixed in 2007
NOT-REPRODUCED (all tested)
NOT-REPRODUCED (all tested)
clock scan 01/01/1902 = -2145920400 (+0100), the same as -timezone :Europe/Vienna, and the 1916 transition is correct. TZ=CET gives +0000 in 1902, which is correct: current tzdata links CET to Europe/Brussels, and glibc agrees.
NOT-REPRODUCED (main, 8.6 with --enable-dtrace on OpenIndiana x86-64); SPARC and 8.4 CANNOT-TEST
catch returning 0 for errors (append-4.9 etc.), i.e. a mis-built/miscompiled 8.4.16 dtrace build on SPARC, not a tkbiff/regexp issue.
make test on 8.6.18 or 9.0.4 with and without --enable-dtrace and report the difference; otherwise this can be closed as out of date. (Main session: could try on the OpenIndiana VM — x86 only — with ./configure --enable-dtrace && make test.)
NOT-REPRODUCED (all tested). The reporter had an automounter/LDAP home where $HOME differs from the canonical path; can't recreate it here.
NOT-REPRODUCED (main, valgrind with a -DPURIFY build)
NOT-REPRODUCED (main, 8.6) as a Tcl/Thread leak; a small working-set creep outside Tcl's allocator remains (see Tested)
testthread instead of Thread (tm2.tcl, tcltest): 9.1 +2.2 MB, 8.6 +4.9 MB over 4800 threads. Memory-debug (TCL_MEM_DEBUG) main build + Thread 3.0.7 (tm3.tcl): memory info current bytes allocated stays flat (967549) from round 1 to 4, so the creep is not in ckalloc'ed memory (OS/CRT heap or per-thread system resources; not pinned down). The ticket's numbers (one thread, ~800 K working set, dropping later) are normal working-set behaviour.
NOT-REPRODUCED (main with Itcl 4.3.8 trunk)
A a; a foo: tclIndex contains only auto_index(A) (Itcl 4's auto_mkindex parser no longer indexes declared-only members) and the call fails cleanly with 'member function "::A::foo" is not defined and cannot be autoloaded', with no re-source and no "class already exists". Attachment tclbug.zip is truncated in the repository (1218 bytes, "missing 44265497 bytes"), so the exact original script was not run. Itcl 3.3 not tested.
NOT-REPRODUCED (all tested)
NOT-REPRODUCED (main, 8.6)
Status now: Closed (Fixed)
NOT-REPRODUCED (main, 9.0, 8.6; no cumulative creep over 600 s on the VM)
tclsh 1567838fff.tcl 3600) gives a clearer number.
NOT-REPRODUCED (all tested)
Status now: Pending (Works For Me)
NOT-REPRODUCED (9.1 main, 9.0 tip) — but REPRODUCED-like on 8.6 tip only under ephemeral TCP port exhaustion: crashes (SIGSEGV) and process-wide "sockets are not available on this system" / "winsock is not initialized"
couldn't open socket: address already in use on socket -server ... 0, on all versions. 9.1 then simply reports that error (1 of 10 runs failed with exit 1 under full exhaustion, clean error text, no crash). 8.6 instead turns it into sockets are not available on this system (TclpHasSockets: initialized != 1, which only InitSockets' initFailure path sets, process-wide, to -1, so all later socket commands in every thread fail, also in the main thread) and winsock is not initialized, and sometimes a SIGSEGV. Without port exhaustion 8.6 runs clean (11/11 probe runs, 10/10 interleaved runs).
initialized = -1 when one thread's per-thread setup fails (window/thread creation), disabling sockets for the whole process; 8.7/9.0 reworked this (InitSocketWindowClass + TclInitSockets, which panics instead) and have a36f76eb6b (2025-06-25, 9.0 only, never backported to 8.6). The a36f76eb6b backport alone does not fix the 8.6 symptoms, so something else in the 8.6 per-thread init/finalize path fails under this load (likely a stale TSD/handle reuse between exiting and starting threads).
Status now: Pending (Works For Me)
NOT-REPRODUCED (main, 8.6, 8.4)
NOT-REPRODUCED (main, 9.0, 8.6)
~ is no longer expanded by file normalize (TIP 602); the repro tries file join $env(HOME) tclshrc.tcl, c:tclshrc.tcl, and ~/tclshrc.tcl (8.x) / file tildeexpand (9.x), and checks that normalize is idempotent and absolute. Repro: win/1080650fff.tcl.
file join $env(HOME) tclshrc.tcl, c:tclshrc.tcl, and ~/tclshrc.tcl (8.6) / file tildeexpand ~ (9.x) all normalize to the absolute %USERPROFILE%/tmp/tri2/tclshrc.tcl, and normalizing again gives the same path, on 9.1b1, 9.0.5 and 8.6.18
Status now: Pending (Works For Me)
NOT-REPRODUCED (main, 9.0, 8.6)
<Destroy> binding of . during exit -> all created, clean exit (rc 0) on all three.
sock<address of state> on Unix (SOCK_TEMPLATE in unix/tclUnixSock.c) and Windows (TclWinGenerateChannelName(..., "sock", statePtr)), so a live channel name cannot be reused; the old counter-based names could wrap/collide.
NOT-REPRODUCED (all tested) — Tcl_AppendToObj(obj, "\302\242", 1) appends exactly one byte, both to a pure-Unicode object (reporter's case) and to a plain string object
NOT-REPRODUCED (Linux: 8.6 unthreaded, 8.6 threaded, main); HP-UX CANNOT-TEST
vwait: the handler runs after 100 ms (the alarm time) on an unthreaded 8.6 tip build (--disable-threads, select() returns EINTR), threaded 8.6.18 and main. Also testasync marklater from another thread wakes an idle vwait in 0.1 s on main/9.0/8.6. Tcl 9 has no unthreaded build any more.
interp != NULL check, so a testasync handler that fires while idle in vwait (Tcl_ServiceEvent -> Tcl_AsyncInvoke(NULL, 0)) segfaults the tcltest binary (main, 9.0, 8.6). Test-only, a one-line fix.
NOT-REPRODUCED (main, 9.0, 8.6)
fileevent stdin readable on the never-written pipe) plus a retrying client: the subprocess accepts, prints its args and [info hostname] on main, 9.0, 8.6 (Linux). Self-contained repro win/717848ffff.tcl (the child also checks that a later after fires) gives VERDICT: OK on all three on Linux.
fileevent stdin readable, [info hostname] and after in the accept callback) with 8.6.18/9.0 on Windows; close if it passes.
fileevent stdin readable; accept callback runs [info hostname] and an after): 5 of 5 runs OK on each of 9.1b1, 9.0.5, 8.6.18
NOT-REPRODUCED (main, 9.0, 8.6) for the hang on exit; registering a server name while another DDE server is blocked takes about 2 s
DdeNameService(ddeInstance, NULL, 0, DNS_UNREGISTER), which DDEML implements by sending (not posting) messages to every DDE window, so it blocks on a server that does not pump messages. The dde package does not exist on Unix.
dde servername takes 2028–2032 ms, B's exit 13–16 ms, on 9.1b1, 9.0.5, 8.6.18. Without a blocked server, dde servername takes 0 ms (work-win4/ddeb.tcl).
NOT-REPRODUCED (main, 9.0, 8.6)
source a file (40/40), and the same from a zipfs mount, which is Tcl 9's built-in counterpart of a tclkit VFS (40/40). Repro win/636161ffff.tcl does the same, prints VERDICT and exits; a crash shows up as no verdict line.
source in many threads works on 9.x, also from a zipfs mount. The report is about 8.4 tclkit+tclvfs; unless it still fails with a current Windows build (win/636161ffff.tcl-style test), close as out of date.
source a file: 40/40 on 9.1b1, 9.0.5, 8.6.18 (3 runs each) and the 9.1 memdebug Debug build; also from a zipfs mount (Tcl 9's built-in VFS) 40/40 on 9.1b1 and 9.0.5
NOT-REPRODUCED (all tested)
NOT-REPRODUCED (main, 9.0, 8.6 threaded builds); the non-threaded case is gone in 9.x
testasync marklater (marks from another thread after 1 s) during vwait with a 3 s timeout, using the tcltest of main, 9.0 tip and 8.6 tip: the handler runs after about 1 s inside vwait (Tcl_DoOneEvent -> Tcl_ServiceEvent -> Tcl_AsyncInvoke). Non-threaded 8.6 judged by reading the code only.
--disable-threads build Tcl_AlertNotifier is still a no-op, but a mark made from a signal handler interrupts select() (EINTR) and Tcl_ServiceEvent then runs the async handlers. Only a mark from a foreign OS thread in a non-threaded build stays unnoticed, and that case is outside the non-threaded model anyway.
Tcl_GetStringResult(interp) before its interp != NULL check. When the event loop invokes async handlers, interp is NULL (segfault in Tcl_GetObjResult, all of main/9.0/8.6). This is test code only, but async handlers invoked from the event loop are never tested.
NOT-REPRODUCED (main, 9.0, 8.6)
broken pipe.
software caused connection abort — the same sequence as on Linux (there broken pipe)