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.
Status now: Closed (Fixed)
abstract-list-hook-fixes, in main, 9.0: Fix 409a4e5f28: abstract-list hook misuse. lpop and compiled lset took no reference to the result of setElementProc (use after free); join of a one-element liabstract-list-hook-fixes-90, in main, 9.0: Cherrypick 63b421c72c for abstract list fixes - ticket 409a4e5f28.core-9-0-branch, in main, 9.0: Fix 409a4e5f28. lpop/lset/join crashes with abstract liststrunk, in main: Fix 409a4e5f28. lpop/lset/join crashes with abstract listsabstract-list-hook-fixes, in main: Merge trunklset-abstract-list-uaf, in main: Fix \[526b01c0b9\]: lset with several indices on an abstract list (lseq) used a freed sublist: it was held only by the cached elements of the list, which were fTclLsetFlat, we document that it should return a Tcl_Obj with the reference count incremented and owned by the caller (as is the case for TclLsetFlat). Do you see any issues with that approach? The documentation is silent but there is a direct mapping between TclLsetFlat and setElementProc and I s…REPRODUCED (main, 9.0) except F3, which is FIXED on main and 9.0 (lset-abstract-list-uaf, main c7bb2150c9 / 9.0 64dc24bd32, 2026-10-18, unreleased); not applicable to 8.6 (no abstract lists)
{} x (expected {a c d} x), F2 assertion failure in Tcl_JoinObjCmd (tclCmdIL.c:2194), F3 a X c (OK), F4 1/00, lset l X → "bad index". 9.0 tip build (2026-10-10): F1, F2, F4, F5 same wrong results. Branch tip alone (based on main 2026-10-17, without the F3 fix): F1/F2/F4/F5 fixed, F3 still segfaults. Branch merged into current main in wt-a3 (clean merge): all five correct; abstractlist, lseq, cmdIL, lpop, lset, listObj tests pass.
Status now: Closed (Fixed)
bug-0c82728f85-91, in main: Create new branch named "bug-0c82728f85-91"bug-0c82728f85-91, in main: 9.1 fixes for b24becc2ab and 0c82728f85 abstract list crashes and shimmerstrunk, in main: Fixes for b24becc2ab and 0c82728f85 abstract list crashes and shimmersTcl_Xxx) have afaict been all changed to check for abstract list methods. However, some internal functions / macros (TclXxx) have been modified similarly but others have not. The unmodified ones depend on the caller to make the check. Not sure whether that is by intent or oversight. Seems to me it would make sense to make it consistent throughout. Started… % set l1 [lstring abc] a b c % set l2 [list a b c] a b c % lappend l1 xyz a b c x % lappend l2 xyz a b c xyz `` That's a no-no. Additionally, it's implementation of replaceProc is incomplete in that it does not handle multiple indices. It may suffice for very specific test ca…0c82728f85.patch: VERIFIED
./tcltest r0c8.tcl (the ticket's lstring script) -> lappend 1 elem compiled in a proc : list, lappend 2 elems compiled in a proc : list, linsert end 1 elem NOT compiled : list (same as the report)
lstring; tests abstractlist (124/0 failed), lseq, linsert, listObj, list, lreplace, lrange, lindex, append, appendComp: 0 failed
REPRODUCED (main, 9.0); 8.6 has no abstract lists
b989a6a0e0.patch: VERIFIED. It is over the size guideline, the table should be produced by tools/uniParse.tcl, and the glob path and backrefs stay ToLower-only. Also note that i now matches U+0131/U+0130 under -nocase (the same as Python's re.IGNORECASE, but string equal -nocase does not do this).
^k$=1 ^k{1}$=0 ^k+$=0 ^[k]$=0 ^[k]+$=0 ^[a-z]$=0; regexp -nocase {^K+$} K = 0; ſ (U+017F) vs ^[s]$/^s+$ = 0
[a-z] -> 1; {^K+$} vs K -> 1; ſ vs [s]/s+ -> 1. As the triage said, bare ^s$ vs ſ is still 0 (glob path, ToLower only). Tests regexp (275/0 failed), regexpComp, reg (1072/0), string, utf: 0 failed
REPRODUCED (main, 9.0, 8.6, 8.5)
regexp -nocase {^K$} K is 0 while it matches k.
^k$ "works" only because the compiler turns it into a string match -nocase (TclReToGlob), which compares ToLower of both sides. A scan of the Tcl case tables finds 53 such one-way mappings (U+212A, U+212B, U+2126, U+017F, U+0130/0131, U+03C2, U+1C80–1C88, U+2C6x, U+A7xx, ...).
[a-z]; reg*/string* tests pass (3273, 0 failed). A proper fix should generate the table in tools/uniParse.tcl along with tclUniData.c. Remaining inconsistency: the glob path still uses ToLower only, so bare ^s$ does not match U+017F while [s] now does; backrefs (casecmp) are also ToLower only.
^k$ matches only because it is compiled to string match. Proposed fix: add the missing case counterparts (53 in the current tables) in regc_locale.c allcases()/range(); prototype with tests regexp-33.*.
Status now: Open
man2html-keyword-anchors, not merged: Fix 1c722347fe: the HTML documentation had about 300 dead links to the Keywords pages. The links in the KEYWORDS section used the raw keyword, while the anchoman2html-keyword-anchors, not merged: Use nospace-text for all anchor links, as suggested by Thomas (TWu).man2html-meta-viewport, in main: Fix 7f6005a867: add a viewport meta tag to the generated HTML pages, so they render properly on mobile browsers.REPRODUCED (main)
href="../Keywords/X.html#$key" with the raw keyword, while the Keywords pages use [nospace-text $k] for the anchor, so every multi-word keyword link is dead (192 dead anchors in Tcl docs, 302 with Tk). nospace-text only maps single spaces. tcltk-man2html.tcl: the letter list is A-Z only, so Tk's "3D" keyword links to a non-existent Keywords/3.html.
Status now: Open
http-keepalive-reuse-closed, in main: Fix 05b158ed56 and 3764f4e81f: http::OpenSocket opens a new connection if the persistent socket it was going to reuse has been closed in the meantime (e.g. trunk, in main, 9.0: Fix 05b158ed56 and 3764f4e81f: http::OpenSocket opens a new connection if the persistent socket it was going to reuse has been closed in the meantimecore-9-0-branch, in 9.0: Fix 05b158ed56 and 3764f4e81f: http::OpenSocket opens a new connection if the persistent socket it was going to reuse has been closed in the meantimeREPRODUCED (main, 9.0); not in 8.6 (http 2.9.9)
after idle; in http::wait's vwait the pending readable event runs CheckEof -> CloseSocket -> CloseQueuedQueries -> Unset, which removes socketMapping/socketWrState for the connection. OpenSocket then still takes the reusing branch, and ScheduleRequest reads the unset socketWrState($connId).
$state(reusing) but socketMapping($connId) no longer exists, switch to a fresh placeholder, start the timeout timer and call PreparePersistentConnection, i.e. open a new connection. The repro passes; http*.test passes.
+02/-02 trailing zone read as minutes; main, 9.0: zone followed by a number, e.g. +0200 15 Nov 2023 00:13:20 -> 1699935200, …REPRODUCED (8.6: +02/-02 trailing zone read as minutes; main, 9.0: zone followed by a number, e.g. +0200 15 Nov 2023 00:13:20 -> 1699935200, +02 2023-11-15 00:13:20 -> 1700007080 on all three)
zone: sign tUNUMBER (8.6 always hhmm); in 9.x nmzone uses yyDigitCount, which already belongs to the lookahead number when one follows.
+02 as minutes, main and 9.0 misread a zone followed by a number (+0200 15 Nov 2023 00:13:20). Branch bug-7bad415e3e-8.6 is not merged; the lookahead part would also apply to 9.x nmzone.
nonPortable; 9.0/8.6 still hardcode the drive); on this VM C: and D: both exist, so the hard…9d79d6b2f2.patch: VERIFIED
SKIPPED: nonPortable. The VM has C: and D: (the VBox Guest Additions CD, CDFS, cd works), so the old hard-coded D: would happen to be right here; a machine whose second drive is not D: was not available (no subst, as no system changes are allowed)
=C: variable); winFCmd.test admin 234 total, 3 failed (6.1, 6.13, 9.3 as baseline), low 0 failed
REPRODUCED by code reading (main: test disabled with nonPortable; 9.0/8.6 still hardcode the drive); on this VM C: and D: both exist, so the hardcoded choice happens to work
nonPortable by 08133f796d (2026-09-14) but still hardcodes D:/C:. In 9.0/8.6 the test is different (file norm ${dd}:foo with no cd), still uses the hardcoded name, and only checks syntax. Repro: win/9d79d6b2f2.tcl
dd as D: (or C:) instead of finding a volume that exists. The second failure (run from PowerShell) is outside Tcl: the per-drive current directory is kept in cmd.exe's hidden =X: environment variables, which PowerShell does not set.
otherDrive, which looks for a native volume other than the current one that can be cd'd to; nonPortable removed). The PowerShell case still fails; notInCIenv is kept.
nonPortable; 9.0/8.6 still hardcode the drive); on this VM C: and D: both exist, so the hardcoded choice happens to work
cd D:; file norm C:foo → cwd/foo on 9.1b1 even when started from PowerShell (ssh), but C:/foo on 8.6.18 from PowerShell (no =C: variable). Prototype on tcl-wt91: winFCmd.test with tcltest91 under cmd.exe: 16.10 PASSED (unpatched: SKIPPED nonPortable), 172 passed / 3 failed — the same 3 failures (winFCmd-6.1, 6.13, 9.3, ACL/permission tests) occur without the patch. 8.6.18 winFCmd-16.* all pass.
subst drives allowed here). Tested on Windows.
C:foo correctly even when started from PowerShell, while 8.6.18 needs cmd.exe's =C: variable.
Status now: Closed (Fixed)
interp-trace-delete-self, in main: 0e3f777e merge mainREPRODUCED (main, 9.0, 8.6)
e27c3246c3.patch: VERIFIED (affects every Win32 API call on Windows, not run there)
{0041 0080 0042} {0178 00A0 00BF} {00C3 0042 00E4 00B8 0042 00F0 009F 0042} {00C1 0081 00F8 00FF} (a leading \x80 stays U+0080, \x9F becomes U+0178 via cp1252, broken leads stand for themselves)
{0041 FFFD 0042} {FFFD FFFD FFFD} {FFFD 0042 FFFD FFFD 0042 FFFD FFFD 0042} {FFFD FFFD FFFD FFFD}; tests utf 401/0 failed, encoding 230/0, string 1411/0, stringObj 85/0, icu 58/0, cmdIL 164/0, format 271/0, scan 184/0, regexp 273/0; doc/Utf.3 paragraph renders correctly. TclNumUtfChars also calls Tcl_UtfToChar16 but only uses the byte count, which is unchanged
REPRODUCED (main, 9.0; 8.6 not applicable — Tcl 8 keeps cp1252/Latin-1 fallback by design)
testutftochar16 test command. Before the patch, A\x80B gives 0041 0080 0042; in the middle of a string the same \x80 gives U+20AC via cp1252, so the result changes with the position. Naked 0xA0–0xBF and broken lead bytes come out as themselves. 9.0 has the same code (by reading).
UCHAR(*p++). tclIcu.c already avoids Tcl_UtfToChar16DString for this reason (comment there).
testutftochar16 in tclTest.c, a doc/Utf.3 paragraph for Tcl_UtfToChar16, and tests utf-27.1/27.2). Invalid bytes become U+FFFD. The surrogate-pair path (high surrogate from the 4-byte lead, low surrogate from the trail bytes) and the C0 80 NUL are kept. utf/encoding/string/stringObj/icu/cmdIL tests pass. Tcl_UtfToUniChar(DString) keeps cp1252 (not touched; changing it would affect all string handling).
nmake core shell dlls OPTS=noembed then nmake install-libraries OPTS=noembed fails with File not found - libtcl9.1b1.zip /…Status now: Open
win-install-libraries-zip, not merged: Fix 76952ef592: in makefile.vc, install-libraries depends on libtclzip, so the library zip is built for OPTS=noembed instead of the install failing.REPRODUCED (main): nmake core shell dlls OPTS=noembed then nmake install-libraries OPTS=noembed fails with File not found - libtcl9.1b1.zip / xcopy return code 4
core depends on libtclzip only when TCL_EMBED_SCRIPTS, but install-libraries unconditionally copies $(TCLSCRIPTZIP) without depending on it. Unix not affected (different build). Repro script: win/76952ef592.tcl (run in an MSVC env against a scratch checkout).
install-libraries lacks a libtclzip prerequisite.
install-libraries: libtclzip ..., untested on Windows). Ashok's last comment says the current behaviour is by design; the patch is the low-cost alternative of building the zip on demand instead of failing.
install-libraries could simply depend on libtclzip, so nmake install-libraries OPTS=noembed builds it instead of failing. One-line change, needs a Windows check.
nmake core shell dlls OPTS=noembed then nmake install-libraries OPTS=noembed fails with File not found - libtcl9.1b1.zip / xcopy return code 4
install-libraries copies $(TCLSCRIPTZIP) but does not depend on libtclzip (only core does, and only when embedding)
477e96c250.patch: VERIFIED
tcltest 477e.tcl (initialize sets m 1; classmethod setit {} {classvariable m; incr m}) -> setit: 1 showit: 1 (the classmethod gets a fresh variable in the delegate's namespace); the same inside namespace eval ::app -> app: 1 10
<class object namespace>:: oo ::delegate, so the parent namespace is the class's object namespace (::oo::ObjNN), also for classes created in other namespaces
setit: 2 showit: 2, app: 11 11; tests oo.test 373 passed/16 skipped/0 failed, ooUtil.test 34/0/0, ooNext2.test 57/5/0, ooProp.test 59/0/0
REPRODUCED (main, 9.0, 8.7b1); 8.6 has no classmethod/initialize
0be26484a0.patch: VERIFIED (kqueue half by reading only)
notifierMutex hits are the separate static one in tclSelectNotfy.c/tclUnixNotfy.c).
make test TESTFLAGS="-file 'event.test io.test socket.test thread.test timer.test notify.test interp.test'" -> 1746 total, 1644 passed, 102 skipped, 0 failed. kqueue file not compilable here (no sys/event.h); its diff only removes the same field/init/lock/unlock/destroy lines and comments.
REPRODUCED (main, 9.0; 8.6 has no epoll/kqueue notifier). The mutex is dead code, so this is a cleanup, not a functional bug.
Status now: Open
registerconfig-twice, not merged: Fix 67769bcad3: a second Tcl_RegisterConfig call for the same package merges its keys instead of losing the package.REPRODUCED (main, 9.0, 8.6)
demopkg::pkgconfig list fails with "package not known" on main (own build), 9.0 tip, 8.6 tip.
::pkg::pkgconfig, whose QueryConfigDelete removes that package entry (and frees the merged dict).
testregisterconfig command in tclTest.c, test pkgconfig-3.1; the fix itself is 5 lines: hold a reference to the dict and re-put it after the command is created). Test fails without the fix, config.test passes with it; valgrind clean. Note: values are stored as bytes and decoded with the encoding of the latest call, so merging calls with different encodings would decode old values with the new encoding.
append env(username) XYZ turns USERNAME=serhiy into USERNAME=XYZREPRODUCED (main, 9.0, 8.6): append env(username) XYZ turns USERNAME=serhiy into USERNAME=XYZ
append never fires read traces (result "new", not "OLDnew"); top-level lappend does ("OLD new") while compiled lappend in a proc does not.
append (TclAppendObjCmd and INST_APPEND_*) calls TclPtrSetVarIdx without TCL_TRACE_READS, so the env read trace (EnvTraceProc -> TclGetEnv, case-insensitive on Windows) is not run for env(username); the element is created fresh and the write trace sets USERNAME (case-insensitive) to just the appended text. Same family as 3057639fff.
append env(username) XYZ turns USERNAME=serhiy into USERNAME=XYZ
b108e00ac8.patch: VERIFIED (doc part was missing from the saved patch, now added; still a TIP 677 behaviour change needing a decision)
namespace eval ::c1 {const v 2; const v 3; set v} -> 0 2; compiled (apply) the same, no error
can't make constant "v": constant has a different value for both uncompiled and compiled paths, errorCode TCL LOOKUP CONST; same value (const v [expr {1+1}]) -> 0 2; make test TESTFLAGS="-file 'var.test info.test oo.test compile.test namespace.test upvar.test proc.test'" -> 1493 total, 1456 passed, 37 skipped, 0 failed; const.n renders with 0 groff warnings. Library const uses (idna.tcl, autoexecok.tcl) are per proc call with fixed or per-call values.
REPRODUCED (main, 9.0; 8.6 has no const). The behaviour is what TIP 677 and const.n specify, so this is really a decision to change the spec.
const v 2; const v 3 returns quietly and v stays 2. A loop with const c $x returns 1 1. The current behaviour is pinned by tests var-26.10.1/27.10.1 ("unmodifiable by const but not an error"). Four more tests (var-26.16, 27.16, 30.1, 30.2) redefine a constant with another value along the way.
can't make constant "X": constant has a different value (errorcode TCL LOOKUP CONST). const.n is updated. var-26.10.1/27.10.1 now expect the error, new var-26.10.3/27.10.3 check that the same value is still a no-op, and the 4 incidental tests use the same value. var/info/oo/compile/namespace/upvar/proc tests pass. The const uses in the library (idna.tcl, autoexecok.tcl) are per call and not affected. Changes TIP 677 behaviour, so it needs dkf's or a TCT decision (the loop question).
REPRODUCED (main, 9.0, 8.6; LongPathsEnabled=0, the Windows default). The LongPathsEnabled=1 case was not tested (HKLM system setting, not allowed on this VM).
\\?\ (or \\?\UNC) to paths longer than MAX_PATH (!TclpLongPathSupported()), so the ../glob/cd differences from the ticket remain, as the reporter says in his own comment. Unix not affected. Repro: win/bc7925fc50.tcl (run with LongPathsEnabled 0 and 1, on 9.0 and main).
\\?\ prefix turns off Win32 path processing (.., /), and code paths that do not go through it (cd via SetCurrentDirectory, glob) do not get it.
\\?\ fix-up and fail with "file name too long", or apply it everywhere. Not small.)
file mkdir and writing a file inside work, but file isdirectory/exists $long/.. = 0, glob $long/* finds nothing (8.6: "no such file or directory"), cd $long → "file name too long", on 9.1b1 (manifest is longPathAware, TIP 744 merged), 9.0.5 and 8.6.18. Extra finding (work-win3/lpdel2.tcl): file delete -force $base on that tree returns success but deletes nothing (all 5 levels and the leaf remain) on all three versions; deleting the leaf file directly works.
\\?\ to paths over MAX_PATH, which disables .. processing; cd (SetCurrentDirectory) and glob/recursive delete (win/tclWinFCmd.c TraverseWinTree builds its own native paths without the prefix) fail. The silent delete: the traversal fails with ENOENT and generic/tclFCmd.c FileDeleteCmd (the "race condition" bypass after TclpObjRemoveDirectory) treats ENOENT as "already gone".
\\?\ fix-up, as in the Linux analysis; the silent delete could be fixed separately by checking existence again before bypassing ENOENT)
.., glob and cd fail on the same long path. Worse, [file delete -force] of such a tree returns OK and removes nothing: the traversal's ENOENT is taken as "already deleted" in FileDeleteCmd.
844f778a6c.patch: VERIFIED
TCL_FINALIZE_ON_EXIT=1 valgrind --leak-check=full tclsh il.tcl -> 3,200 (32 direct, 3,168 indirect) bytes in 1 blocks are definitely lost ... by Tcl_DoWhenIdle (tclTimer.c:871); total definitely 128 B/3 blocks, indirectly 3,541 B/106 blocks
REPRODUCED (main; same code in 9.0, 8.6): idle handlers still pending at thread exit/finalization are leaked
after idle and bgerror handlers are cancelled when the interp is deleted. Only C code that leaves idle handlers pending is affected.
aa9f3ef820.patch: VERIFIED (real or busy COM ports still untested)
tclsh91 aa9b.tcl -> aux/prn/lpt1/com1 exists=1 although file type fails; \\.\nul //./nul \\.\con \\.\CONIN$ exists=0 although type=characterSpecial
\\.\ devices exists=1 readable=1, \\.\pipe\nosuch 0; aa9f3ef820.tcl VERDICT: NOT REPRODUCED (no COM ports on the VM). File tests admin 8 failed, low 6 failed, as baseline
0 0 0 0) and 5.2 (com1 com9 lpt1 lpt9) FAIL with win/tclWinFile.c reverted, pass with the patch
REPRODUCED (main, 9.0, 8.6)
file exists (F_OK) only calls GetFileAttributesW. For bare reserved names comN (N=1..9, recognised by WinIsReserved) Windows reports attributes whether or not the device exists; for \\.\comN device paths GetFileAttributesW fails, so exists/readable/writable return 0. file type goes through NativeStat, which opens the device with CreateFileW and therefore reflects reality.
file exists is 1 for com1–com9, lpt1, aux, prn although file type and open fail; 0 for \\.\nul, //./nul, \\.\con, \\.\CONIN$ although file type gives characterSpecial. A real COM port (busy or ≥ COM10) could not be tested.
\\.\ paths; NativeStat opens the device with CreateFileW instead
\\.\ paths (except \\.\pipe\, to avoid connecting to a pipe server) and bare reserved names (WinIsReserved), NativeAccess opens the device with CreateFileW (GENERIC_READ for F_OK, like NativeStat), counting ACCESS_DENIED/SHARING_VIOLATION as existing for F_OK, and reports devices as not executable. Built on the VM: exists now agrees with type for all names above; winFile.test 6 passed + 5 failed (winFile-4.0–4.4 cacls tests, fail identically unpatched), fCmd.test, cmdAH.test, fileSystem.test 0 failed, winFCmd.test 3 failed as unpatched (6.1, 6.13, 9.3). Tested on Windows.
5d5b105228.patch: VERIFIED
ok, several !! ... type eval line 4 cmd {return aa} (expected line 2) for the 3/4/5-arg cases
ok (line 2); tests switch, info, trace, compile: 894 total, 876 passed, 18 skipped, 0 failed
3 3 3 -7 -4) / passes after (2 2 2 -7 -4)
REPRODUCED (main, 9.0, 8.6)
$sw so neither is compiled inline. info frame 0 in the inner arms gives 3 3 3 2 instead of 2 2 2 2.
REPRODUCED (main, 8.6; console stdin only)
chan pending input stdin is 0 inside the readable handler (pipe stdin). The script also has an interactive console mode for the Windows console case the ticket is about.
_read(0) in the callback) built with MSVC against 9.1b1 and 8.6.18, run in a real console (ConPTY via ssh -tt) with typed lines hello, world, q: the first callback's _read blocks and returns world — hello was consumed by Tcl's console reader thread and is lost to the raw read. Same on 9.1b1 and 8.6.18. With stdin as a pipe there is no read-ahead (win/1d06180006.tcl pipe mode OK on 9.1b1, 9.0.5, 8.6.18); chan pending input stdin is 0 in the handler even for the console, because the data sits in the console driver's own buffer, not the channel buffer.
configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 gives TCL_EXE = tclsh; with no tclsh on P…Status now: Closed (Fixed)
win-native-mingw-tclsh, in main, 9.0: Fix 2ef3430fdc: win/configure decides whether to use an installed tclsh from $cross_compiling, not from host=*mingw32*, so native MSYS2/Cygwin builds use the trunk, in main: Merge win-distclean-tcl-pc and win-native-mingw-tclsh: fix 59a9b957c6 and 2ef3430fdc.core-9-0-branch, in main, 9.0: Fix 59a9b957c6 and 2ef3430fdc: Windows "make distclean" removes tcl.pc; win/configure uses an installed tclsh only when cross-compiling, not for any *mingw3core-8-6-branch, in main, 9.0, 8.6: Fix 59a9b957c6 and 2ef3430fdc: Windows "make distclean" removes tcl.pc; win/configure uses an installed tclsh only when cross-compiling, not for any *mingw3REPRODUCED (main): native MSYS2 UCRT64 configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 gives TCL_EXE = tclsh; with no tclsh on PATH, make succeeds but make install fails at install-tzdata (tclsh: command not found, Error 127)
case ${host_alias} in *mingw32*) TCL_EXE=tclsh block. Prototype checked on Linux with mingw-w64 cross gcc: win/configure --host=x86_64-w64-mingw32 still gives TCL_EXE = tclsh (autoconf reports cross compiling = yes). Native MSYS2 case not testable here; repro script win/2ef3430fdc.tcl (needs MSYS2 on the VM).
$cross_compiling.
if test "$cross_compiling" = yes. Side effect: a Linux cross build whose binfmt runs .exe via Wine gets cross_compiling=no and would run the built tclsh through Wine.
configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 gives TCL_EXE = tclsh; with no tclsh on PATH, make succeeds but make install fails at install-tzdata (tclsh: command not found, Error 127)
make install succeeds (tzdata installed). Tested on Windows.
Status now: Closed (Fixed)
win-system-zlib-tommath, in main: Fix ac3ea87305: win/configure gets --with-system-zlib and --with-system-libtommath to link the zlib and libtommath of the build system (e.g. MSYS2) instead oftrunk, in main, 9.0: Fix ac3ea87305: Don't assume that Windows has no usable zlib/tommathcore-9-0-branch, in main, 9.0, 8.6: Fix ac3ea87305: Don't assume that Windows has no usable zlib/tommathcore-8-6-branch, in main, 9.0, 8.6: Fix ac3ea87305 and 17ffc49790. New option --with-system-zlib and fix out-of-tree build with "configure --srcdir=..."REPRODUCED (main, 9.0; 8.6 for zlib) - effectively an RFE
--with-system-libtommath.
--with-system-libtommath, zlib.h check) to win/configure.ac and making the DLL copy rules conditional would resolve it; meanwhile dropping the bundled DLLs is the endorsed workaround.
ce32712f83.patch: VERIFIED
TODO - how come a *read* lock suffices for initialzing ?) call ZipfsSetup() under ReadLock(); the other callers (TclZipfsMountExe 4323, TclZipfsMountShlib 4376, TclZipfsInit 6522) use WriteLock(). On main TclInitSubsystems already runs TclZipfsInit() first, so the branch is dead; a runtime race is not reproducible.
make test TESTFLAGS="-file zipfs.test" -> 535 total, 498 passed, 37 skipped, 0 failed
REPRODUCED (main, 9.0) by code inspection — main: dead code only; 9.0: theoretical race
Status now: Closed (Fixed)
configure-pkgs-no-srcdir, in main: Fix 17ffc49790: an out-of-tree build with "configure --srcdir=..." failed to configure the bundled packages, since Tcl passed its own --srcdir on to their contrunk, in main, 9.0: Fix 17ffc49790: Make packages work in an out-of-tree build with "configure --srcdir=..."core-9-0-branch, in main, 9.0, 8.6: Fix 17ffc49790: Make packages work in an out-of-tree build with "configure --srcdir=..."core-8-6-branch, in main, 9.0, 8.6: Fix ac3ea87305 and 17ffc49790. New option --with-system-zlib and fix out-of-tree build with "configure --srcdir=..."REPRODUCED (main; same code in 9.0 and 8.6)
../tcl9.1/unix/configure --srcdir=../tcl9.1/unix: make fails in configure-packages with "configure: error: cannot find sources () in ../tcl9.1/unix". Without --srcdir it builds. (The reporter's --srcdir=../tcl9.0.2, i.e. the top dir rather than unix/, is a user error: config.status cannot find ../unix/Makefile.in.)
PKG_CFG_ARGS="$ac_configure_args ..." forwards Tcl's own --srcdir to each package's configure, so it looks for its sources in Tcl's unix dir. The --with-tcl=../.. relative path is not the problem; the package configure is run via the absolute $(TCL_SRC_DIR)/pkgs/<pkg>/configure.
--srcdir=X / --srcdir X from PKG_CFG_ARGS. Verified: both forms then build pkgs/thread. (make install of my Thread trunk tarball then fails for an unrelated reason: the fossil tarball lacks tclconfig/install-sh.)
475db43843.patch: VERIFIED
-fsanitize=float-cast-overflow build (work-a6/ubsan), tcltest r475.tcl (lseq 1e50 count 1 1; compiled lseq 0 count -Inf) -> tclArithSeries.c:653:6 and :785:2: runtime error: 1e+50 is outside the range ... long long int, tclExecute.c:9407:6: runtime error: -inf is outside the range ...
1e+50, expected integer but got "-Inf"); lseq.test 147/0 failed with no UBSan reports; normal build lseq, lrange, abstractlist: 0 failed
REPRODUCED (main, 9.0 by reading the same code; 8.6 has no lseq)
-fsanitize=float-cast-overflow (work-a6/ubsan). lseq 1e50 count 1 1 reports UB at tclArithSeries.c ExtractNumber ((Tcl_WideInt)value) and TclNewArithSeriesObj (end = dend). The compiled lseq 0 count -Inf adds a third one, tclExecute.c GenerateArithSeries ((Tcl_WideInt) dCount before any range check). Results are right on x86-64, but this is undefined behaviour.
end = dend) and generic/tclExecute.c GenerateArithSeries. ArithSeriesLenDbl's guard end <= (double)WIDE_MAX also lets 2^63 through.
<. lseq.test passes with no UBSan reports; without the patch the new tests trigger all three reports.
Status now: Open
http-keepalive-reuse-closed, in main: Fix 05b158ed56 and 3764f4e81f: http::OpenSocket opens a new connection if the persistent socket it was going to reuse has been closed in the meantime (e.g. trunk, in main, 9.0: Fix 05b158ed56 and 3764f4e81f: http::OpenSocket opens a new connection if the persistent socket it was going to reuse has been closed in the meantimecore-9-0-branch, in 9.0: Fix 05b158ed56 and 3764f4e81f: http::OpenSocket opens a new connection if the persistent socket it was going to reuse has been closed in the meantimeREPRODUCED (main, 9.0; 8.6 partly, see below)
-channel response is read as an empty status line, so state goes to "header", and the eof that follows ends the request as eof without the TestForReplay retry (8.6 too); (2) 9.x only: http::CheckEof can close the socket after geturl has queued the idle-time OpenSocket that reuses it, and ScheduleRequest then throws can't read "socketWrState(localhost:N)": no such element in array.
REPRODUCED (main 9.1b1, 9.0.5)
scriptdir,runtime / scriptdir,install = <prefix>/lib/tcl9.x, which does not exist (no init.tcl there), while info library is //zipfs:/lib/tcl/tcl_library. 8.6.18 reports the real installed dir.
make install installs the script library (INSTALL_LIBRARIES is empty for zipfs builds).
REPRODUCED (main, 9.0, 8.6) -- behaviour change, not a small bug fix
string is lower ª 0, :lower: on ª 0, string is lower ⅰ 0 while string toupper ⅰ gives Ⅰ, string is lower ⓐ 0, string is upper Ⅰ 0 -- identical on main, 9.0, 8.6.
REPRODUCED (main, 9.0) — design/reminder ticket; 8.6 has no profiles
encoding convertto utf-8 [testbytestring \xEF\xBF\x7F] returns c3afc2bf7f even with -profile strict; to iso8859-1 it gives efbf7f (bytes passed through as Latin-1); convertfrom errors as expected.
Status now: Closed (Fixed)
oo-destructor-deleted-namespace-90, in main, 9.0: Backport of Fix b4637c4312: [upvar] to an object variable after the object was destroyed in its method crashed.core-9-0-branch, in main, 9.0: Fix 28de60cef5 and b4637c4312trunk, in main: Fix 28de60cef5 and b4637c4312oo-destructor-deleted-namespace, in main, 9.0: Fix b4637c4312: [upvar] to an object variable after the object was destroyed in its method crashed. Same cause as 28de60cef5; add a test.REPRODUCED (main, 9.0, 8.6)
Tcl_Size loc. Three rounds of fixes ([…REPRODUCED (main, partly addressed). The example in the ticket is fixed: TclAdvanceContinuations now takes Tcl_Size loc. Three rounds of fixes (ca9b2d5796, d92999333a, 9f799357d8 on the conversion-warning branch, merged into trunk as 932cc0af74 on 2025-04-20) went into 9.1.
CFLAGS_WARNING="-Wconversion -Wno-sign-conversion" (gcc 15): 361 warnings left. Most are in tclEncoding.c (73), tclDate.c (70, generated parser), tclZipfs.c (59), tclClockFmt.c (29), tclIO.c (23), tclInt.h (20, so they repeat in every file), tclZlib.c (19). The core parse/compile/execute files have 1–5 each. Adding -Wsign-conversion gives far more (e.g. tclCompile.c 77).
fb9acd64a5.patch: VERIFIED
[interp create] eval {close stdout}; puts "hello" -> can not find channel named "stdout", exit 1
hello, exit 0; tests interp, io, ioCmd, chan, chanio, safe, iogt, ioTrans: 2754 total, 2570 passed, 184 skipped, 0 failed
1:can not find channel named "stdout") / passes after. Note: its interp.test hunk has the same insertion point as 2114165fff's, so when both are applied the second one needs a trivial manual merge (C hunks apply fine).
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
can not find channel named "stdout"; with any prior channel op in the parent all work.
close stdout there really closes the thread's stdout; the parent later finds no std channel.
REPRODUCED (main, 9.0, 8.6)
REPRODUCED (main, 9.0, 8.6)
REPRODUCED (main, 9.0, 8.6)
namespace delete ::A.
REPRODUCED (main, 9.0, 8.6: object commands still get an internal rename/delete trace, tclOO.c ObjectRenamedTrace); proposed fix branch not merged
38a31dffdf.patch: VERIFIED
file delete -force d) -> 1 {error deleting "d/models/svg/yoke.svg": permission denied} 1
0 {} 0; tests fCmd, unixFCmd, fileSystem, cmdAH: 17518 total, 17403 passed, 115 skipped, 0 failed (fCmd-20.1, unreadable subdirectory, still passes)
error deleting "tfa/a/b/f": permission denied) / passes after
REPRODUCED (main, 9.0, 8.6, 8.4)
file delete -force d fails with "error deleting .../yoke.svg: permission denied" on main, 9.0.5, 8.6.18, 8.4.20. (rm -rf fails the same way, but file.n promises that with -force "Tcl will attempt both to change permissions ... if that is necessary to allow the deletion".)
file delete -force tfa/a works while file delete -force tfa does not).
bc4ac0dd5f.patch: VERIFIED
a (expected b); the -real list gives 1.0 2.0 2.0 4.00 4.00 6.000; also lsearch -sorted -subindices -inline -stride 2 -index 0 {a 1 b 2 c 3 d 4 e 5} c -> b (expected c)
b, 1.0 2.0 3.000 4.00 5.0 6.000, stride case c. Tests lsearch (166/0 failed), cmdIL: 0 failed
REPRODUCED (main, 9.0, 8.7b1; 8.6 differs: -subindices is ignored with -inline there and the whole element is returned)
lsearch -sorted -subindices -inline -index 0 {{a 1} {a 2} {b 3} {c 4} {c 5}} b → a; the -real list gives 1.0 2.0 2.0 4.00 4.00 6.000.
listv[i+groupOffset], where i is the last element the binary search probed, instead of the found index. For linear search the two are the same, so only -sorted is affected. Annotate shows the line coming in with the merge 9d080b5730 (2018-03-05, merge 8.7).
i → index. lsearch.test passes; the new test fails on 9.0.5.
i) instead of the found index. Proposed one-line fix plus test lsearch-25.7.
REPRODUCED (main, 8.6)
66aa81c90a-86.patch: VERIFIED+TEST-ADDED
fossil update core-8-6-branch: already up to date)
tclsh86t.exe 66aa.tcl (win/66aa81c90a.tcl with its temp dir moved into the scratch dir; win/66aa81c90a/needsdep.dll) -> 51-char path: this library or a dependent library could not be found in library path (WIN_LOAD MOD_NOT_FOUND); 171-char path: couldn't load library "...": No error (POSIX {unknown error} {No error}), VERDICT: BUG
... could not be found in library path (WIN_LOAD MOD_NOT_FOUND), VERDICT: OK; tests load.test: 31 total, 14 passed, 17 skipped, 0 failed (with load-12.1)
No error, POSIX {unknown error} vs WIN_LOAD MOD_NOT_FOUND)
66aa81c90a.patch: VERIFIED+TEST-ADDED
tclsh91 66aa.tcl -> 171-char path: No error (POSIX {unknown error} {No error}), VERDICT: BUG
this library or a dependent library could not be found in library path (WIN_LOAD MOD_NOT_FOUND), VERDICT: OK; nmake test TESTFLAGS=-file load.test 31 total, 14 passed, 17 skipped, 0 failed
No error), PASSED with the patch. The same test also fails unpatched / passes patched on core-9-0-branch with this patch
REPRODUCED (main, 9.0, 8.6; Release builds with the threaded allocator, long DLL paths only)
Tcl_DStringFree(&ds). When the native path is longer than the DString static buffer, the free goes through Tcl's allocator. The threaded allocator (default in 9.0; not in 8.6 MSVC builds) calls TlsGetValue, which sets the last error to 0. ERROR_SUCCESS then hits the default: case and gives "No error". This explains why Jan's short ./tcl9memorymoduletest.dll got the correct message and Harald's long C:/... path did not. The code is the same in 8.6, so 8.6 builds with the threaded allocator would show it too.
this library or a dependent library could not be found in library path (WIN_LOAD MOD_NOT_FOUND); 162–173 char path → couldn't load library "...": No error (errorCode POSIX {unknown error} {No error}) on 9.1b1, 9.0.5 and 8.6.18. The 9.1 memdebug Debug build gives the right message for both, as expected if the allocator clears the last error.
REPRODUCED (main, 9.0, 8.6) — stack-depth dependent; oo-1.23/1.24 still marked knownBug
-constraints knownBug -match oo-1.2[34]: wt-a3 main (-g, -O0) passes with 8 MB stack, segfaults with 4 MB; 9.0 and 8.6 tip tcltest (-O2) pass with 8 MB and 4 MB, segfault with 2 MB and 1 MB. Control: oo-1.20–1.22 pass at 2 MB.
package files)209fd9adce.patch: VERIFIED
sources subdir indexes; package aa does a failing nested package require): package files aa -> a/pkgIndex.tcl a/aa.tcl a/pkgIndex.tcl b/pkgIndex.tcl, i.e. the indexes rescanned by package unknown are attributed to aa
a/pkgIndex.tcl a/aa.tcl; tests package.test 403 passed/1 skipped/0 failed, pkgMkIndex.test 27/0/0, tm.test 21/0/0, safe.test 153/2/0, load.test 30/0/0
REPRODUCED (main, 9.0, 8.7b1; 8.6 has no package files)
sources subdir pkgIndex.tcl files, as tcllib does) plus a package whose load does a failing nested package require; main build, 9.0.5, 8.7b1
package unknown script while the requiring package's name is on top of the tclPkgFiles stack. tclPkgUnknown itself uses source -nopkg, but plain source calls inside pkgIndex.tcl (tcllib's top-level index) are recorded via TclPkgFileSeen, so every nested failed require adds all those pkgIndex.tcl files. Jan's idea (remember the pkgIndex.tcl in the ifneeded data) is already implemented (30f95df8b0); this is the remaining leak.
source -nopkg does. package.test, pkgMkIndex.test pass.
REPRODUCED (main, 9.0, 8.7b1, 8.6.18) — not 9.0-specific: the restriction disappeared in 8.6.9
namespace eval foo {proc :bar {} ...} succeeds, namespace which :bar gives ::foo:::bar, and ::foo:::bar is "invalid command name" on main, 9.0.5, 8.7b1, 8.6.9–8.6.18; 8.5.19 and 8.6.0–8.6.8 refuse with "can't create procedure ":bar" in non-global namespace with name starting with ":"". namespace eval foo {namespace eval :baz {}} also creates an unreachable ::foo:::baz.
namespace which return a reachable name.
//?/UNC/...; //./C:/... is part of the RFE (not supported)d8f1217156.patch: VERIFIED
tclsh91 d8f.tcl (win/d8f1217156.tcl with the temp dir in scratch) -> //?/UNC/localhost/C$/... exists=0 pathtype=relative (also with the illegal. tail); //./C:/... exists=0; VERDICT: REPRODUCED (3 of 7)
//?/UNC/... rows exist=1, pathtype=absolute, so native access through \\?\UNC\localhost\C$\... works, including the illegal. name. Only //./C:/... is still exists=0; it is the RFE part and not in the patch. File tests admin 8 failed, low 6 failed, as baseline
REPRODUCED (main, 8.6) for //?/UNC/...; //./C:/... is part of the RFE (not supported)
testsetplatform win)
testsetplatform windows: file pathtype //?/UNC/host/share/x → relative, file split → {} host share x on main and 8.6 tip; //?/UNC//host/share/x (extra slash) → volumerelative. //?/c:/x is fine.
//?/UNC/ the remainder host/share/... no longer starts with //, so the UNC branch is never taken and the path falls through to "relative"; with an extra slash (//?/UNC//host) it becomes volume-relative. //./c:/x is parsed as UNC host "." share "c:" (win/tclWinFile.c then has no special handling either).
//?/UNC/ and don't prepend another //. Native access of the resulting \\?\UNC\host\share still needs checking on Windows (win/d8f1217156.tcl).
//?/UNC/host/share/... is parsed as a relative path: ExtractWinRoot() in generic/tclFileName.c strips the //?/UNC/ prefix and then expects the host to start with // again. Proposed fix with tests filename-6.31/6.32 (reproducible on any platform with testsetplatform win). //./ paths are a separate RFE.
//?/UNC/...; //./C:/... is part of the RFE (not supported)
//?/UNC/localhost/C$/... exists=0, pathtype relative (also with an illegal. tail); //./C:/... exists=0; //?/C:/..., //localhost/C$/... and //./UNC/localhost/C$/... work.
// again after the //?/UNC/ prefix
//?/UNC/... rows now exist=1 with pathtype absolute (native access through \\?\UNC\host\share works); fileName.test 285 passed / 0 failed (incl. the new tests), fileSystem, fCmd, cmdAH 0 failed; winFCmd 3 and winFile 5 failures as unpatched. //./C:/... still fails (RFE). Tested on Windows.
//?/UNC/host/share/... is parsed as a relative path by ExtractWinRoot(). Proposed fix with tests filename-6.31/6.32; on Windows 11 such paths then work natively ([file exists] on \\?\UNC\localhost\C$\...). //./C:/... support remains a separate RFE.
Status now: Closed (Fixed)
epoll-no-sys-queue, in main: Fix 3ff2d724d0: Tcl did not build with musl (e.g. Alpine Linux without bsd-compat-headers), which has no <sys/queue.h>. Define the six list macros that tclEpotrunk, in main, 9.0: Fix 3ff2d724d0: build failure on Alpine Linux (MUSL) - sys/queue.h no such file or directorycore-9-0-branch, in main, 9.0: Fix 3ff2d724d0: build failure on Alpine Linux (MUSL) - sys/queue.h no such file or directoryREPRODUCED by code reading (main, 9.0; 8.6 too: tclEpollNotfy.c includes <sys/queue.h> unconditionally) - CANNOT-TEST on real musl (no musl toolchain/Alpine VM here)
ac_cv_header_sys_queue_h=no) with the prototype: builds, and event/socket/io/unixNotfy tests pass (1112 passed, 0 failed) with the fallback macros on the epoll notifier.
info loaded in a safe interp lists full paths of shared libraries loaded anywhere in the process; info hostname a…ba3a158b52.patch: VERIFIED (hostname still exposed; policy decision pending)
info loaded works in a safe interp); patched interp.test hidden-list tests interp-21.5, 21.8, 23.2 fail on the unpatched build (expected, they list tcl:info:loaded)
make dltest.marker; make test -file 'interp.test safe.test safe-stock.test safe-zipfs.test info.test load.test package.test' -> 1288 passed / 0 failed
REPRODUCED (main, 9.0, 8.6) — info loaded in a safe interp lists full paths of shared libraries loaded anywhere in the process; info hostname and tcl_platform also exposed (design question)
interp create -safe child's info loaded shows the full path), 9.0.5, 8.6.18 (8.6 even exposes info nameofexecutable); info script returns {} in a plain safe interp and Safe Base tokenizes source paths
info loaded unsafe. interp, safe*, info, load, package tests pass. Library uses of info loaded (tcl_findLibrary inside catch, safe::interpCreate -load in the parent) are unaffected. hostname left alone; needs a decision.
b5a02c5390.patch: VERIFIED
TCL_LIBRARY=wt-a2/library ./tcltest ../tests/http.test -match 'http-4.20*' -> both thread levels FAILED with {{can't read "state(socketinfo)": no such element in array}} {} 1 sock... (bgerror after cleanup, token still exists, socket leaked)
REPRODUCED (main, 9.0, 8.6)
geturl -command ... -keepalive 0, update idletasks (socket opened, connect pending), http::cleanup, then enter the event loop. The writable handler still calls http::Connect on the cleaned-up token, which raises a bgerror (8.6.18/http 2.9.9: can't read "state(sock)", as in the ticket; 9.0.5 and main: can't read "state(socketinfo)" from Finish, because Connect's eof check is now caught). The socket also leaks. With -keepalive 1 the same bgerror happens on 9.0.
state(status) is still "" and a socket exists, unset state(-command) (no user callback from cleanup) and catch {reset $token}, which closes or releases the socket before the state is unset. The repro is clean (no bgerror, no leaked channel); the http*.test files pass; http-4.20 fails on unpatched 9.0. Side note, not addressed: with -keepalive 1 a reset in the middle of a request leaves the socket in socketMapping, so it may be reused with a half-finished exchange.
929a918ec1.patch: VERIFIED
tcltest 929a.tcl (oo::configurable class with property p plus a mixin of a plain class V) -> with mixin V: unknown method "configure": must be destroy or hello; with mixin -append V: 0 3 hi. The doc does not mention it
man -l configurable.n renders the new sentences in ADVANCED USAGE; they match the behaviour above
REPRODUCED (main, 9.0); DOCS
mixin V gives unknown method "configure"; mixin -append V works (work-a2/oo/mix.tcl). The obj5-bad.tcl attachment is missing from the repository. 8.6 has no oo::configurable.
mixin in the class definition replaces the mixin list. The title's diagnosis ("only mixed in with oo::configurable") is wrong.
mixin -append)
mixin replaces the mixin list, which removes oo::configuresupport::configurable. mixin -append V works. Proposed doc fix (patch attached) says this in configurable.n.
REPRODUCED (site): still missing
ticket-common config in the local tcl.fossil clone. subsystem_choices has no documentation entry (it has "75./91. Tutorial", "90. FAQs", "51. Release Notes"), and type_choices is "Bug Support Patch RFE".
{58. Documentation} to subsystem_choices.
2b7d3233ae.patch: VERIFIED
DB: create row in ::Users matching username=abc (doc says "from"), and the doc's Group find -> invalid command name "Group".
Groups find the example runs and prints DB: locate row from ::Groups matching groupname=webadmins, as the patched comment says (object numbers in the doc are illustrative)
REPRODUCED (main, 9.0); DOCS
Group find (the class is Groups), and its shown output "locate row ::Group with ..." does not match the code ("locate row from ::Groups matching ...").
Groups find and its output)
Group/Groups mismatch in the find example. Proposed doc fix attached.
REPRODUCED (main, 9.0, 8.6)
child invokehidden info frame 0 → type precompiled, info frame → 1; for comparison child eval {info frame 0} reports the parent's source frame (type source, file, line)
d0d47f8196.patch: FIXED-MEANWHILE (2b7247bc38). Different approach from the prototype: the file probes socket -async www.google.com 80 (5 s timeout) whenever it is sourced, so loading httpProxy.test still opens an outside connection and the tests run whenever the network is up. The opt-in needsInternet of the prototype would avoid that; it may still be worth suggesting. The rule "never run httpProxy.test" therefore still applies
googleReachable, added by 2b7247bc38 (max, 2026-10-20, "Add test constraint googleReachable to skip tests that access google.com in build environments without network access"). Checked statically only (httpProxy.test must not be run here)
REPRODUCED (main, 9.0; 8.6 has no httpProxy.test). The no-proxy tests are still unconstrained.
-constraints {} and fetch http://www.google.com/; the https variants 2.2/3.2/4.2/5.2 need only needsTls, which is opt-in. Note: an earlier make test TESTFLAGS="-file http*.test" in this triage run did include httpProxy.test, so these 4×2 tests really did contact www.google.com from this machine (they passed). Nobody meant to use the network.
-constraints needsInternet they run as before.
7ec0aa1400.patch: VERIFIED. The TLS empty-read case from the report goes through the same code path but was not tested (no TLS here).
ok abcdefghij {5 10 10 10} (two callbacks without new bytes) at ThreadLevel 0 and 1
{5 10}; http-4.21.* passed 20/20 runs (timing-based test, no flakiness seen). With Thread (levels 0-2): http.test Total 234 Passed 225 Skipped 9 Failed 0; http11.test 129 passed/0 failed. httpPipeline/httpProxy were not run (network rule).
REPRODUCED (main, 9.0, 8.6)
5 10 10 10, where 5 10 is expected. With TLS (as in the report), every readable event that carries no application data gives a 0-byte read and another identical callback. That is the same code path, but untested here.
$n > 0. http/http11/httpcookie/httpPipeline tests pass. (The -channel/CopyContent path calls -progress per copied block and was not changed.)
REPRODUCED (main, 9.0) — still not public; effectively an RFE (needs a stubs-table/API decision)
REPRODUCED (main, 9.0, 8.6)
info frame 0; second run is correct.
Status now: Pending (Fixed)
REPRODUCED (main, 9.0, 8.6) -- design question, waiting for TIP 689 (State: Draft, Vote: Pending, Tcl-Version 9.1)
::tcl::xxx::test and namespace inscope ::tcl {xxx::test} both give "invalid command name"
Status now: Open
bug-f91ab723f3-quoting-main, not merged: Rebase of bug-f91ab723f3-quoting to main. Fix 6dacb3b6f0 and f91ab723f3: put the command after "cmd.exe /c" in double quotes, so cmd.exe does not strip the bug-f91ab723f3-quoting, not merged: Fix 6dacb3b6f0 and f91ab723f3: append the closing quote for "cmd.exe /c" in BuildCommandLine(), before the conversion to WCHAR. Appending it to the converteREPRODUCED (main 9.1.1, 9.0.5, 8.6 tip, installed 8.6.18; wish only). Same bug as 6dacb3b6f0
[%*], runs the reporter's cases in tclsh (console) and in wish (no console → "cmd.exe /c"), prints VERDICT; pass the wish path if it is not next to tclsh.
cmd.exe /c for APPL_DOS (.bat/.cmd) when HasConsole() is false, without the outer quotes cmd.exe needs when the command has more than two quotes.
make html failspatchREPRODUCED (main; same findversion code in 9.0 and 8.6)Status now: Open
man2html-find-tk-generic, not merged: Fix b2e3cbdc8f: "make html" failed with "not table of contents" when the Tk source directory had a release name like tk9.1b1: findversion paired each search rman2html-tk-beside, not merged: tcltk-man2html.tcl: a Tk tree found next to the source directory replaced the common prefix also used for Tcl, so all Tcl paths were wrong and the tool failed wREPRODUCED (main; same findversion code in 9.0 and 8.6)
tcltk-man2html.tcl --useversion=9.1 --srcdir=.../tcl9.1b1 (what make html runs): "using Tk source directory" empty, then ": make-manpage-section: not table of contents." Works when the dirs are named tcl9.1/tk9.1.
foreach top1 {$top $top/..} sub {{} generic} in parallel, so it only tries <top>/<dir>/tk.h and <top>/../<dir>/generic/tk.h. After Tcl is found, tcltkdir becomes the parent dir, so Tk's <parent>/tk9.1b1/generic/tk.h is never checked; the empty Tk dir then breaks the section scan.
--srcdir=<parent> and --srcdir=<parent>/tcl9.1b1 now find tk9.1b1 and generate TkCmd/TkLib; --tcl from the checkout unchanged.
$top with no subdir and $top/.. with generic/, so a Tk tree beside Tcl is only found if its directory matches tk$useversion. Proposed fix: try both subdirs for each search root.
52b83aa279.patch: VERIFIED
tclsh bad52.tcl (byte 0xB0 on line 4 inside if 0 {...}) -> couldn't read file "bad52.tcl": invalid or incomplete multibyte or wide character (no position)
... wide character at line 4; also right for a bad byte on line 1 and on line 50001 of a 50001-line file (chunked reads), and with source -encoding utf-8; tests source (24/0 failed), io (884/0), ioCmd, main, cmdAH, fCmd: 0 failed
REPRODUCED (main, 9.0) -- 8.6 not affected (no strict encoding profile, source reads the bad byte silently)
if 0 {...} on main build, 9.0.5: couldn't read file "...": invalid or incomplete multibyte or wide character, no position
453d66ef70.patch: VERIFIED. The triage asked for an http patchlevel bump, but it is no longer needed on main: 9.1.0 and 9.0.4 shipped http 2.10.2, and main already says 2.10.3 (unreleased). A 9.0 backport would still need its own bump.
TCLLIBPATH=work-a3/thread tcltest v453.tcl (-threadlevel 1, geturl to a local server, after idle {http::reset $tok}) -> BGERROR: invalid command name "::http::1--SocketCoroutine" (the message from the ticket), then status: reset
status: reset, no bgerror. With Thread: http.test Total 234 Passed 225 Skipped 9 Failed 0; http11.test 0 failed (httpcookie.test is all skipped here)
REPRODUCED (main, 9.0; 8.6's http 2.9 has no -threadlevel) — deterministic with a reset during the socket-thread wait; the unmodified http.test passes 40/40 on main and 40/40 on 9.0 tip with Thread 3.0.7 (6 parallel runs) on this machine, so the suite only hits it under timing pressure
-threadlevel 1, http::geturl ... -command, after idle {http::reset $tok} → bgerror invalid command name "::http::1--SocketCoroutine" (exact message from the ticket)
after 0 $coroName when the socket thread writes its result variable; if the coroutine was deleted while yielded (http::Finish renames ${token}--SocketCoroutine on reset/timeout, cf. tests http-4.11/4.12 "-timeout 1" + reset), the after script fails
5030db5deb.patch: VERIFIED
a a/f a/l a/l/l a/l/l/f a/l/l/l ... (a/l -> ../b, b/l -> ../a, recursion until the path is too long)
a a/f a/l b b/l; make test TESTFLAGS="-file zipfs.test" 499 passed / 0 failed
REPRODUCED (main, 9.0, 8.7b1)
zipfs find returns 166 entries on main and 9.0.5, 3982 on 8.7b1 (recursion only stops when the path gets too long, so the count depends on the base path length); expected 6
file type ne "link").
find without -L); test zipfs-find-native-links.
REPRODUCED (main, 9.0)
glob shows abac-repeat.txt test2; after unmount test2 again
REPRODUCED (main; 8.6 per ticket comments, not rebuilt with PURIFY here)
set a 0; exit $a already gives 144 bytes definitely lost, if 1 {exit $a} adds CFWord blocks from TclArgumentEnter
set a 0; exit $a in a script file is enough with a PURIFY build. The lost blocks are owned by C frames (TclEvalEx, Tcl_FSEvalFileEx) that Tcl_Exit never returns to, so they leak once per process, at exit. A real fix means making [exit] unwind to Tcl_Main before Tcl_Finalize; a cheap option is adding these frames to tools/valgrind_suppress.
Status now: Closed (Fixed)
lset-empty-huge-index, in main: Fix 13d3c0d764: lset on an empty list accepted a huge index as end+1. In the special case for empty lists, accept the index only if it is end+1 when evaluatedlset-empty-huge-index, in main: Rebase lset-empty-huge-index to main. Fix 13d3c0d764: lset on an empty list accepted a huge index as end+1. In the special case for empty lists, accept the intrunk, in main, 9.0: Fix 13d3c0d764: lset on empty list is allowed when index argument is largecore-9-0-branch, in main, 9.0: Fix 13d3c0d764: lset on empty list is allowed when index argument is largeREPRODUCED (main, 9.0; 8.6 rejects such indices as "bad index", so not affected)
lset L 0x7fffffffffffffff X (and 0x8000000000000000, and nested lset L 0x7fff... 0 X) succeeds; 0x7ffffffffffffffe is rejected
end+2 and 0x7ffffffffffffffe would probably also be accepted (WIDE_MAX-1 clamps to TCL_SIZE_MAX); not tested.
6f22c7a1fc.patch: VERIFIED
../configure --with-tcl=~/tcltk/9.0/lib --prefix=~/tcltk/8.6 -> checking for Tcl public headers... ~/tcltk/8.6/include (8.6 headers for a 9.0 build); without --prefix -> 9.0/include
--- a/tcl.m4 git-style diff (needs -p1); applied cleanly and re-saved as a fossil diff (-p0). 9 changed lines
--prefix=~/tcltk/8.6 -> ~/tcltk/9.0/include, and Thread builds (libtcl9thread3.0.7.so); without --prefix still 9.0/include
REPRODUCED (tclconfig trunk 2026-08-20) — not MinGW-specific: any extension configured with a --prefix (or a config.site setting prefix) that contains another Tcl's tcl.h picks that header over the one of --with-tcl
configure --with-tcl=~/tcltk/9.0/lib --prefix=~/tcltk/8.6 → "Tcl public headers... ~/tcltk/8.6/include" (8.6 headers with 9.0 stubs); without --prefix → 9.0/include
Status now: Open
52fd769456.patch: VERIFIED
taskset -c 5 tcltest cmdMZ.test -match cmdMZ-6.6 with 12 own busy loops pinned to the same core -> FAILED 3/3, {1 0 1 0 1 0 1 1 1} {184.8 µs/# 412 # 5411 #/sec ...} {12858 µs/# 3 # 77.8 #/sec ...}, the same three checks that fail in the ticket
REPRODUCED (main, 9.0, 8.6: the absolute thresholds are unchanged; not reproducible on this fast machine, judged from the test code and the reporter's numbers)
size_t numNewElems code, by reading; 8.6 has no INST_LREPLACE4)Status now: Closed (Duplicate)
176de86b3b.patch: VERIFIED
-fsanitize=pointer-overflow (work-a6/ubcl), tcltest r176.tcl (proc p {} {linsert {} 0 a b}; p) -> tclExecute.c:5529:21: runtime error: addition of unsigned offset to 0x... overflowed to 0x...; linsert.test shows the same report
REPRODUCED (main; 9.0 has the same size_t numNewElems code, by reading; 8.6 has no INST_LREPLACE4)
-fsanitize=pointer-overflow: linsert.test/lreplace.test report tclExecute.c:5529:21: runtime error: addition of unsigned offset ... overflowed. gcc's pointer-overflow check does not flag it
size_t numNewElems, so OBJ_AT_DEPTH(numNewElems - 1) = tosPtr[-(size_t)k] adds a huge unsigned offset when numNewElems ≥ 2 (and wraps when it is 0)
REPRODUCED (main, 9.0, 8.7b1, 8.6, 8.5). The behaviour follows from the documented design (NOT-A-BUG, doc clarification at most).
can not find channel named "stdout".
puts registers stdout in the parent, so close stdout in the child only drops the child's reference. The thread-level channel stays open, the stdout slot is not emptied, and Tcl_CreateChannel makes the new file an ordinary fileN. Without the parent's puts the child holds the last reference, the slot is emptied, and the new channel becomes stdout (StdChannels.3, "Re-initialization"), but then for every interp in the thread, the parent included.
close stdout in a child only unregisters it there while the parent still holds it, so the slot is not empty and the next opened channel does not become stdout (see StdChannels.3, "Re-initialization of Tcl standard channels"). To redirect a child's output, give the child its own channel (e.g. open it in the child and use interp alias/a puts wrapper), or close stdout in all interps of the thread first. Propose closing as Works as designed, or turning this into a doc clarification.
3f90d66af9.patch: VERIFIED
tr.tcl pre) it fires after the first; behaviour unchanged on the tip, trace.n silent about it
pre case contradicts (8 changed lines now)
groff -man -Tutf8 doc/trace.n renders the paragraph correctly
REPRODUCED (main, 9.0, 8.6)
iPtr->tracePtr || (cmdPtr->flags & CMD_HAS_EXEC_TRACES) at the time the command starts; TEOV_RunLeaveTraces then re-checks the current trace list. Scheduling the callback for every command would cost every command dispatch.
147b28d043.patch: VERIFIED
tclsh91 wfi.tcl with busy.exe (work-win5/gui/busy.c rebuilt in scratch: a /subsystem:windows child that is busy for 3 s) -> exec busy.exe & returned after 3177 ms, open |busy.exe after 3159 ms
REPRODUCED (main, 8.6)
after 3000 before the event loop, times exec &).
exec busy.exe & returns after 3065 ms (9.1b1) / 2958 ms (8.6.18), open |busy.exe after 2676 / 2954 ms.
Status now: Open
eval-cwd-deleted, not merged: Fix 4d3f213029 for the case where [pwd] already failed after the current directory was deleted: TclFSCwdPointerEquals() compared the path with the NULL cachedREPRODUCED (main, 9.0; 8.6 only with tclvfs, not tested) — the branch fixes the reporter-like case but NOT a second crash
file exists .: main 2026-10-22 and 9.0.5 crash (SIGSEGV / "alloc: invalid block" panic), 8.6.18 OK. Branch eval-cwd-deleted tip 58b479ca8a: the variant without an earlier [pwd] is fixed (source.test 24/0 failed), but this still crashes:
set sub [file join [pwd] sub]; file mkdir $sub; cd $sub; set x [pwd]; file delete $sub; set r [catch {pwd}]; puts [file exists .]
(SIGSEGV in TclFSCwdPointerEquals tclIOUtil.c:534 ← Tcl_FSGetNormalizedPath tclPathObj.c:1844 ← TclEvalEx). The ticket's exact script (uncaught [pwd]) just errors on main/branch.
goto error before parsing when the script path cannot be normalized (fixed in the branch); (2) generic/tclIOUtil.c TclFSCwdPointerEquals: after a failed [pwd] the cached cwd is NULL, and it is passed to TclGetStringFromObj() when the script path still caches the old cwd
Status now: Open
tcltest-dash-constraints, in main: Fix 9f4feaaaa1: a "-" between name characters is part of a constraint name, not a subtraction, so -constraints bug-1234 works.trunk, in main, 9.0: Many tcltest improvements, 773924ffff, 9f4feaaaa1, 811659ffff, 572400ffff, 8413e79232 and 1528500ffftrunk, in main, 9.0: Revert change for 9f4feaaaa1, so this one can be decided upon separatelytcltest-dash-constraints, not merged: Fix 9f4feaaaa1: a "-" between name characters is part of a constraint name, not a subtractionREPRODUCED (main, 9.0, 8.6) — partly fixed: the stray output and the missing skip table were fixed by 98f03d1dc3 (bug 0aaeb9c380, 2023-09-22, so since 8.6.14/9.0.0). Still broken: -constraints bug-0306a5563 on the command line does not enable the test, because the name is still taken as the expression bug - 0306a5563.
[.:_a-zA-Z0-9 ws] turns -constraints into an expression, and the regsub [.\w]+ splits names at "-".
bug-1, a-b || c and !a-b work. Side effect: a-b no longer means subtraction (which makes no sense for booleans). No tests in tests/*.test use "-" in constraint expressions; tcltest.test and cmdAH.test pass. It is a small behaviour change; dgp suggested a tcltest version bump for it.
a - b, so -constraints bug-0306a5563 on the command line has no effect. Proposed fix: a "-" between name characters is taken as part of the name; test tcltest-28.1.
d6d8509933.patch: VERIFIED+TEST-ADDED
testbignumobj fromdouble (below) and no fix, testbignumobj fromdouble 1 $nan succeeds without error (frexp/ldexp on NaN)
testbignumobj fromdouble 1 $nan -> error floating point value is Not a Number, errorcode TCL VALUE DOUBLE NAN; Inf -> integer value too large to represent; 1e20 -> 100000000000000000000; tests obj, expr, expr-old, lseq: 2859 total, 2815 passed, 44 skipped, 0 failed
testbignumobj fromdouble varIndex double (generic/tclTestObj.c, uses Tcl_GetNumberFromObj so NaN passes through) and obj-34.3, fails before (no error for NaN) / passes after
REPRODUCED (main, 9.0, 8.6) by code reading; not reachable from script
expr {entier($nan)} etc. give "floating point value is Not a Number" on main and 8.6.18. Only extensions calling the public API can pass NaN.
file mkdir in a loop leave the process umask permanently at 0000 (3/3…Status now: Open
mkdir-no-umask-call, not merged: Fix cd609219f5 and 623585ffff: [file mkdir] read the umask with umask(0) + umask(mode), which threads could leave at 0 for the whole process, and masked theREPRODUCED (main, 9.0, 8.6) — and worse than "temporary": 8 threads running file mkdir in a loop leave the process umask permanently at 0000 (3/3 runs on main, 9.0 and 8.6; /proc/self/status shows the umask 0 thousands of times while the threads run). Also, with umask 0777, file mkdir makes a mode 000 directory, although the docs promise that u+rwx is always added.
umask(0); umask(mode), which is process-wide and races between threads. It then passes (0777 & ~umask) | u+rwx to mkdir(), which applies the umask again and so drops the u+rwx it was meant to force.
mkdir(path, 0777) lets the kernel apply the umask, and then a chmod adds u+rwx only if the umask removed any of these bits. The umask is never touched. 5.3 (threads, then check that a new file is 0644 under umask 022) fails without the fix (666) and 5.2 fails too (umask 0777 → 0); unixFCmd.test (5×) and fCmd.test pass.
file mkdir, the process umask ends up permanently at 0 (main, 9.0, 8.6). Proposed fix: let mkdir() apply the umask and add u+rwx with chmod() afterwards, never calling umask(); tests unixFCmd-5.2/5.3.
90058f0f3a.patch: VERIFIED
REPRODUCED (main, 9.0, 8.6). The comment is still there and still wrong; checked by reading the code (CANNOT-TEST at runtime: macOS, but the change is comment-only).
c71eea294d.patch: VERIFIED
tclsh rc71.tcl 10000 50000 100000 (reporter's script, debug build) -> delete 43 ms / 1.67 s / 3.58 s (quadratic)
REPRODUCED (main, 9.0, 8.6)
REPRODUCED (core.tcl-lang.org/tcl report rn=7, from the local clone's reportfmt)
WHERE ($login <> '' || status <> 'Deleted') uses ||, which is string concatenation in SQL, not OR, and binds tighter than <>. It parses as ($login <> status) <> 'Deleted', which is NULL (no rows) when $login is NULL (logged out) and always true when logged in. Tk's report rn=7 uses plain WHERE status <> 'Deleted'.
WHERE (coalesce($login,'') <> '' OR status <> 'Deleted'), or just WHERE status <> 'Deleted' as in Tk.
|| (string concatenation in SQL) instead of OR, so it is NULL for anonymous users and lists nothing. A ticket admin needs to change it to WHERE status <> 'Deleted' (as in Tk) or (coalesce($login,'') <> '' OR status <> 'Deleted').
a63a35d5ae.patch: VERIFIED
if test "uname -s" = "Darwin", about 60 lines away from the TCL_BUILD_LIB_SPEC it explains
~/tcltk/autoconf-2.73/bin/autoconf -f on the patched configure.ac gives a byte-identical configure to the patched one (and on the unpatched tip it reproduces the checked-in configure, 0 diff lines)
REPRODUCED (main, 9.0, 8.6) — comment-only issue; the orphaned "AIX remembers this path" note sits above the Darwin block (main unix/configure.ac:736, 8.6 configure.in:786); Tk's unix/configure.ac:1338 has the same orphan
-L\pwd\`` in TCL_BUILD_LIB_SPEC; code inserted between them over time (Darwin/framework blocks)
-L\pwd\`` in TCL_BUILD_LIB_SPEC. Proposed fix: move it next to that assignment in the non-framework branch (comment only; Tk's unix/configure.ac has the same orphan).
Status now: Open
gets-long-lines, not merged: Fix 69b4f7eb37: [gets] of a line longer than 2 GB panicked in Tcl_SetObjLength, returned a negative length with -translation binary, or crashed when a \r endeREPRODUCED (main, 9.0, 8.6)
dd bs=4096 count=N if=/dev/zero | tclsh x.tcl with gets stdin. 1 GB line: fine on both (8 s / 5 s, no slow linear growth on this 62 GB box). 2.3 GB line: main panics "Tcl_SetObjLength: length requested is negative: -2147483647" (SIGILL), 8.6 panics similarly (expected 2 GB limit there).
int offset, length, spaceLeft, GetsState.totalChars is int and copiedTotal in Tcl_GetsObj/TclGetsObjBinary is int, so on Tcl 9 offset + offset overflows (UB; Tcl_AttemptSetObjLength rejects the negative value, then Tcl_SetObjLength panics). So 9.x cannot gets a line > 2 GB although Tcl_Size would allow it. The slow linear growth only appears when the doubling allocation fails (low memory); not addressed.
lsearch -bisect -exact {a c e} d gives -1 while -exact -bisect gives 1)a5a99f0aef.patch: VERIFIED
tclsh ra5a.tcl -> -bisect -exact ... gives -1, -exact -bisect ... gives 0
0; tests lsearch (165+1, 0 failed), cmdIL: 0 failed
REPRODUCED (main, 9.0, 8.6; 8.6 has no -stride, but lsearch -bisect -exact {a c e} d gives -1 while -exact -bisect gives 1)
if (bisect && mode == EXACT) mode = SORTED;. -glob/-regexp after -bisect still win by the "last matching style" rule (unchanged). The test fails without the fix, and lsearch.test passes.
057b7dbd3d.patch: VERIFIED
namespace eval ::y {proc p {x} {expr {$x <= -1}}; namespace export p; namespace ensemble create}; catch {y p} m; puts $m -> wrong # args: should be "::y::p x" (same on 8.6 tip 326e1bf923)
wrong # args: should be "y p x"; tests compExpr, compExpr-old, expr, expr-old, namespace, oo, proc: 3637 total, 3586 passed, 51 skipped, 0 failed
REPRODUCED (main, 9.0, 8.6)
should be "::x::point validate x"; reduced repro without TclOO: namespace eval ::y {proc p {x} {expr {$x <= -1}}; namespace export p; namespace ensemble create}; y p gives should be "::y::p x" instead of "y p x" (only on the first call, when the body gets compiled)
expr {$x <= -1} shows it on the first call. Proposed fix: ExecConstantExprTree saves/restores iPtr->ensembleRewrite around executing the folded constant (patch with test compExpr-9.1).
e68d7234df.patch: VERIFIED
tcltest e68d.tcl) -> cannot yield: C stack busy
0ok. A semantics script (e68d2.tcl: result format, errorInfo of error inside time and of a proc using return -code error -errorcode X, break/continue codes 3/4, return from a proc inside time, count 0 and -1, wrong # args) gives byte-identical output before and after. Tests cmdMZ.test 98 passed/1 skipped/0 failed, coroutine.test 81/1/0, nre.test 29/0/0, basic.test 118/29/0, tailcall.test 39/4/0, interp.test 384/7/0, safe.test 153/2/0
REPRODUCED (main, 9.0, 8.6) -- RFE-like (time was never NRE-enabled)
namespace eval itcl {set some variable}; package require itcl aborts with "Itcl: …ba7491332a.patch: VERIFIED (the ticket's second point, locating itcl.tcl, is an enhancement and not covered)
tcltest ba74.tcl (safe child creates ::itcl, then load libtcl9itcl4.3.8.so Itcl $child) -> Itcl: cannot create namespace: "::itcl" and the process aborts (exit 132)
1 {can't create namespace "::itcl": already exists}, same in the main interp; after namespace delete itcl a second load works and itcl::class is usable (so the failed init leaves nothing behind). The itcl suite make test: 728 passed/66 skipped/0 failed (794)
Test file error: Itcl: cannot create namespace) / passes after
REPRODUCED (Itcl trunk 4.3.8 652875dd3d, built against main): namespace eval itcl {set some variable}; package require itcl aborts with "Itcl: cannot create namespace: "::itcl"". The same happens through Itcl_SafeInit (load lib Itcl $safeInterp after the safe interp created ::itcl). The code is unchanged since the 4.2.1 report, so 8.6 + Itcl 4.2/4.3 is affected the same way.
can't create namespace "::itcl": already exists. The full itcl test suite passes (794 tests). Not changed: the second panic (::itcl::internal::dicts), which cannot happen right after ::itcl was freshly created. Also not addressed: the ticket's second point (locating itcl.tcl via pkgIndex/ITCL_LIBRARY), which is an enhancement.
after 0 error foo and after 10 set done both fire in the same timer pass if the pro…Status now: Closed (Fixed)
interp-36.7-race, in main: Fix 3b00b2198d: interp-36.7 waits for the bgerror handler instead of a fixed 10 ms timer, which lost the race on a loaded host.trunk, in main, 9.0, 8.6: Fix 3b00b2198d: async test suite calls are missing cleanupcore-9-0-branch, in main, 9.0: Fix 3b00b2198d: async test suite calls are missing cleanupcore-8-6-branch, in main, 9.0, 8.6: Fix 3b00b2198d: async test suite calls are missing cleanupREPRODUCED (main, 8.6) for interp-36.7: a race in the test. after 0 error foo and after 10 set done both fire in the same timer pass if the process is held up for more than 10 ms, and then vwait returns before the bgerror idle handler has run. Simulated with a 20 ms sleep before the vwait: result "untouched" on main and 8.6. socket-14.12: NOT-REPRODUCED (10 runs of socket-14.*; randport already uses a fresh port from socket -server {} 0, which has been the case since 2017). The yocto patch URL in the ticket can't be checked offline.
result, which the bgerror handler sets, with a 10 s timeout. interp.test passes.
unset env(HOME), interp create sets HOME again in parent and child6235d23a76.patch: VERIFIED
tclsh91 6235d23a76.tcl (win/) -> after unset+interp create: parent=1 child=1, VERDICT: REPRODUCED
parent=0 child=0, NOT-REPRODUCED; env.test 33 total, 32 passed, 1 skipped, 0 failed
REPRODUCED (main, 9.0, 8.6): after unset env(HOME), interp create sets HOME again in parent and child
unset env(HOME), interp create sets HOME again in parent and child
duplicate of 2b874804b5: REPRODUCED (8.6 only, run 1); NOT-REPRODUCED (main run 1, 9.0 now)
nmake ... shell OPTS=static[,msvcrt] %1. With install, install-binaries copies the static dde/registry lib (tcldde14sx.lib in 8.6), but target shell never builds it; only dlls/release do. The reporter's workaround (build everything with OPTS=static,nomsvcrt, then install) avoids this.
shell dlls) and repro win/2b874804b5.cmd
shell, so install cannot find the static dde library. Proposed fix (there): build shell dlls in that pass.
nmake shell OPTS=static then nmake install OPTS=static (work-win3/r2b-90.cmd) succeeds and installs tcl9dde14s.lib and tcl9registry13s.lib, because 9.x static builds always link the static packages. Run 1 (result-win-1.md): main also succeeds; 8.6 fails (now first on zlib1.dll), fixed by building shell dlls. (The static artifacts were removed from tcl-wt90 afterwards and its shared tclConfig.sh/tcl.nmake regenerated.)
shell, while install copies the static dde/registry libs and zlib1.dll that only dlls builds
install after shell works (tested on 9.0 and main). Proposed fix for 8.6 there: build shell dlls in the static pass.
REPRODUCED (main, 9.0, 8.6). The behaviour is unchanged, but this is an RFE, not a bug.
set a "x"y gives "extra characters after close-quote". The context is already in errorInfo ("while executing \"puts \"abc\"d\""), which stops at the offending character.
Status now: Open
system-encoding-keep-retired, not merged: Fix f2ff05fc84: a conversion with the system encoding could crash if another thread changed the system encoding. Keep former system encodings until finalizatisebres-encoding-perf-branch, not merged: increase cache size (4 now, can be configurable later), free cache in lock, more performance test-casesREPRODUCED (main, 9.0) — crash; 8.6 has the same code (not run: no Thread 2.8 build)
file exists <600 KB path> (Tcl_UtfToExternalDStringEx with NULL encoding), main thread loops encoding system over koi8-r/koi8-u/cp1251/cp1252/iso8859-5/macCyrillic for 4 s. SEGV in 40/40 runs on 9.0.5, 10/10 on unpatched main, 3/3 under ASan (TableFromUtfProc via Tcl_UtfToExternalDStringEx/CheckAccess). With the prototype: 40/40 clean, 5/5 clean under ASan.
systemEncoding without taking a reference when encoding is NULL, so Tcl_SetSystemEncoding in another thread can free it mid-conversion. Second bug found on the way: Tcl_GetEncoding(NULL, NULL) increments the refCount of the system encoding under the mutex but then returns systemEncoding re-read *after* unlocking, so it can return a different, unreferenced encoding (same in 9.0 and 8.6).
file exists on a long path while another loops encoding system crashes every run. Also Tcl_GetEncoding(NULL, NULL) returns systemEncoding re-read after unlocking the mutex. Proposed fix: take a reference to the system encoding for NULL-encoding conversions and return the referenced pointer, test thread-9.1.
REPRODUCED (main, 9.0, 8.6)
unset env(MYVAR) fails with "no such element in array"; unset -nocomplain env(MYVAR) silently leaves the variable in the environment (a later info exists env(MYVAR) is 1).
info exists, $env(X)) and array traces (array unset, array names) do resync, which is why array unset env MYVAR works.
info exists env(X) (or array unset env X) before unset.
REPRODUCED (main, 9.0, 8.6 — same tool code)
--srcdir=<wt-a6> (no tk beside it): it silently printed "using Tk source directory ../tkmain", an unrelated Tk tree two levels up.
tcltkdir, --srcdir); findversion globs $top and $top/.. for any tk.h matching the version and takes the first hit. Tk's win/makefile.vc htmlhelp passes no --srcdir at all; unix make html passes --srcdir=$(TOP_DIR)/... There is no option to name the Tk tree.
--tkdir=/--tcldir= option plus reworking all $tcltkdir/$tkdir path joins, and a matching change in Tk's makefile.vc/Makefile.in — two repos, more than a small fix)
--srcdir and takes the first Tk below it or its parent, without telling the user. Fix needs a separate --tkdir option, passed by Tk's makefile.vc/Makefile.in.
77527e2f99.patch: VERIFIED
test x-1 -body {interp create c; c eval {puts hello-child}; interp delete c} -output hello-child -> FAILED, "Output was: (empty)", and hello-child goes straight to stdout.
REPRODUCED (main, 9.0, 8.6) — by design; limitation not documented explicitly
puts / puts stderr inside a test with -output/-errorOutput fails on main build, 9.0.5, 8.6.18.
tcltest::Replace::puts into :: of the test interp only; child interps keep the real puts. tcltest.n already says capture "depends on usage of puts" in the test interp. Capturing everything would need a channel transform on stdout/stderr (a behaviour redesign).
puts in the interpreter running the test only, so child interpreters are not covered; this is the documented "pure Tcl puts" limitation. Proposed doc clarification: say so explicitly in tcltest.n. A workaround is to alias puts in the child to the parent's: interp alias $child puts {} puts.
REPRODUCED (main) — effectively an RFE/portability cleanup
CFLAGS=-DTCL_WIDE_INT_TYPE=__int128 (gcc, Linux x86-64): the build fails already in generic/tclCmdMZ.c:4121 (Tcl_TimeObjCmd passes long long * to TclGetWideIntFromObj, -Wincompatible-pointer-types is an error in gcc 15); configure also still defines TCL_WIDE_INT_IS_LONG=1 regardless. The test suite was never reached.
Status now: Open
configure-64bit-default, not merged: Fix 1c4ba6fa40: on platforms whose compiler has no -m64 flag (e.g. Linux aarch64), --enable-64bit gave "64bit support being disabled" and TCL_CFG_DO64BIT was REPRODUCED (main, 9.0, 8.6 by code; emulated on x86_64 with a CC wrapper that rejects -m64, as aarch64 gcc does)
tcl::pkgconfig get 64bit = 0. Note x86_64 without --enable-64bit also reports 0, so that key means "--enable-64bit was given", not "64-bit build".
tcl::pkgconfig get 64bit is affected. Proposed fix: when -m64 is not accepted, accept the default mode if sizeof(void*)==8 (unix/tcl.m4).
Status now: Closed (Wont Fix)
pkgs-respect-disable-shared, not merged: Fix 9cdb0d5858 and 8228750a0a: with --disable-shared the bundled packages were still built as shared libraries, since --enable-shared came after the argumenpkgs-shared-make-var, not merged: Fix 9cdb0d5858 and 8228750a0a: the bundled packages were always built as shared libraries, even with --disable-shared. Keep that default, so that [package rmake *packages targets in Tcl's unix Makefile is to make installable builds of the bundled collection of packages that can then successfully be [package require]d or [load]ed into the Tcl built by the same Makefile. Forcing the --enable-shared build is intentional to achieve this aim. Back when it made a difference, forcing --enable-threads had similar justification. I believe in Tcl 9 we can …REPRODUCED (main, 9.0, 8.6 — by code and a dummy pkgs/ package that prints its configure args)
configure --disable-shared; make configure-packages passes ... --disable-shared ... --enable-shared to the package configure, so packages are always shared (8.6 also appends --enable-threads)
--enable-shared after $(PKG_CFG_ARGS) (which carries the top-level ac_configure_args). Possibly intentional: shared stub-enabled packages also work with a static tclsh and are loadable via pkgIndex, while static package libs are not loadable by [package require] unless linked into the shell.
--enable-shared $(PKG_CFG_ARGS) --libdir=$(PACKAGE_DIR) — keeps --libdir last (the reporter's version would let a user --libdir override PACKAGE_DIR). For 8.6 the same reorder with --enable-threads.
b1add8f61f.patch: VERIFIED
TCL_LIBRARY=<wt>/library ./tcltest ../tests/http11.test -constraints knownBug -match 'http11-2.4.2*' -> coroutine "::http::dechunksock6085a6cdbd90" is already running, result timeout {HTTP/1.1 200 OK} {crc32 mismatch: ...} ..., FAILED for ThreadLevel 0 and 1
REPRODUCED (main, 9.0, 8.6)
-constraints knownBug on main (own build), 9.0 tip and 8.6 tip tcltest: all print coroutine "::http::dechunksock..." is already running and the test fails with timeout/crc mismatch.
chan event readable binding while it calls the CopyChunk callback; a -progress callback that enters the event loop resumes the running coroutine. Not really a stacked-channel problem: the same fix as for c2dc1da315 works (unbind during the callback, rebind afterwards).
Status now: Open
alloc-fork-deadlock, not merged: Fix be38540b32: a child process created by fork() could deadlock on its first allocation, if another thread of the parent held a lock of the threaded allocatoREPRODUCED (main); fixed by Serhiy's branch
66c2e8c974.patch: VERIFIED
interp create foo; foo eval {set a abc}; interp create ::foo -> succeeds (::foo), then ::foo eval {set a} -> can't read "a": no such variable, interp children -> ::foo (the first interp was silently replaced); interp-2.14/2.15 fail
REPRODUCED (main, 9.0, 8.6)
interp create foo; interp create ::foo succeeds, the new interp's command replaces ::foo and silently deletes the first interp.
interp create ::foo now reports "already exists", and interp exists {::foo ::bar} works. Side effect: interp children lists "foo" for an interp created as "::foo". interp.test, safe*.test, basic.test pass. Does not canonicalise inner "ns::::x" forms.
3d768414de.patch: VERIFIED
x to a file, then thread::send -async $t {set x 1} ::done resp. -command, vwait, interp delete; file size shows whether the interp was really deleted and its channel flushed) with threadCmd.c unpatched -> 0 0
1 1; full Thread suite 128 passed/16 skipped/0 failed (144)
REPRODUCED (main + Thread 3.0.7, 9.0.5 + Thread 3.0.7, 8.6.18 + Thread 2.8.13)
package require Thread, thread::create/send/release, tsv, mutex, transfer and tpool all let the interp be deleted. thread::send -async $t script ::var and thread::send -command $t script cmd leave it alive: the delProc never runs and the channel is never flushed.
thread::send -async with a result variable (or -command) Tcl_Preserve()s the caller's interp, and the routed-back callback never releases it, so the interp is never deleted. Proposed fix: release it in ThreadEventProc after running ThreadClbkSetVar/ThreadClbkCommand; test thread-bug-3d768414de. (Belongs to the Thread package.)
ba6ab5eb7b.patch: VERIFIED
tclsh rba6.tcl (proc gen {} {yield; return -code break}; coroutine t2 gen; catch {while 1 t2}), as a file and on stdin -> 1:invoked "break" outside of a loop
0: both ways; tests coroutine (85/0 failed), nre, basic, proc, apply, interp, oo, tailcall: 0 failed. Extra check rba6e.tcl (after-scripts with break run from vwait inside a coroutine, uplevel #0 {break}/{return -code error}/{eval continue} inside a coroutine and at top): identical output patched and unpatched
REPRODUCED (main, 9.0, 8.6)
return -code break gives "invoked "break" outside of a loop"; created inside apply it works. The tailcall break variant from the comment works in all three now.
iPtr->numLevels--, so the body of a coroutine created at level 0 runs at level 1 and its break/continue is turned into an error inside the coroutine instead of being returned to the resumer.
iPtr->execEnvPtr->corPtr != NULL (the resumer still gets it, so plain t at top level still errors, test 7.22). Tests run in a subprocess (exec [interpreter]) because interp eval allows exceptions; added the exec constraint to coroutine.test. 7.20/7.21 fail on unpatched 9.0, pass patched; coroutine, nre, basic, proc, apply, interp, oo tests pass. Side effect: errorInfo for 7.22 no longer has the "gen" invoked from within frame.
REPRODUCED (main, 9.0, 8.6)
f45d0dc1a7.patch: VERIFIED
REPRODUCED (main, 9.0, 8.6) — still no caller in generic/ and no test calls it: the utf-8.* tests labelled "Tcl_UniCharAtIndex" use [string index], which never reaches it
testunicharatindex in tclTest.c, tests utf-8.13–utf-8.17: index 0, index > 0, negative index, emoji, end of string); utf.test passes
Status now: Closed (Fixed)
oo-destructor-deleted-namespace-90, in main, 9.0: Backport of Fix 28de60cef5: reading an object variable from code compiled at run time (e.g. [eval]) in a destructor...core-9-0-branch, in main, 9.0: Fix 28de60cef5 and b4637c4312trunk, in main: Fix 28de60cef5 and b4637c4312oo-destructor-deleted-namespace, in main, 9.0: Fix b4637c4312: [upvar] to an object variable after the object was destroyed in its method crashed. Same cause as 28de60cef5; add a test.NULL check. Ought to be fixed now (9.0 onwards).REPRODUCED (main, 9.0, 8.6); not in 8.6.0; fixed by Serhiy's branch
rename [self] {}; eval {set thing} in the destructor): SIGSEGV on main, 9.0.5, 8.6.18; 8.6.0 prints the value. Branch oo-destructor-deleted-namespace (de6527681f): reporter's script runs to the end (prints thing: something, since the destructor frame's compiled local is found by name), oo-3.13 gives the "no such variable" error; oo.test, ooNext2.test, ooProp.test pass.
rename [self] {} the object's namespace is deleted (oPtr->namespacePtr == NULL), and the object variable resolver for code compiled at run time (eval/tsv::lock/uplevel bodies) dereferences it.
Status now: Pending (Fixed)
REPRODUCED (main, 9.0, 8.6) — Pending/Fixed is wrong: the fix was never merged
catch {error ...})/Restore (the branch's testevalobjv -safe test result-1.9.1) on main build, 9.0.5, 8.6.18: all print {UNEXPERR INVISIBLE} {ERROR in safe block} instead of the saved errorCode/errorInfo.
Status now: Pending (Fixed)
REPRODUCED (main, 9.0, 8.6 on Windows: crash)
acceptProc/interp in the AcceptCallback for the creating interp; nothing re-targets it on thread::transfer. sebres' fix 455c680c3a on branch bug-75d525d37c-sf-chan-transfer (2020-05-29, adds statePtr->interp) was never merged into any release branch, so the "Pending/Fixed" status is not backed by a merged change.
thread::transfer of a listening socket, the first connection runs the ORIGINAL interp's accept proc in the receiving thread. 9.0.5 and 8.6.18: child dies with SIGSEGV (0xC0000005); 9.1b1 Release: "can not find channel named stdout" from the main interp's accept proc, then trace trap; 9.1 memdebug Debug build: Tcl_DbIsShared: Tcl_Obj allocated in another thread panic. 1 run each, deterministic.
Status now: Closed (Fixed)
tcltest-no-exit-when-sourced, in main: Fix 8413e79232: cleanupTests exits under Tk only when the test file is the main script, not in an application that sources it.trunk, in main, 9.0: Many tcltest improvements, 773924ffff, 9f4feaaaa1, 811659ffff, 572400ffff, 8413e79232 and 1528500fffcore-9-0-branch, in main, 9.0: Many tcltest improvements, 773924ffff, 811659ffff, 572400ffff, 8413e79232 and 1528500fffREPRODUCED (main, 9.0, 8.6) — intentional, undocumented
::tk_version (what Tk does) then calls tcltest::cleanupTests: process exits before the next line on main build, 9.0.5, 8.6.18.
cleanupTests (non-all-file branch) does exit when ::tk_version exists and the interactive constraint is false, so wish foo.test terminates. The code comment itself calls it wrong. Removing it changes how Tk test files run standalone under wish.
[info script] is $::argv0, or make it a configurable option, and document it in tcltest.n)
cleanupTests calls exit when Tk is loaded and tcl_interactive is 0, so that wish foo.test terminates. Removing it would break running Tk test files standalone; one option is to exit only when the test file is the main script, and to document the behaviour.
934e6eb9cf.patch: VERIFIED
unknown subcommand "x": namespace ::ns1 does not export any commands in all three cases
one two three; from a proc caller continued: a b (the handler's tailcall does not replace the calling proc); in a coroutine it works too. Tests namespace (313/0 failed), tailcall, nre, oo, coroutine, apply: 0 failed
REPRODUCED (main, 9.0, 8.6, 8.6.0)
7cc2239087.patch: VERIFIED (the [info body] part of the ticket is language behaviour, rule [9], and is not changed)
tcltest 7cc2.tcl) -> errorInfo (procedure "foo" line 3) for expr 1/0 on body line 5
(procedure "foo" line 5); tests error.test 321 passed/8 skipped/0 failed, info.test 285/3/0, proc.test 37/1/0, basic.test 118/29/0, execute.test 157/0/0, compile.test 160/11/0, apply.test 41/3/0, trace.test 286/4/0, namespace.test 312/2/0, oo.test 373/16/0, coroutine.test 81/1/0, nre.test 29/0/0, tailcall.test 39/4/0
REPRODUCED (main, 9.0, 8.6, 8.5)
(procedure "foo" line 3) for an error on body line 5, while info frame already reports the right line. info body returning the body with backslash-newlines replaced is language behaviour (rule [9] applies inside braces too), not a bug.
f7afd3dbef.patch: VERIFIED (the side effect on other lookupNsPtr users, i.e. ensemble -map, oo forward and coroutine, noted in the triage, stays a behaviour change for a maintainer to accept)
tcltest f7af.tcl) -> namespace eval ns1 nosuchroutine -> hello, but apply {{} {tailcall nosuchroutine} ns1} -> invalid command name "nosuchroutine"
hello; tests tailcall.test 40 passed/4 skipped/0 failed, namespace.test 312/2/0, namespace-old.test 126/0/0, nre.test 29/0/0, basic.test 118/29/0, unknown.test 7/0/0, oo.test 373/16/0, ooNext2.test 57/5/0, coroutine.test 81/1/0, proc.test 37/1/0, apply.test 41/3/0, interp.test 384/7/0, safe.test 153/2/0
REPRODUCED (main, 9.0, 8.6)
apply {{} {tailcall nosuchroutine} ns1} gives "invalid command name" while the same call without tailcall uses ns1's handler.
Status now: Open
imported-cmd-step-traces, not merged: Fix fc88534d38: step and interpreter traces saw an imported command twice, because InvokeImportedNRCmd() re-dispatched to the real command through TclNREvalObREPRODUCED (main, 9.0, 8.6); works in 8.5.19 and 8.4.20 (regression from the NRE rewrite in 8.6)
REPRODUCED (main with select notifier, 8.6, 8.5); not on Linux main/9.0 default builds (epoll)
ulimit -n 4096): 8.6.18 and 8.5.19 abort with "* bit out of range 0 - FD_SETSIZE on fd_set *"; main built with ac_cv_header_sys_epoll_h=no (select notifier, -O2) aborts the same way; main and 9.0.5 default (epoll) builds handle 1201 channels fine.
fd < FD_SETSIZE. sebres' branch bug-c6897e6e6a (2019, last merge-mark 2024-05-22) only rejects such sockets in the socket layer and was never merged.
0c7ddf8536.patch: VERIFIED (behaviour change still needs a core decision, as the triage said)
tcltest tests/trace.test -match 'trace-bug-0c7ddf8536*' -> -1 FAILED: {::foo {} read} 1 two {::foo {} read} 1 two {::foo baz read} 1 two {::foo bar read} 1 two (array trace re-fires recursively, the reporter's case); -2 FAILED: {::foo bar read} {::foo baz read} {::foo baz read}
REPRODUCED (main, 9.0, 8.6, 8.4)
info exists ::foo and for other elements read inside the trace. Unchanged since at least 8.4.
!TclIsVarTraceActive(arrayPtr) test never matches for element accesses.
ab4307e01b.patch: VERIFIED
same: 1 on the main tip)
encoding system gb12345, read encoding dirs, switch back) on the 8.6 tip -> same: 0 now=#?home#?serhiy#?tcltk/tcl-triage#?wt#?a3#..., and later encoding convertto koi8-r -> unknown encoding "koi8-r"
same: 1 now=wt-a3-86/li..., koi8-r loads. Tests encoding, unixInit, cmdAH, env, fileName, main, basic: 0 failed
REPRODUCED (8.6); NOT-REPRODUCED on main, 9.0 and 8.7b1 (fixed as a side effect: zipfs initialisation sets the encoding search path through Tcl_SetEncodingSearchPath, which stores it with no encoding, so it is never re-converted)
encoding system gb12345; encoding system utf-8; encoding dirs on main build, 9.0.5 (installed and the tip build with a filesystem TCL_LIBRARY), 8.7b1: unchanged. 8.6.18: garbage with embedded NULs (#?home#?serhiy#?tcltk/8.6/lib/tc^@...), and later encoding loads fail ("unknown encoding").
REPRODUCED (main HTML generator)
</dl> wrapped in a new <dl><dd>, one level deeper than the rule's own text. groff renders them at the rule's body indent (doc/Tcl.n is correct: .RS / .TP list / .PP / .PP / .RE).
<dl><dd> instead of continuing at the enclosing .IP body level.
<dl><dd> level.
http-4.14 REPRODUCED (main on NetBSD 10.1, every run; 8.6 passes), proposed fix in branch http-test-bad-port (de7efe2cc2, ticket 5350f32153, not merged). cmdAH-24.20: NOT-REPRODUCED (main, 8.6 on NetBSD). Other parts (macOS, AIX) CANNOT-TEST.
HOST localhost (comment mentions http-4.14 name-resolution problems). cmdAH-24.20.1/2 (NetBSD) are now guarded by the filetime64bit constraint (file system 2038 check, fd91b0ca09). socket_inet-5.1/5.3 (Mojave) and AIX socket-14.* not checked; attachments are logs only.
$port+1 is the listener of the httpd started by the outer (non-ThreadLevel) run of http.test, still open, and the "bad" URL connects. With the de7efe2cc2 diff applied, http.test on main passes (154/0 failed). FreeBSD 15.1 (random ports) passes http.test on main/9.0/8.6.
set badurl //${::HOST}:[expr {$port+1}] assumes port+1 is free.
Status now: Closed (Duplicate)
pkgs-respect-disable-shared, not merged: Fix 9cdb0d5858 and 8228750a0a: with --disable-shared the bundled packages were still built as shared libraries, since --enable-shared came after the argumenpkgs-shared-make-var, not merged: Fix 9cdb0d5858 and 8228750a0a: the bundled packages were always built as shared libraries, even with --disable-shared. Keep that default, so that [package rREPRODUCED (main, 9.0, 8.6) — code unchanged, but the order looks intentional
configure-packages on main, 9.0, 8.6 (no build needed)
$(PKG_CFG_ARGS) --libdir=... --enable-shared (8.6 also --enable-threads), so the forced --enable-shared always wins over anything in PKG_CFG_ARGS. PKG_CFG_ARGS is Tcl's own $ac_configure_args plus the PKG_CFG_ARGS environment variable (unix/configure.ac:39), so simply moving it last (as requested) would also make a Tcl configured with --disable-shared build static bundled packages, which package require from pkgs/ cannot load (pkgIndex.tcl uses load on a shared lib). 9.0 has the same in both the pkgs8 and pkgs loops.
--enable-shared, keeping Tcl's own args before it; or tell users to build the static package outside the Tcl tree)
--enable-shared is forced on purpose because bundled packages are loaded from shared libraries; a static itcl is better built separately with its own configure. If wanted, only the user-supplied PKG_CFG_ARGS environment value could be placed after --enable-shared.
Status now: Open
compile-imported-cmd-redefined, not merged: Fix 7b51dbf6ca: compiled code calling an imported command kept the old compiled form after the original command was redefined or replaced, since the imported REPRODUCED (main, 9.0, 8.6, also 8.6.0)
push1 "" after redefinition) and sebres' tcl::dict::get variant on main (2026-10-22), 9.0.5, 8.6.18, 8.6.0; branch tip 866a927c0c: both variants call the new definition, namespace.test 319/0 failed, compile.test 171/0 failed
Status now: Closed (Duplicate)
env-stale-element, in main: Fix 3602289fff, 67fd4f973a and 845241ffff: after another interp unset an env variable, a read failed but left the old element, so [info exists ::env(X)] sREPRODUCED (main, 9.0, 8.6)
unset ::env(X) in one interp, the other interp's info exists ::env(X) returns 1 while reading fails.
env array defined; TclVarTraceExists (tclTrace.c) and the bytecode info exists ignore the trace error and see a defined element.
unset ::env(X) in a child for a name set by the parent but never read in the child gives "no such element in array" (the child's array is only synced on array traces).
info exists still sees it. Proposed fix: unset the stale element in the read trace; test env-12.0.
REPRODUCED (main, 9.0, 8.6) in part — the format/free-scan mismatch is gone in 9.0+; the rest is a design question
clock scan {10:00 GMT} -format {%H:%M %Z} -timezone :America/New_York -base 1556240400: 8.6 gives Apr 26 (date of base taken in the input zone), 9.0/main give Apr 25 like free scan (date of base taken in the -timezone zone). Format scan and free scan now agree (9.0 clock rewrite).
clock scan CET -base 100000000 -gmt 1 still keeps the base time of day in GMT and reads it as CET (99996400 = base − 1h) on all versions, while format scan gives midnight. This is the documented "no time given" difference between free and format scan, plus the open question which zone wins for the base parts. The fix proposed in the ticket (input zone wins) is not merged.
-timezone GMT+05 is POSIX TZ syntax (5 h west of UTC), so its opposite sign from +05 is correct, not a bug.
GMT+05 vs +05 is POSIX TZ sign convention and works as documented.
REPRODUCED (main, 9.0)
?ext.dll? (zips a DLL, loads it from zipfs in a child tclsh, checks %TEMP% for a new TCL* dir); verified on Linux (NOT-REPRODUCED there, as expected)
%TEMP%\TCLxxxxxxxx directory with the DLL copy remains. Thread 3.0.7 DLL on 9.1b1 and 9.0.5, tcl9dde14.dll on 9.0.5: left behind every time (the script deletes them afterwards). The registry/dde workaround 364bd985d6 covers only Tcl's own packages, not a DLL loaded from an application zip.
this day/this week/this month are syntax errors everywhere. 8.6: thiss day = now day = start of tomorrow, `l…REPRODUCED (main, 9.0, 8.6): this day/this week/this month are syntax errors everywhere. 8.6: thiss day = now day = start of tomorrow, last January = Dec 30 of the previous year. main/9.0: thiss day and now day are now syntax errors, last January fails with "invalid day".
{ "this", tSEC_UNIT, 0 }, but LookupWord strips the plural "s" first, so "this" never matches; next/last are tNEXT / tUNUMBER(-1) with different month semantics (sebres' comment).
last January now fails with "invalid day" instead of returning Dec 30. Either drop "this" from OtherTable and the docs, or define it.
b43efdfd61.patch: VERIFIED
tcltest b43e.tcl (reporter's script without fileutil: subdir chmod a-w, file delete -force $dir) -> error deleting ".../subdir/testfile": permission denied, dir still exists
0, exists: 0; tests fCmd.test 261 passed/45 skipped/0 failed, unixFCmd.test 30/19/0, fileSystem.test 141/21/0, cmdAH.test 16971/30/0. The default build uses FTS (HAVE_FTS=1), so I also built the opendir path (out-of-tree, tcl_cv_api_fts=no): the repro is fixed and fCmd.test 261/45/0 there too
REPRODUCED (main, 9.0, 8.6, 8.4)
error deleting ".../subdir/testfile": permission denied. A read-only top-level directory is deleted fine.
file delete; TraversalDelete does nothing for DOTREE_PRED, so read-only subdirectories keep their mode and unlink() inside them fails. file.n says -force "will attempt ... to change permissions".
Status now: Open
notifier-delete-source-in-loop, not merged: Fix 055240025a: Tcl_DeleteEventSource called from a setup or check proc freed the event source while Tcl_DoOneEvent or Tcl_ServiceAll was walking the list. DuREPRODUCED (main; 9.0, 8.6 by code reading, identical loops)
sourcePtr->nextPtr of the freed entry.
sourcePtr->nextPtr.
Status now: Open
copy-into-itself, not merged: Fix 82049f96f8 and 875545270d: [file copy] of a directory into itself recursed until the path was too long; now it is an error. tcl::CopyDirectory, used forREPRODUCED (main, 9.0, 8.6)
file copy 1 1/2 recurses until "file name too long" and leaves a deep 1/2/1/2/... tree behind. file copy -force d d (target becomes d/d) does the same. Side finding: file delete -force then cannot remove that tree either ("file name too long", path > PATH_MAX); only rm -rf could.
error copying "1" to "1/2/1": trying to copy a directory into itself. fCmd, cmdAH, fileSystem tests pass.
file delete -force. Proposed fix: CopyRenameOneFile refuses to copy a directory into itself, comparing normalized paths (tests fCmd-21.13/21.14).
469c5ea507.patch: VERIFIED
file delete spong -> error deleting "spong": bad address; file mkdir spong -> ... bad address; file rename a b, file copy a b, file lstat spong s -> bad address
file delete spong -> 0 (ok, like a missing file), mkdir/rename/copy/lstat -> no such file or directory; make test TESTFLAGS="-file 'fCmd.test cmdAH.test fileSystem.test fileName.test unixFCmd.test'" -> 17824 total, 17662 passed, 162 skipped, 0 failed
error deleting "spong": bad address) / passes after
REPRODUCED (main, 9.0, 8.6, 8.5)
file delete spong -> "error deleting "spong": bad address", file mkdir x -> "bad address". (If the dir is removed after a Tcl cd, the cached cwd hides the delete case but mkdir still fails.)
file delete of a missing relative file succeeds as usual. fCmd/cmdAH/fileSystem pass; fCmd-33.1 fails without the fix. Making relative paths work without a cwd at all would be a bigger VFS change; not attempted.
Status now: Pending (Fixed)
REPRODUCED (main, 9.0, 8.6) for the coroutine cases. The ticket is Pending/Fixed, but neither fix branch was ever merged. The tailcall cases (proc p {} {tailcall break}; while 1 p, and the tailcall inside a coroutine) now work on all three.
proc p0 {} {yield; return -code break}; coroutine c0 p0; while 1 c0 and the coroutine c0 try {yield; break} from itop.tcl both fail with invoked "break" outside of a loop.
29aa1c7b13.patch: VERIFIED
a: a b: a b c: c (A's destructor, mixed into object $c, is not called)
a: a b: a b c: a c; tests oo (374/0 failed), ooNext2, ooProp, ooUtil: 0 failed
REPRODUCED (main, 9.0, 8.6)
oo::objdefine obj mixin A) are never called, also for oo::object instances.
if (!(flags & SPECIAL)), which covers DESTRUCTOR as well as CONSTRUCTOR. TclOOGetCallContext already avoids caching the destructor chain when oPtr->mixins.num != 0 (since 2008), so object mixins were meant to take part.
c: a c. oo, ooNext2, ooProp and ooUtil .test pass. As with class mixins, a mixin destructor that calls next with nothing after it raises "no next destructor implementation".
Status now: Closed (Fixed)
channel-refcount-thread-safe, in main: Fix 815e246806: transferring a channel to another thread from its own file event handler could panic with "Channel released more than preserved": both threadsREPRODUCED (main); fixed by Serhiy's branch
Status now: Closed (Fixed)
init-encoding-dirs, not merged: Fix 75ecc0e6cb: add $tcl_library/encoding to the encoding search path again, lost when TIP 732 moved the auto_path code from init.tcl to Capn-bug-75ecc0e6cb, in main: Create new branch named "apn-bug-75ecc0e6cb"apn-bug-75ecc0e6cb, in main: Ticket 75ecc0e6cb - non-zipfs builds with relocated library misses encodingsInitAutoPath is called by a (custom) init.tcl or not so it's called from LocatePreInitScript which sets tcl_library. Implementation is shared with the zipfs enabled case. Question, in cas…REPRODUCED (8.6; main only with --disable-zipfs, a new regression); 9.0 OK (fixed by 17c53b7edd, 2024-08-11, for fccb9f322f, in 9.0.0)
encoding system is iso8859-1 instead of euc-jp/koi8-r; encoding system euc-jp later works. Installed 8.4–8.6.18, 9.0.5, 9.1 and uninstalled zipfs builds of main/9.0 are fine.
encoding dirs is EMPTY, the system encoding is iso8859-1 and only the 13 built-in encodings exist (encoding system euc-jp fails: unknown encoding).
encoding dirs addition of $tcl_library/encoding, though the function comment still describes it.
encoding system koi8-r; interp create; encoding system gives utf-8 on main, 9.1.0 and 9.0.5 (koi8-r on 8.6 and 8.7b1; a safe interp does not reset it). Threads and Tk interps are probably affected the same way (not tested). I found no ticket for this.
encoding dirs addition from init.tcl, so a --disable-zipfs tclsh with a relocated library has no encoding dirs at all; proposed fix for that and test encoding-26.1 in branch (name tbd). Note that 17c53b7edd has a side effect: [interp create] now resets an explicit [encoding system] setting back to the locale default.
see the "Support and bug fixes" section below, the section is "8. Support and Training"8b3626f958.patch: VERIFIED
see the "Support and bug fixes" section below.; the section is ## <a id="support">8.</a> Support and Training (l.119)
see the "[Support and Training](#support)" section below., anchor support exists (also used by the table of contents, l.26)
REPRODUCED (main, 9.0, 8.6) — README.md section 5 still says see the "Support and bug fixes" section below, the section is "8. Support and Training"
[Support and Training](#support)
REPRODUCED (main, 9.0, 8.6)
trace add gives the pure list a string rep, and inside the callback the argument is a pure string (list intrep lost)
char command[TCLFLEXARRAY] in TraceVarInfo/TraceCommandInfo) and runs it with Tcl_EvalEx after appending the trace arguments to a DString, so the words are re-parsed from strings. Branch bug-3485833 (related, last check-in a2fcb3e560, 2018-04-30) was never merged.
trace info; well over 60 lines; it is a performance improvement, not a functional bug, as dgp noted)
Status now: Open
core-8-6-branch, in main, 9.0, 8.6: Fix cc592ec70d: a second yieldto after one that failed with "C stack busy" panicked with "tailcall cannot find the right splicing spot". Backport of [eb50e83eREPRODUCED (main, 9.0, 8.6) for "cannot yield: C stack busy" (vwait/update/time/etc. are not NRE-enabled); the panic from the comments ("tailcall cannot find the right splicing spot") is FIXED since 9.0.0 (8.7 branch, eb50e83ee1, 2021-06-20, ticket f9800d52bd) but still REPRODUCED on 8.6 tip and 8.6.18
time) abort with Tcl_Panic on 8.6; on 9.0/main they only give the error again
REPRODUCED (main, 9.0, 8.6)
apply {args ... ::ns1} prints nothing, both with namespace delete from inside and from outside the namespace. A plain command trace does fire. Calling apply explicitly from such a trace fails with namespace "::ns1" not found, and delete-trace errors are silently ignored.
ca6a9e5659.patch: VERIFIED
puts a line, -flush sync; a separate tcltest process pushes inflate on a blocking localhost socket and does gets) with tclZlib.c unpatched -> timeout after 5 s
avail_in == 0 break is reached only after a decBytes > 0 round, so it never returns 0 (EOF) by mistake
qwertyuiop (3/3 runs); tests zlib.test 73 passed/2 skipped/0 failed, http11.test 86/12/0, http.test 148/6/0
REPRODUCED (main, 9.0, 8.6, 8.6.6)
gets returns only when the server closes (3 s later). A raw client shows the server does send the full sync-flushed block (18 bytes, ending 0000ffff), so the sending side is fine.
Status now: Open
copy-into-itself, not merged: Fix 82049f96f8 and 875545270d: [file copy] of a directory into itself recursed until the path was too long; now it is an error. tcl::CopyDirectory, used forREPRODUCED (main, 9.0, 8.6, 8.4)
$w/cd875/a, dest $w/cd876/a$src)
string first $nsrc $ndest (substring anywhere) plus a comparison of a single path element, so a dest that contains the src path further down, with a matching element at the same depth, is rejected as "move a directory into itself". Reachable from file copy only through the cross-filesystem path (zipfs/vfs to native).
file split prefix instead. init.test and fCmd.test pass.
941d52a3e5.patch: VERIFIED
set d "\n\tone 1\n\ttwo 2\n"; dict with d {} -> {one 1 two 2} (string rep regenerated); compiled dict with d {} in apply -> {a {\n x 1 } b 2}; dict with d a {} -> {a {x 1} b 2}
"\n\tone 1\n\ttwo 2\n", "a {\n x 1 } b 2"); make test TESTFLAGS="-file 'dict.test var.test upvar.test trace.test'" -> 958 total, 948 passed, 10 skipped, 0 failed; dict-20*..22* under valgrind with the -DPURIFY build (work-a4/build-purify): 69 passed, no valgrind errors
REPRODUCED (main, 9.0, 8.6, 8.5)
dict with behave the same). dict update with an empty body has the same effect (not changed by the prototype).
dict with. dict, var, upvar, trace tests pass; the new tests fail without the fix.
77f0dbc0f8.patch: VERIFIED
INNER {returnImm {caught error} {}} UP 1 UP 1 (stale INNER from an earlier caught error)
INNER {invokeStk foo} ...); tests interp 385/0 failed, error 318/0, info 285/0, cmdMZ 96/0, execute 157/0, ioTrans 72/0, basic 118/0, proc 37/0, namespace 312/0, coroutine 81/0, nre 29/0, oo 373/0
REPRODUCED (main, 9.0, 8.6)
INNER {returnImm {catched error} {}} from an already-caught error shows up in -errorstack after a child->parent alias error
INNER {invokeStk foo} CALL {run_in_slave foo}, which is what the reporter expected. interp, error, result, info, cmdMZ, execute, ioTrans, basic, proc, namespace, coroutine and nre tests all pass; full suite: only the pre-existing zipfs.test environment failures (they also fail on a clean build). Side effect: an explicit return -code error -errorstack {} now lets the next level record its INNER context.
tcl.pc (made by configur…Status now: Closed (Fixed)
win-distclean-tcl-pc, in main, 9.0: Fix 59a9b957c6: Windows "make distclean" now removes the generated tcl.pc.trunk, in main: Merge win-distclean-tcl-pc and win-native-mingw-tclsh: fix 59a9b957c6 and 2ef3430fdc.core-9-0-branch, in main, 9.0: Fix 59a9b957c6 and 2ef3430fdc: Windows "make distclean" removes tcl.pc; win/configure uses an installed tclsh only when cross-compiling, not for any *mingw3core-8-6-branch, in main, 9.0, 8.6: Fix 59a9b957c6 and 2ef3430fdc: Windows "make distclean" removes tcl.pc; win/configure uses an installed tclsh only when cross-compiling, not for any *mingw3REPRODUCED (main, 9.0, 8.6) — partly: Makefile, config.status, tclConfig.sh are removed, so configure must be rerun, but tcl.pc (made by configure, contains the old prefix) survives distclean
da7c079978.patch: VERIFIED
testsimplefilesystem 1: file normalize of simplefs:/simpledir/.., simplefs:/a/b/../.., simplefs:/. -> simplefs: (separator lost); simplefs:/a/../b -> simplefs:/b
simplefs:/ simplefs:/ simplefs:/ simplefs:/b; make test TESTFLAGS="-file 'fileSystem.test fileName.test cmdAH.test zipfs.test fCmd.test winFCmd.test winFile.test'" -> 18555 total, 18130 passed, 425 skipped, 0 failed (fileName.test includes the testsetplatform windows drive cases)
simplefs: simplefs: simplefs: simplefs:/b) / passes after
REPRODUCED (main, 9.0, 8.6)
testsimplefilesystem (volume "simplefs:/") on main (30d8ccce48), 9.0 tip, 8.6 tip: file normalize simplefs:/dir/.. -> simplefs: (should be simplefs:/). zipfs volumes (//zipfs:/) are fine because of their special case. The reporter's other points (cd / from a volume-relative cwd on Windows going through TclWinVolumeRelativeNormalize, rename not routed to the VFS) were not reproduced: they need a Windows build and his chiselapp test fs, which we don't have offline.
file normalize simplefs:/dir/.. -> simplefs:). Proposed fix: keep the trailing separator of any "name:/" volume, not only C:/ and zipfs (test filesystem-7.9). The Windows volume-relative issues from the comments need separate checking.
REPRODUCED (main, 9.0, 8.6, 8.5), but it follows from the documented semantics
namespace delete [namespace current] the running namespace is NS_DYING. It stays current for the running code, but by design (namespace.n: "marked to prevent other code from looking it up by name") the name ::ns1 no longer resolves to it. namespace eval [namespace current] {} therefore creates a second ::ns1. Relative doc creates/looks up a child of the dying namespace, while apply ... ::ns1 runs in the new one. So two namespaces share the name ::ns1.
namespace eval into, a dying namespace, or have namespace current reflect the deleted state)
::ns1 no longer finds it (as namespace.n documents), so namespace eval [namespace current] creates a new namespace under the same name. Changing this needs a design decision about what code running in a dying namespace may do.
Status now: Open
glob-match-linear, in main: Fix a4a7f2abd3: [string match], [glob] and [lsearch -glob] took exponential time for patterns like a*a*a*...b. When the string runs out before the pattern, anaspect-string-match, not merged: fix advancement of snext: could not cook up a test for this, but the error is clearREPRODUCED (main, 9.0, 8.6)
string match [string repeat a* n]b [string repeat a n]): time grows about 10x per +4 of n on main and 8.6.18 (n=22: 12 ms on 8.6, 27 ms on the debug main build; n=30 takes seconds). Same for -nocase, lsearch -glob, the Unicode and bytearray paths. Branch aspect-string-match (2017, Tcl_StringCaseMatch only) was never merged.
* and retry every suffix even after an inner * already failed for all suffixes.
helper(...) == 1, and an outer * stops retrying on -1. That makes matching O(len·pattern); n=30 now takes about 1 us. 20000 random pattern/string pairs (ASCII, Unicode, nocase, bytearray, lsearch) give identical results to 9.0.5 and unpatched main. string, lsearch, switch, fileName, cmdIL tests pass; the new test fails on the 9.0 tip. The [a- / trailing-backslash oddities from aspect's comment are untouched.
* stops retrying once the string is exhausted. Same results as before on 20000 random cases (test string-11.56).
REPRODUCED (main, 9.0, 8.6) on the VirtualBox VM — backward steps of up to ~150 ms; whether native hardware shows it was not tested
calibrationInterv, no backward ticks on calibration) is present in win/tclWinTime.c on main, 9.0 and 8.6 (merged 2019-03, per sebres).
clock microseconds went backwards 11 times on 9.1b1 (max 147005 us), 15 on 9.0.5 (max 117523 us), 12 on 8.6.18 (max 147041 us); on 9.1 microseconds vs monotonic drifted by up to 3.17 s. Control (work-win2/ck/ck.c, same 60 s): GetSystemTimePreciseAsFileTime never goes backwards (0 of 1.9e9 samples), but it drifts −1.3 .. +2.0 s against QueryPerformanceCounter, because the VM's virtual TSC and VBoxService time sync disagree. So on this VM the system clock itself is monotonic, and the backward steps come from Tcl's calibration.
Status now: Open
after-overflow-8-6, not merged: Fix 96c3f3b47d and 1802895fff: [after] with a delay over about 12 years overflowed the seconds where long is 32 bits (Windows, 32-bit systems), so later timREPRODUCED (8.6 on Win64); FIXED since 9.0 (64-bit Tcl_Time.sec)
after 9223372036854775808 (bignum wraps to negative, fires at once; harmless).
wakeup.sec += (long)(ms / 1000) overflows a 32-bit long; the wrapped negative sec sorts first in TclCreateAbsoluteTimerHandler while TimerSetupProc computes a huge positive wait, so every later timer waits behind it.
after 0 fires; 8.6.18 hangs for good — even the after 3000 exit timer never fires behind the after 665544332211 timer (killed after a few minutes).
wakeup.sec += (long)(ms / 1000) overflows the 32-bit long, as in the Linux analysis
REPRODUCED (main; 9.0/8.6 compile the same way) — performance/RFE, not a correctness bug
|| and &&: each inner pair still yields jumpTrue L1; push 0; jump L2; L1: push 1; L2: jumpTrue/jumpFalse ..., the same pattern dgp and dkf showed in 2017
||/&& to a boolean value, and the peephole optimizer (generic/tclOptimize.c) does not fold a "push constant boolean then conditional jump" back into a direct jump to the final target
||/&& materialise a 0/1 at each step and then test it again. This needs jump threading in tclOptimize.c (or in how the expression compiler emits ||/&&). It is an optimisation, not a correctness bug.
REPRODUCED (main, 9.0, 8.6) in the numeric-abbreviation form. "MHT" is gone (tzdata now writes "+12"), but clock scan [clock format $t -timezone +12] ("... 14:18:26 +12 2017") is 42480 s off on main, 9.0 and 8.6. On 8.6 also :Kwajalein/:Pacific/Kiritimati/:America/Sao_Paulo (they format as +12/+14/-02 there).
nmzone takes the digit count of the following year (2017), in 8.6 any signed number is hhmm. Side finding: ist is -HOUR(11/2) in generic/tclGetDate.y, and HOUR() is integer, so IST scans as +05:00 (1800 s off for :Asia/Kolkata round trip); nst (13/2), jt (15/2), cast/cadt (19/2) lose their half hour the same way (main, 9.0, 8.6).
+12: the scanner misreads a numeric zone followed by the year, see 7bad415e3e. Also IST/JT/CAST scan without their half hour (HOUR(11/2) is integer division).
0520d17284.patch: VERIFIED+TEST-ADDED
tcltest 0520.tcl (reporter's script, 10k/20k/40k after idle then update) -> 10000: 89 ms / 20000: 262 ms / 40000: 1380 ms (quadratic)
3 ms / 5 ms / 9 ms; tests timer.test 138/138 passed, event.test 56 passed 10 skipped 0 failed, interp.test 384 passed 7 skipped 0 failed
update for 32000 vs 2000 idle events must be < 64x; ~16x linear, ~220x before), fails before (3940 us vs 873770 us, 3/3 runs) / passes after (5/5 runs)
REPRODUCED (main, 9.0, 8.6)
after 0 variant on main (own build), 9.0.5, 8.6.18: [update] for 10k/20k/40k events takes ~60/250/1450 ms on all three (quadratic). With the prototype: 2/5/9 ms.
after <ms> timers is also O(n²) (CreateTimerHandler sorted insert walks from the head; 40k after 0 take ~1.3 s to create) — not addressed by the prototype. sebres' large rework (branch sebres-8-6-event-perf-branch, last touched 2022-05-31) was never merged.
after <ms> is still O(n) per insert.
931e4956b9.patch: VERIFIED (behaviour change: command limits trip one command earlier, as the triage says)
ip eval {incr i} -> 5x incr: 0 counted; ip eval {set x 1; set y 2} -> set;set: 1
6 and 3 with the script's arithmetic, i.e. 5 and 2 plus the double-counted info cmdcount the triage already noted); full suite ./tcltest ../tests/all.tcl -notfile 'http*.test zipfs.test': 521570 total, 519479 passed, 2091 skipped, 0 failed
info cmdcount itself counted twice (pre-existing double count), so it would need updating if that is fixed later.
REPRODUCED (main, 9.0, 8.6; 8.5 counts correctly)
ip eval {incr i} adds 0 to info cmdcount on 8.6+ (8.5: 5). A 3-command proc body counts 2. set x 1; set y 2 counts 1.
codeNext == codeStart no INST_START_CMD is emitted and no count is recorded. So the first compiled command of every ByteCode is never added to iPtr->cmdCount; non-compiled first commands are still counted by Dispatch. This also affects interp limit -commands.
{6 4 b} changes to {5 5 b} and interp-34.7 4 to 5 (updated in the patch). Full suite: only the pre-existing zipfs.test environment failures remain (they also fail on a clean build).
info cmdcount) are counted twice, by INST_START_CMD and by Dispatch. This is pre-existing and not fixed.
REPRODUCED (main, 9.0, 8.6, 8.5). On 9.0+ int() also returns its argument unchanged, since it became the same as entier() (TIP 514, 10bc1a9af5 2020-01-23 refactor).
tcl::mathfunc::entier/round/abs/max 0x2 return 0x2, and expr {abs($x) eq "2"} is 0 while expr {+$x eq "2"} is 1. A top-level expr result is canonical (2) everywhere.
Tcl_SetObjResult(interp, objv[1]) when the value is already of the result type. The argument's original string rep (0x2, 00.02) is kept.
objv[1]->bytes is set. It needs a maintainer decision first, since aspect argued either way is defensible.
-types hidden part. The EACCES-should-raise part is a design question that aspect argued against; not changed.391bc0fd2c.patch: VERIFIED (the MAC_OSX_TCL branch was checked by reading only)
glob -types hidden -dir d * = "" (it has .h); with dangling links -types l = bad but -types {hidden l} = "" (it has .bad)
hidden in 0600 dir: .. . .h, hidden l: .bad. Returning ./.. matches what -types hidden already gives in a searchable dir (checked on 9.0.5 and main). Tests fileName (261/0 failed), fCmd, fileSystem, cmdAH: 0 failed
REPRODUCED (main, 9.0, 8.6) for the -types hidden part. The EACCES-should-raise part is a design question that aspect argued against; not changed.
glob -types hidden finds nothing, and glob -types {l hidden} .foo misses a dangling hidden symlink that -types l foo finds. On 9.x these silently return {} (no-match is not an error there); 8.6 raises "no files matched". aspect's fix e83297c2af (branch aspect-bug-391bc0fd2c, off core-8-5-branch, 2017) was never merged.
-types hidden still stat()s every entry, so it fails in non-searchable dirs and on dangling hidden links. Proposed fix: check hidden by name before stat (port of e83297c2af, tests filename-11.52/53). Raising EACCES for -types d is left as is.
bd2656d8e3.patch: VERIFIED+TEST-ADDED (doc + behaviour-pinning test)
namespace eval a {variable A}; info vars a::* -> ::a::A; unset a::A -> error can't unset "a::A": no such variable; info vars a::* -> ` (declaration gone; namespace which -variable a::A -> ). unset -nocomplain and unset of a variable`-linked local in a proc do the same.
variable link in a proc, both plain unset and unset -nocomplain). Pins current behaviour: pass on main and on 8.6 tip (main's var.test run with the 8.6 tcltest, -match var-7.1[89]: 2 passed).
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4). Long-standing behaviour; the choice is between DOCS and a behaviour change.
unset a::A on a variable A without a value errors "no such variable" and also removes ::a::A from info vars; unset -nocomplain removes it silently. Same inside a proc through variable C.
variable A (unset -nocomplain is currently the only way), so this needs a decision. The cheaper option is to document the side effect in unset.n (and variable.n).
variable A, so I'd rather document it in unset.n than change it.
Status now: Open
iortrans-reentrant-argv, not merged: Fix 0ef291c1c2: memory corruption with trace + transchan. InvokeTclMethod() used the command words preallocated per transform, so a handler which re-entered tiortrans-reentrant-argv, not merged: Renumber test iortrans-bug-0ef291c1c2 to iortrans-12.1.REPRODUCED (main, 8.6; 9.0 by code — same InvokeTclMethod)
REPRODUCED (main, 9.0, 8.6) as dgp restated it: bytecode leaks the return options of an earlier TCL_OK command into the final -options (the reverse of the original report)
catch {set status [p1]} m o with p1 doing return -custom1 1 1 gives -custom1 1 -code 0 -level 0 when compiled and -code 0 -level 0 when set is called through a variable. catch {p1; list x} also keeps -custom1.
REPRODUCED (main, 9.0, 8.6). The current behaviour is a TCT decision: the fix e066e24f36 was backed out in 2021, and again in 2024 with TCT approval.
coroutine "::c1" is already running
chan postevent calls Tcl_NotifyChannel() synchronously (generic/tclIORChan.c). When it is called from the refchan's watch handler, which runs inside chan event inside the coroutine, the handler fires before yield.
chan postevent, the remaining options are a TIP or documenting in refchan.n/chan.n that chan postevent fires handlers synchronously, so watch must not call it directly (wrap it in after 0).
cdd157d484.patch: VERIFIED
strace -e trace=open,openat tcltest vcdd.tcl (file copy -force of a 0640 file) -> openat(AT_FDCWD, "cdd/out.txt", O_WRONLY|O_CREAT|O_TRUNC, 0100640)
openat(..., O_WRONLY|O_CREAT|O_TRUNC, 0640); the copy keeps 0o640, and a setuid 4750 source still gives a 0o4750 copy. Tests fCmd, fileSystem, cmdAH, unixFCmd: 0 failed
REPRODUCED (main, 9.0, 8.6)
file copy -force in.txt out.txt with main (30d8ccce48): openat(..., "out.txt", O_WRONLY|O_CREAT|O_TRUNC, 0100664). Same code in 9.0 and 8.6 sources (unix/tclUnixFCmd.c TclUnixCopyFile).
st_mode & 07777 to open() in TclUnixCopyFile (the permissions are still copied by CopyFileAtts afterwards).
2923d52832.patch: VERIFIED+TEST-ADDED
set x [format %s abc]; set p [format %s a*]; set cmd string; $cmd match $p $x (direct, non-compiled call -> TclStringMatchObj) converts both untyped values to the Unicode string type: representation string/string (the compiled INST_STR_MATCH leaves them pure/pure)
1, representation pure/pure; tests string, stringComp, regexp, lsearch, switch: 2004 total, 1995 passed, 9 skipped, 0 failed
REPRODUCED (main; same duplication in 9.0/8.6). Code duplication with diverging conditions, not a wrong result.
string match and by regexp when the RE reduces to a glob) promotes if the *string* has tclStringType or no internal rep at all, so it makes a needless Unicode conversion of plain strings. Both then use the same TclByteArrayMatch / Tcl_StringCaseMatch fallbacks, so results agree; only speed and memory differ.
8527d8becf.patch: VERIFIED
net use M: \\localhost\C$ /persistent:no (deleted in the same ssh call; net use empty afterwards), tclsh91 8527m.tcl -> normalize M:/.../Foo/subdir -> C:/.../Bar/subdir, cd; pwd -> C:/..., VERDICT: REPRODUCED
normalize M:/.../Foo/subdir -> M:/.../Foo/subdir, pwd -> M:/..., glob works, VERDICT: NOT-REPRODUCED; local C: junctions are still resolved. File tests admin 8 failed, low 6 failed, as baseline
REPRODUCED (main, 9.0, 8.6) for mapped network drives; UNC paths are not affected
net use M: \\localhost\C$ (created and deleted in the same ssh session, work-win4/8527m.tcl): file normalize M:/.../Foo/subdir → C:/.../Bar/subdir and cd + pwd lands on C: on 9.1b1, 9.0.5, 8.6.18 (it works here only because the "server" is localhost; on a real server the client-side C: path is wrong, as reported). Via UNC //localhost/C$/.../Foo/subdir (work-win4/8527c.tcl, adapted from win/8527d8becf.tcl, which needs net share): paths stay under the share, cd/glob work, all three versions.
M:/.../Foo/subdir, cd/pwd/glob work; fileSystem, fileName, fCmd, cmdAH 0 failed; winFCmd 3 and winFile 5 failures as unpatched. Tested on Windows.
Status now: Open
transform-write-keep-input, not merged: Fix 6141c15186: a transform on a non-seekable channel lost the buffered input when written to. WillWrite() discards the input only if seeking back succeeded, transform-write-keep-input, not merged: Renumber test iortrans-bug-6141c15186 to iortrans-13.1.aku-tkt-6141c15186, not merged: Update to trunk workREPRODUCED (main, 9.0, 8.6)
|tclsh script r+ pipe) — WillWrite discards the input only if the seek back succeeded, and ReflectSeekWide fails up front (before clear/flush) when the parent cannot seek. Test fails without the fix ("a d"), passes with it; ioTrans/io/ioCmd/chanio tests pass.
972c35d41d.patch: VERIFIED
tclsh91 972c35d41d.tcl (admin) -> file copy bar.txt baz.txt -> ok, baz.txt ... (file): the file symlink is copied as a regular file
baz.txt ... (link). The script still prints "is link: 0" because file readlink fails on symlinks, a separate known issue. Unprivileged fallback, now tested: a symlink made as admin and copied as basic user (972low.tcl) gives copy: 0, baz.txt type=file content=Hello (same as unpatched; no error). winFCmd, fCmd, cmdAH: admin 3 failed (as baseline), low 0 failed (winFCmd-2.18 skipped by winSymLinks)
file tf1), passes with the patch
REPRODUCED (main, 9.0, 8.6) for file symlinks (copied as a regular file); directory symlinks are copied as links when the user may create symlinks (the "permission denied" for non-admins not tested: the ssh account is an elevated admin)
file copy bar.txt baz.txt (bar.txt a symlink) gives a regular file; file copy src/myres dest1 (dir symlink ..\res) gives an identical SYMLINKD reparse point (fsutil). Further findings, all versions: file readlink fails for symlinks ("invalid argument" for dir symlinks, "not a directory" for file symlinks; only junctions work), so the repro's link check reports 0 even for correct copies; file delete src/myres (dir symlink) fails with "is a directory" (bug 3c13c4ed31); file delete -force of a directory containing a file symlink fails with "invalid argument".
file tf1); winFCmd.test 172 passed / 3 failed as unpatched, fCmd.test and cmdAH.test 0 failed. The unprivileged fallback is untested. Directory symlinks for non-admins, readlink and recursive delete not addressed. Tested on Windows.
REPRODUCED (main, 9.0, 8.6, 8.5)
lappend x a/append x a fire the read trace; in a proc compiled lappend x a and append x a (and append x a b) do not; [subst lappend] x a and lappend x a b (INST_LAPPEND_LIST) do.
REPRODUCED (main, 9.0, 8.6)
rename foo {} nor namespace delete runs the finally clause; the unset trace workaround does fire.
interp cancel -unwind). Only NRE callbacks and var/command traces run.
Status now: Open
regexp-lacon-nested-parens, not merged: Fix 5ea71fdcd3: restrictions of lookahead constraints were not applied nested. Rebase to trunkREPRODUCED (main, 9.0, 8.6); Proposed fix in branch regexp-lacon-nested-parens (unmerged) fixes it
xy y and x {}. Branch tip 055b73e260 built in wt-a1: first example "invalid backreference number", second x; x(?=(a)(b))(\w) on xabc -> xa a (renumbered as documented); (?:...) inside LACON unaffected. reg/regexp/regexpComp.test pass on the branch (1648, 0 failed). Dry-run merge into current main: code merges cleanly, only conflict is changes.md.
880855cb09.patch: VERIFIED. The fix works, but it also exports the 18 internal TclOO* functions, which may not be wanted; the policy question from [3010352] remains open.
nm libtcl9.1.so -> t Tcl_NewObjectInstance (local); linking work-a3/oolink.c (calls Tcl_GetObjectFromObj, Tcl_GetObjectAsClass, Tcl_NewObjectInstance) with -ltcl9.1 -> "undefined reference" for all three
rm *.o, since tcl.h changed)
o2 m -> hi). Tests oo, ooNext2, ooProp, ooUtil, load: 0 failed
REPRODUCED (main, 9.0, 8.6) — intentional since [3010352]
nm -D of main build, 9.0.5 and 8.6.18 libtcl: Tcl_NewObjectInstance etc. are local (t); with the prototype 35 more Tcl_* symbols are exported and a C program linking -ltcl9.1 calls Tcl_GetObjectFromObj/Tcl_NewObjectInstance directly.
REPRODUCED (main, 9.0, 8.6) — design limitation
testfilehandler oneevent = Tcl_DoOneEvent(TCL_FILE_EVENTS|TCL_DONT_WAIT)): pipe with "one\ntwo\n", readable handler doing one [gets]; 50 file-only event passes deliver only "one", the second line waits until a timer event ([update]) — identical on main, 9.0 tip, 8.6 tip.
3eace1b21f.patch: VERIFIED
tclsh91 3eace1b21f.tcl (temp dir moved to scratch) -> glob -dir path *: empty, glob subdir/*: 0; g3.tcl (432-char dir, 2 files) -> {} 0 0
glob -dir path *: path, glob subdir/*: 1; g3 -> {f1 f2} 2 2. Still failing, as the triage said (not addressed by the patch): cd into it, recursive file delete -force (deleted: 0), and glob -dir //?/$path * (empty before and after). File tests (winFCmd fCmd fileSystem fileName cmdAH winFile): admin 8 failed, low 6 failed, the same lists as baseline
{} 0 0), passes with the patch
REPRODUCED (main, 9.0, 8.6) on Windows 11 with the default LongPathsEnabled=0: TIP 744 does not fix it (its long-path tests are skipped without the policy; with the policy set the path would work, not tested since HKLM must not be changed)
glob -directory $dir * and glob $dir/* return nothing (no error) on 9.1b1 and 9.0.5; 8.6.18 raises "couldn't read directory .../*: no such file or directory". Also seen: file delete -force of such a tree returns success but deletes nothing (9.1b1, 8.6.18, work-win4/g5.tcl); cd into it fails; file mkdir fails for an intermediate dir of 248–260 chars (CreateDirectoryW limit is MAX_PATH-12, the native rep adds \\?\ only above MAX_PATH).
\\?\ prefix for paths > MAX_PATH; the failure is ERROR_PATH_NOT_FOUND, which 9.x IsNoSuchFileError treats as "no match". Recursive delete: win/tclWinFCmd.c TraverseWinTree appends components to the root's native path the same way.
\\?\ prefix, add \\?\ (drive) or \\?\UNC (UNC) and convert / to \. Built on the VM: the repro's glob -dir and glob subdir/* now work, winFCmd-20.3 passes (fails unpatched), winFCmd.test 172 passed / 3 failed (6.1, 6.13, 9.3, as unpatched), fCmd.test, fileSystem.test, fileName.test 0 failed. Does not apply to 9.0/8.6 (different code there, needs a backport). Recursive delete and cd not addressed. Tested on Windows.
57e44de76e.patch: VERIFIED+TEST-ADDED (doc + behaviour-pinning tests)
trace add variable a read tr; set a(x) -> can't read "a(x)": no such variable, trace not called (also compiled, from a proc); after array set a {} the same read calls the trace (read x) and returns the value it sets; a scalar read set b of a traced undefined variable does call the trace; trace add variable c(e) read tr makes c an array and its read trace fires.
trace add variable): such a variable is not an array yet; reading an element fails with "no such variable" without invoking a read trace on name; whole-array traces fire for elements only once the variable is an array (after an element write or array set name {}); an element trace makes the variable an array. tests/trace.test: trace-41.1..41.3.
array exists 0; after array set tvar {} the trace fires and supplies the value), trace-41.2 (same through a compiled read in a proc, array made by an element write), trace-41.3 (element trace makes the variable an array and fires). Pins current behaviour: pass on main and on 8.6 tip (main's trace.test run with the 8.6 tcltest, -match trace-41.*: 3 passed).
REPRODUCED (main, 9.0, 8.6, 8.4)
a(x) from a traced but undefined variable gives "no such variable" without firing the trace; after array set a {} the trace fires and can supply the value.
array set a {} before adding the trace is the workaround. Suggest documenting this in trace.n rather than changing the lookup.
58b96f6744.patch: VERIFIED
tclsh r58b.tcl (namespace path ::tcl::mathfunc in ::) -> exact: <> glob: <signbit sin sinh>
exact: <sin> glob: <signbit sin sinh>; tests namespace (315/0 failed), namespace-old, info, cmdIL: 0 failed
REPRODUCED (main, 9.0, 8.6)
namespace path ::tcl::mathfunc in ::, info commands sin returns "" while info commands si* returns sin sinh (the pattern case already follows the path); inside a namespace both work.
if ((nsPtr != globalNsPtr) && !specificNsInPattern), so the global namespace's own path is skipped. Present since TIP 229 (f1050beab4). aspect's fix on branch [bug-58b96f6744] (a756018479, 2017-02-12) is the same one-line change; never merged (the branch has only that check-in, marked closed-color by dkf).
REPRODUCED (main, 9.0, 8.6). Behaviour as described; changing it is a behaviour change (TIP material)
tclsh < script with puts too many arguments followed by another command: it prints the error, runs the next command and exits 0. tclsh script exits 1. Same on main, 9.0.5, 8.6.18.
is.tty only switches prompts and result printing. Errors are printed and ignored, and the exit code stays 0.
tclsh on stdin and expects it to carry on (test suites, echo cmd | tclsh idioms). It needs a TIP or at least core agreement, and the attached diff (dd3bf62e82) is not in the repository.
tclsh < file ignores errors and exits 0, tclsh file exits 1. Making non-tty stdin stop on the first error is a compatibility change and needs a TIP. Until then, tclsh /dev/stdin gives the script semantics in a pipeline.
source not in 8.5)REPRODUCED (main, 9.0, 8.6; for source not in 8.5)
set x [proc set args {puts FOO}]42: tclsh TT (direct eval) prints FOO and x stays unset everywhere; source TT sets x on 8.6+ (FOO and unset on 8.5); stdin (whole-command compile) sets x on all versions.
set is inlined as INST_STORE_*; INST_START_CMD checks the compile epoch only before the command's words are substituted, so a redefinition from inside an argument is not seen until the next command. source is compiled since 42090a4d6 (NRE source in 8.6).
Status now: Closed (Fixed)
cmdMZ-return-standalone, in main: Fix fdcc860df5: cmdMZ-return-3.* set ::errorCode and ::errorInfo first, so they pass when run alone.trunk, in main, 9.0, 8.6: Fix fdcc860df5: Test suite tests not running independentcore-9-0-branch, in main, 9.0: Fix fdcc860df5: Test suite tests not running independentcore-8-6-branch, in main, 9.0, 8.6: Fix fdcc860df5: Test suite tests not running independentREPRODUCED (main, 9.0, 8.6) for cmdMZ-return-3.* only; the other ~190 listed tests now pass standalone
all.tcl -file X.test -match NAME); 24 fail. 14 are tcltest-21.x/24.x/25.3, which are not dependencies: they define nested tests tcltest-21.4.0 etc. that the exact -match pattern filters out (with -match 'tcltest-21.4*' all pass). The 10 cmdMZ-return-3.x failures are real; with -match 'cmdMZ-return-3.*' 3.0 still fails on main, 9.0 and 8.6 tips.
$::errorCode/$::errorInfo, which do not exist until some earlier test has raised an error.
-match 'tcltest-21.4*' because the nested test names have a .0 suffix. Everything else in the list passes standalone now, so this can be closed after the cmdMZ fix.
REPRODUCED (main, 9.0, 8.6)
puts stdout there fails with can not find channel named "stdout". Same on Tk/Tcl 9.1b1, 9.0.5, 8.6.18.
Status now: Closed (Fixed)
buildall-static-dlls-8-6, in main, 9.0, 8.6: Fix 2b874804b5: the static pass of buildall.vc.bat also builds "dlls", so "install" finds the static dde/registry libraries and zlib1.dll.core-8-6-branch, in main, 9.0, 8.6: Merge buildall-static-dlls-8-6: fix 2b874804b5, the static pass of buildall.vc.bat also builds "dlls".REPRODUCED (8.6 only); NOT-REPRODUCED on main (9.0 has the same makefile logic)
nmake -f makefile.vc shell OPTS=static %1 (8.6: static,msvcrt → suffix sx). With %1=install, install-binaries copies $(TCLDDELIB) (tcldde14sx.lib in 8.6, tcl9dde15s.lib on main), but target shell (setup core $(TCLSH)) never builds it; only dlls/release do. (oehhar's VC6 run passed, probably because the static lib was left over from an earlier build.)
shell dlls; the same change applies to 8.6. Windows repro win/2b874804b5.cmd (static shell then install into %TEMP%).
shell, which does not make the static dde library that install copies. Proposed fix: build shell dlls there.
nmake shell OPTS=static then nmake install OPTS=static succeeds: in 9.x static builds always link the static packages, so shell builds tcl9dde15s.lib. 8.6 (tcl-wt86): nmake shell OPTS=static,msvcrt then install fails, now even earlier at File not found - zlib1.dll; with shell dlls the install succeeds (installs tcldde14sx.lib, tclreg13sx.lib, zlib1.dll)
shell; without staticpkg, install copies the static dde/registry libs and zlib1.dll that only dlls builds
shell dlls; tested by running the two nmake steps. The main patch prototypes/2b874804b5.patch is not needed (main already works).
shell dlls in the static pass of buildall.vc.bat.
REPRODUCED (main, 9.0, 8.6)
& 0xC0000000 and WTERMSIG takes & 0x7F, so any other NTSTATUS error (0xC0000139 → "signal" 57, "unknown signal"; 0xC0000409 fast-fail → 9 = "kill signal") is reported as CHILDKILLED with a meaningless signal.
CHILDKILLED <pid> {unknown signal} {unknown signal} / "child killed: unknown signal" on 9.1b1, 9.0.5 and 8.6.18; 0xC0000005 → SIGSEGV, exit 3 → CHILDSTATUS 3 (both fine). (0xC0000409 shows "unknown signal" here, not "kill signal" as the code reading suggested.)
REPRODUCED (main, 8.6) — cosmetic, RFE-like
unknown or ambiguous subcommand, Tcl_GetIndexFromObj says bad/ambiguous.
35a839cba8.patch: VERIFIED
round 0: rc=0 ... then Tcl_InitSubsystems called while exiting, SIGILL (panic), rc=132
rc=0 42 9.1.1 1970 a b ..., REINIT OK, rc=0; tests event (66/0 failed), init, main, thread: 0 failed
REPRODUCED (main, 9.0, 8.6; 8.5.19 segfaults on the second round instead)
inExit and nothing resets it, so Tcl_InitSubsystems panics after any Tcl_Finalize.
inExit = false; at the end of Tcl_Finalize; no test, needs an embedding program; event/init/main/thread.test pass)
inExit is never reset. A demo program doing 3 init/finalize rounds works with inExit = false at the end of Tcl_Finalize and is valgrind-clean; proposed patch available.
4af4d24baa.patch: VERIFIED
_setupRegistry mock), ::tcl::clock::GuessWindowsTimeZone -> :localtime
:America/Phoenix; clock.test (8757 passed/0 failed) and clock-ivm.test (8769/0) with TCL_LIBRARY=wt/library: 0 failed
:localtime) / passes after. Whether real Windows registries still store empty start values remains NEEDS-WINDOWS (win/4af4d24baa.tcl).
REPRODUCED (main, mocked registry on Windows; 9.0/8.6 have the same code, their registry DLL is not built in place on the VM); with the real registry of Windows 11 it does not trigger
registry/_hasRegistry: empty StandardStart/DaylightStart give :localtime, 16 zero bytes give :America/Phoenix. Windows script: win/4af4d24baa.tcl (prints the real registry values, then the mocked verdict).
binary scan $stdtzi @0s val on an empty value leaves val unset, the lappend errors, and the catch falls back to :localtime.
binary scan leaves the variable unset and the catch falls back to :localtime. Proposed fix: treat empty values as zeros (pad to 16 bytes), test clock-49.3.
:Europe/Helsinki); with the registry mocked to empty StandardStart/DaylightStart the guess falls back to :localtime. In the Time Zones database all 101 of 144 no-DST zones (e.g. US Mountain Standard Time) carry 16 zero bytes, not empty values, in TZI, so empty values come from older Windows or third-party tools.
binary scan on an empty value leaves val unset and the catch falls back to :localtime
:America/Phoenix, clock-49.1–49.3 pass, the full clock.test passes (8759/8759) with tcltest91 and the patched library. Tested on Windows.
%x -> "16/10/2026"); Ukrainian uses "16.10.2026" (as r…d18d06b5fc.patch: VERIFIED+TEST-ADDED (only the date formats; the lower-case day/month names the ticket also asks to change are correct Ukrainian, as the triage says)
clock format 1760572800 -gmt 1 -locale uk -format "%x | %c" -> 16/10/2025 | 16/10/2025 0:00:00 +0000
16.10.2025 | 16.10.2025 0:00:00 +0000; clock scan 16.10.2025 -locale uk -format %x round-trips; clock.test (TCL_LIBRARY=<wt>/library) 8764 total, 0 failed
REPRODUCED (main, 9.0, 8.6) for DATE_FORMAT/DATE_TIME_FORMAT only: uk.msg uses "%e/%m/%Y" (%x -> "16/10/2026"); Ukrainian uses "16.10.2026" (as ru.msg already does). NOT-A-BUG for the rest: Ukrainian writes day and month names in lower case, and the genitive month names ("жовтня") are right for "%d %B %Y" (Tcl has no separate nominative form, so "%B %Y" reads "жовтня 2026").
REPRODUCED (main, 9.0, 8.6) — SIGSEGV (stack overflow) at 100000 levels with the default 8 MB stack; 30000 levels still work
make distcleanpatchREPRODUCED (main; the same code is in 9.0 and 8.6)Status now: Closed (Fixed)
macosx-distclean-partial, in main: Fix d80f8cf33b: "make distclean" in macosx/ stopped with an error unless both the Development and the Deployment build had been made, since the clean rules altrunk, in main, 9.0: Fix d80f8cf33b: tcl/macosx Makefile has fragile core-9-0-branch, in main, 9.0, 8.6: Fix d80f8cf33b: tcl/macosx Makefile has fragile make distcleancore-8-6-branch, in main, 9.0, 8.6: Fix d80f8cf33b: tcl/macosx Makefile has fragile make distcleanREPRODUCED (main; the same code is in 9.0 and 8.6)
make -f macosx/GNUmakefile distclean BUILD_DIR=... with nothing built → make -C .../tcl/Development: No such file or directory, stops at distclean-develop. The same thing happens for the Deployment style after only make develop / make test-tcl.
${MAKE} -C "${OBJ_DIR}" clean|distclean, and that fails when the build style's OBJ_DIR was never configured. distclean iterates over both styles (develop, deploy), so a partial build always breaks it.
DO_MAKE_CLEAN = test ! -f "${OBJ_DIR}/Makefile" || ${MAKE} -C ... for the clean/distclean rules. I verified on Linux that distclean with nothing built, and after a develop-only build, now exits 0. Not tried on macOS.
make -C $OBJ_DIR even for a build style that was never configured. Proposed fix: skip the sub-make when $OBJ_DIR/Makefile does not exist.
Status now: Open
bug-f91ab723f3-quoting-main, not merged: Rebase of bug-f91ab723f3-quoting to main. Fix 6dacb3b6f0 and f91ab723f3: put the command after "cmd.exe /c" in double quotes, so cmd.exe does not strip the bug-f91ab723f3-quoting, not merged: Fix 6dacb3b6f0 and f91ab723f3: append the closing quote for "cmd.exe /c" in BuildCommandLine(), before the conversion to WCHAR. Appending it to the converteREPRODUCED (main 9.1.1, 9.0.5, 8.6 tip, installed 8.6.18; only without a console, i.e. wish). Same bug as f91ab723f3
cmd.exe /c "dir with spaces\x.bat" "arg" has more than two quotes, so cmd.exe strips the first and last one. Still present unchanged in main, 9.0 and 8.6.
exec "...\bat dir with spaces\test.bat" "" and ... {arg with spaces} 8 fail with '%USERPROFILE%\tmp\triage6\bat' is not recognized as an internal or external command; noSpaces 8 works; all 3 cases work in tclsh (console). Note: 8dot3 name creation is ENABLED on C: (fsutil 8dot3name query C:: volume state 0, registry state 2), so 8dot3name being disabled is not needed to reproduce; the disabled case itself was not tested (no other volume, and the setting was not to be changed).
cmd.exe /c for APPL_DOS without a console; with more than two quotes cmd.exe strips the first and last quote.
b198d6560a.patch: VERIFIED+TEST-ADDED (with the -nocase -integer fix added)
switch -exact $a {...} disassembly has no jumpTable: not compiled)
switch -nocase -integer $a {...} raised "-nocase option cannot be used with -integer option" before the patch and was silently accepted once compiled. (-nocase -integer -- $a was already silently accepted on the tip, while set c switch; $c -nocase -integer -- ... raises the error.) Added a punt to the interpreted version when noCase && mode == Switch_Integer, plus test switch-20.4. Now 39 changed lines
-nocase -integer with and without --; switch.test 148/0 failed, compile 160/0, execute 157/0; the original patch also passed info 285/0, trace 286/0, basic 118/0
... 0 x for the -- form) / passes after
REPRODUCED (main, 9.0, 8.6)
switch $a {...} and switch -exact -- $a {...} compile to a jump table; switch -exact $a {...}, switch -glob $a {...}, switch -nocase $a {...} (options without --) are invoked at runtime.
if (numWords < 3) return TCL_ERROR (meant for the "--" break case) punts. TclNRSwitchObjCmd never parses the last two words as options, so compiling this form is safe.
switch -nocase -integer -- ... already accepts what the interpreted command rejects ("-nocase option cannot be used with -integer"); the patch extends that to the no--- form.
--. With options followed by exactly value + body list the interpreted command also never reads options, so it can be compiled; proposed patch with tests switch-20.*.
Status now: Pending (Fixed)
REPRODUCED (main, 9.0, 8.6) as designed: no tclvars.n is installed. The Pending "Fixed" resolution (references removed) holds only partly.
unix/installManPage doc/tclvars.n dir installs argc.n … tcl_version.n (16 names), no tclvars.n. Grepped doc/ for references on main, 9.0 and 8.6.
REPRODUCED (main, 9.0, 8.6)
target runs at level 1 in namespace ::, where namespace which target gives ''.
Status now: Closed (Duplicate)
env-stale-element, in main: Fix 3602289fff, 67fd4f973a and 845241ffff: after another interp unset an env variable, a read failed but left the old element, so [info exists ::env(X)] sREPRODUCED (main, 9.0, 8.6, 8.5) as a stale element: when another interp unsets an env var, a read in this interp fails with "no such variable" but leaves the element in place, so [info exists ::env(X)] still returns 1. The original lappend/append symptom (bug 3057639) does not reproduce: [lappend env(NEW) a] / [append] work both compiled and uncompiled since 8.5.
REPRODUCED (main, 9.0, 8.6)
REPRODUCED (main; by code reading): branch bug-3600058-td (last check-in cdb671dd50, 2014-04-28) was never merged.
^([^-]+) - (.*)$ (issue #1: an empty description makes $head undefined), and the .SH/.SS handler still does [llength $rest] on a string (issue #5). No .SH CATEGORY support.
string trim $rest eq "", could be cherry-picked if wanted)
llength on a non-list) could be split out. The rest is an RFE, and doctools output has improved since then.
package present would break indexing scripts that use `package vsatis…REPRODUCED (main, 8.6), but resolution is already "Wont Fix" (dgp: stubbing package present would break indexing scripts that use package vsatisfies [package present ...] with -load)
package require (returns "") in its child interp but leaves package present alone, so the asserted package really is absent.
package require instead of package present, or create pkgIndex.tcl by hand)
package present would break other indexing uses; use package require in such scripts. Closing as Won't Fix.
REPRODUCED (main, 9.0, 8.6) — still true by design of the tests
type source line N expectations; comments at lines 1014/1958 say to add tests only at the end)
info frame tests compare absolute line numbers of the test file itself.
Status now: Open
normalize-dotdot-after-link, not merged: Fix 3577801fff, 3570244fff, 3183016fff and 3099612fff: on Unix, [file normalize] and [cd ..] used the target of a link literally when ".." followed it, REPRODUCED (main, 9.0, 8.6, 8.5)
Status now: Open
normalize-dotdot-after-link, not merged: Fix 3577801fff, 3570244fff, 3183016fff and 3099612fff: on Unix, [file normalize] and [cd ..] used the target of a link literally when ".." followed it, REPRODUCED (main, 9.0, 8.6, 8.5); 8.4.20 instead resolves the link at [cd] time ([pwd] shows the target)
cd -P ..).
REPRODUCED (main, 9.0, 8.6)
exec od -An -tx1 << "\xff\x80\x00\r\n" gives c3 bf c2 80 00 0d 0a (UTF-8-encoded) on main, 9.0.5 and 8.6.18 with a UTF-8 system encoding; only with LANG=C (iso8859-1) are the bytes intact. The newer exec -encoding option (9.0/main) only decodes the *output*; the << input is still system-encoded (and on Windows also newline-translated, as exec.n says).
exec -encoding apply to << input too, accept -encoding binary, or the -binarystdout ideas from wiki 39989; plumbing goes through the public TclCreatePipeline/Tcl_OpenCommandChannel path)
binary meaning raw bytes).
] in a [...] set; []a] never matches anything, and backslash is not special inside a set)Status now: Open
glob-bracket-posix, not merged: Fix 219233ffff and 3556218fff: in glob patterns ([string match], [glob], [lsearch -glob], [switch -glob]), a "-" right before the closing bracket of a set nREPRODUCED (main, 8.6) (no way to put ] in a [...] set; []a] never matches anything, and backslash is not special inside a set)
string match {[]a]} ]/a = 0, glob {[]a]} finds nothing. Workaround today: a range ending in ], e.g. [\-]].
], even right after [.
] right after [ is literal", plus doc/string.n text and tests string-11.56/11.57; string, util, utf, lsearch, switch, fileName, parse and cmdMZ tests pass; the new tests fail without the fix). Compatibility: only patterns containing [], which today can never match, change meaning. It still is a semantic extension and may want a TIP or at least a changes.md note; glob.n could get the same sentence.
] can't appear in a glob bracket set, and []...] never matches. Proposed fix: treat a ] right after [ as a literal (as POSIX fnmatch and [scan] do) in all four matchers. This only affects patterns that currently can never match. Test string-11.56/11.57.
REPRODUCED (main, 9.0, 8.6) only with TCL_FINALIZE_ON_EXIT=1; NOT-REPRODUCED with the default quick exit
REPRODUCED (main, 9.0, 8.6, 8.5) for ensemble subcommands that are not bytecompiled. Compiled ones such as [string range] stopped showing it in 8.6 because they compile inline.
command string, so avoiding it needs a lazy/optional string (an API change). Branch bug-3485833 (dgp/sebres kludge, 2012, merged with 8.5 in 2018) was never merged to a release branch. dgp-scan-element (only a TclScanElement speedup) was merged, which explains Resolution=Fixed.
command argument is O(N). Branch bug-3485833 was never merged; the resolution "Fixed" refers only to the TclScanElement speedup.
3463315fff.patch: VERIFIED+TEST-ADDED (the original WOW64 case was not rerun: it needs a 32-bit build; it was verified earlier in result-win-4.md)
n3.tcl script, run with runas /trustlevel:0x20000 (a basic-user token: no SeBackupPrivilege; the ssh session has backup and restore privileges enabled, so it can list any directory and does not reproduce), creates n3/middledir/tail and denies the user (RD) on middledir with icacls. file normalize .../n3/middledir/tail -> %USERPROFILE%/tmp/verifyW1/n3/middledir/ (the component is dropped) on 8.6.18. 9.0.5 and 9.1.1 give .../middledir/tail (fixed there by 0ac314cb96). The x64 file normalize C:/WINDOWS/System32/drivers/etc/hosts is fine on every version (no WOW64)
.../n3/middledir/tail; tests run as basic user: winFCmd.test 179 total, 165 passed, 14 skipped, 0 failed (with -constraints allowfilesecuritychanges). As the ssh admin: 3 failed (winFCmd-6.1, 6.13, 9.3, as unpatched; these are caused by the backup privilege and pass as basic user). fileName/fileSystem/cmdAH/winFile/fCmd: basic user 11 failed, admin 8 failed. These are identical lists with and without the patch: cmdAH-16.2, 17.2, 17.3 and winFile-4.0 to 4.4 for both; fCmd-28.12, 28.16 and filename-11.17.2 only for the basic user, who has no symlink privilege
exec icacls instead of the 9.0-only testfilesddl command; constraints win + allowfilesecuritychanges, which is set in CI or with -constraints). As basic user: FAILED unpatched (.../middledir/ instead of .../middledir/tail), PASSED patched. NB: as an elevated user with SeBackupPrivilege enabled it passes even unpatched
Note on the VM session: from 21:37 to 00:10 a Tk verification session (~/tcltk/triage, tmp\v1024) was running tktest91 against tcl91.dll and using the 'triage' task. While it ran I did not touch tcl91 or the task: I only ran the unpatched tcl91 build for the "before" repros and did the 8.6/9.0 work. The tcl91 work below ran from 00:10 to 00:45, after the coordinator said the VM was free. Runs without privileges: the ssh session has SeBackupPrivilege, SeRestorePrivilege and SeCreateSymbolicLinkPrivilege enabled, which bypasses directory ACLs. "low" runs below use runas /trustlevel:0x20000 (a basic-user token with only SeChangeNotifyPrivilege). That is not a settings change, and the 'triage' task was not used at all.
Baseline (unpatched tcl91, tcltest91.exe tests/all.tcl -file "winFCmd winFile fCmd cmdAH fileName fileSystem winPipe exec env winDde io ioCmd chanio load process pid"): admin 20451 total, 8 failed (winFCmd-6.1 6.13 9.3, winFile-4.0 to 4.4); low 6 failed (filename-11.17.2, winFile-4.0 to 4.4). These are the reference lists below.
REPRODUCED (8.6); FIXED in 9.1.0 and core-9-0-branch (unreleased 9.0.5) by 0ac314cb96 (2026-07-16, fix for d40d8db3fb)
file normalize C:/WINDOWS/System32/drivers/etc/hosts → C:/Windows/System32/Drivers//hosts (exists 0); 9.0.5 and 9.1b1 → C:/Windows/System32/Drivers/etc/hosts (exists 1).
etc fails because WOW64 redirects the listing of System32\drivers, and the failure branch appended only "/"
.../Drivers/etc/hosts (exists 1); x64 fileName.test, fileSystem.test 0 failed; winFCmd.test 3 failed, winFile.test 5 failed, cmdAH.test 3 failed (16.2, 17.2, 17.3), all identical to unpatched 8.6.18. Tested on Windows.
3447273fff.patch: VERIFIED
interp cancel -unwind after 200 ms while tpool::wait waits on a 2 s job) -> 1 {eval unwound} 0 1 (unwinds only after the job is done, not under 1 s); -2 (time limit 200 ms) -> 0 1 0 (no limit error at all)
make test 129 passed/16 skipped/0 failed (145)
REPRODUCED (main + Thread 3.0.7, 8.6.18 + Thread 2.8.13)
tpool::wait on a 2 s job, after 300 {interp cancel -unwind $c} from the parent. The cancel only takes effect after 2000 ms, when the job is done. thread::send + vwait, for comparison, unwinds at 300 ms. A time limit behaves the same way.
clock scan 01221 -format %m%d%y gives 2001-01-22, though clock(n) says %y "accepts two digits" on input (%m and %d s…3431943fff.patch: VERIFIED+TEST-ADDED (doc + behaviour-pinning tests)
%y: "On input, accepts two digits". Behaviour (work-a1/3431.tcl, -gmt 1): clock scan 01221 -format %m%d%y -> 2001-01-22 (main and 8.6); 1/5/7 %m/%d/%y -> 2007-01-05; { 7} and { 7} accepted (leading whitespace); 1/5/123/123 %y -> "input string does not match supplied format". (Side note, not part of this ticket: a lone %y without %m/%d sets the year on main but is ignored on 8.6, which keeps today's date.)
%y: "accepts one or two digits, possibly with leading whitespace", plus the 01221 example and the hint to check with regexp when exactly two digits are required (the wording now matches %m/%d/%e, which already say "one or two digits"). tests/clock.test: clock-72.1, 72.2.
REPRODUCED (main, 9.0, 8.6): clock scan 01221 -format %m%d%y gives 2001-01-22, though clock(n) says %y "accepts two digits" on input (%m and %d say the same, and also take one digit).
1/5/26 with %m/%d/%y; this is better fixed in the docs, "one or two digits")
3429618fff.patch: VERIFIED
TZ=Europe/Kyiv -> info exists ::tcl::clock::CachedSystemTimeZone = 0, without TZ -> 1
REPRODUCED (8.6 only; main/9.0 comment is accurate)
configure -system-tz.
REPRODUCED (main, 9.0, 8.6) in the form dgp described in 2016: after resolver-1.1's [namespace import], a call to [x] gives "Z" instead of the resolver's "Y", and step 2 ([z] outside x) gives "Y" instead of an unknown-command error. The original symptom (no invalidation on [namespace import]) was fixed by TclInvalidateCmdLiteral (trunk, 2011-10-20; resolver-1.x tests).
3408408fff.patch: VERIFIED
1 0 0 (proc p b {expr {$b ? 1 : 0}} returns a fresh int with no string rep instead of the shared literal "1")
1 0 1; tests expr 2154/0 failed, expr-old 448/0, execute 157/0, compile 160/0, mathop 385/0, compExpr 80/0, compExpr-old 183/0, incr 69/0, string 1411/0
REPRODUCED (main, 9.0, 8.6)
expr {$b?1:0} returns a fresh unshared int with no string rep; expr {$b==1} and expr {$b?$L1:$L2} return shared values.
REPRODUCED (main) — by design: [exit] does not unwind, so what unwinding would free is reported by valgrind; changing it needs a TIP (Serhiy's comment). Not a real leak (the process ends)
namespace eval foo exit → 168 bytes definitely lost in 5 blocks (+215 indirect); the same script without [exit] → 0
REPRODUCED (main, 9.0, 8.6, 8.5) — the remaining part (the delta overflow itself was fixed in 2011)
REPRODUCED (main, 9.0, 8.6): the gap is still there and has not grown since 8.6
Status now: Open
unix-monotonic-condwait, not merged: Fix 3328635fff: Use CLOCK_MONOTONIC for timed condition waits on Unix where pthread_condattr_setclock() is available, so changes of the system time do not affREPRODUCED (8.6; 9.0 by code reading in the select notifier and Tcl_ConditionWait); NOT-A-BUG on main (Tcl_SetTimeProc is unsupported since 9.1, TIP 723)
after 200 + vwait: 8.6.18 hangs (killed after 20 s), 9.0.5 on Linux works (epoll notifier, relative timeout). Main: Tcl_SetTimeProc panics "not supported in TCL 9.1"; notifier/timers use Tcl_GetDayTime/Tcl_GetMonotonicTime (TIP 723 merged in acb0a91c2c, 2026-01-08). Repro in work-a4/vt/.
3307281fff.patch: VERIFIED
puts -nonewline "" and puts -nonewline stdout "" first, then testchannel setstdchannel $f stdout, puts a, puts stdout b) with only tclIO.c unpatched -> stdout got a, the file only b: bare puts still writes to the old stdout
{} {a b }; tests io.test 864 passed/21 skipped/0 failed, chanio.test 766/15/0, ioCmd.test 276/101/0, iogt.test 13/4/0, ioTrans.test 72/34/0
REPRODUCED (main, 9.0, 8.6)
puts "..." without a channel still writes to the old stdout after Tcl_SetStdChannel; puts stdout is also stuck once the literal "stdout" was resolved before the switch (the reporter's second case).
statePtr->epoch are unchanged; Tcl_SetStdChannel changes the channel that "stdin"/"stdout"/"stderr" mean but does not bump the epoch, so cached "stdout" objects (including the TSD stdoutObjPtr used by bare puts) keep the old channel. The 2011 fix.patch (reset the puts TSD) covers only the bare puts case.
testchannel setstdchannel test subcommand and test io-bug-3307281). Fixes tout5.c; io.test, chanio.test, ioCmd.test pass; the test fails without the fix; valgrind clean.
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4): the gap is still about 4-5x
push "::zzz"; incrStkImm (disassembled with my build).
while 1 $body). A literal body is compiled and has…3260718fff.patch: VERIFIED
tclsh r326.tcl: after while $cond $body with cond 1 (non-literal body, so uncompiled [while]) -> cond rep: exprcode (the constant is compiled into an expression intrep on every loop entry)
cond rep: int; 1e6-iteration while 1 $body 8.39 s before vs 8.08 s after (debug build, one run each); tests while (48/0 failed), for, while-old, foreach, basic, cmdAH (17001/0), cmdMZ, info: 0 failed
REPRODUCED (main, 9.0, 8.6), but only for the uncompiled [while]/[for] (non-literal body, e.g. while 1 $body). A literal body is compiled and has no condition test at all.
while 1 $body the shared literal "1" has the exprcode intrep, so it shimmers back to int wherever "1" is used as a number. That costs about 5-8% per iteration in a small body (8.5.19: 1.54 vs 1.31 us).
REPRODUCED (main, 9.0, 8.6, 8.5)
testsetplatform windows: [file split C:/foo/bar/...] gives "C:/ foo bar ...", [file join] / [file dirname] treat "..." as a name; repro script win/3185623fff.tcl compares [file normalize $SystemRoot/System32/...] with [file normalize $SystemRoot/System32]
file exists C:/WINDOWS/System32/... = 1 and isdirectory 1 (Windows opens it as System32), but file normalize gives C:/Windows/System32/... (and .../System32/.../drivers/etc/hosts), not C:/Windows/System32.
C:/Windows/System32/... exists as a directory (Windows treats ... as .), but [file normalize] keeps the ... component. Collapsing all-dots components in TclpObjNormalizePath() would fix it; needs a decision whether that change is wanted.
mklink /D symlink is consistent (b…Status now: Open
normalize-dotdot-after-link, not merged: Fix 3577801fff, 3570244fff, 3183016fff and 3099612fff: on Unix, [file normalize] and [cd ..] used the target of a link literally when ".." followed it, REPRODUCED (main, 9.0, 8.6, 8.5) for junctions (what [file link -symbolic] creates for directories); a mklink /D symlink is consistent (both sides lexical)
file normalize link/.. (and pwd after cd ..) returns <target>/.. unresolved since 8.5 (8.4 was lexical).
dir/../../test1 and strips the last element, leaving dir/../..; unix/tclUnixFCmd.c:TclpObjNormalizePath runs realpath() on everything except the leaf, so a trailing .. survives.
./.. leaf goes through realpath() too. fileSystem.test and the full suite pass. Windows repro: win/3183016fff.tcl.
.. was not fully normalized (pwd gave .../test1/..), because TclpObjNormalizePath leaves the leaf to realpath(). Proposed fix with test filesystem-1.55; the Windows part still needs checking on a current release.
mklink /D symlink is consistent (both sides lexical)
cd test1/test2/link; cd .. (link a junction to test1) pwd and glob * show the physical parent of test1, but cmd /c cd, file exists, open use test1/test2: exists(test1)=0, exists(in_test2)=1, a new file lands in test2.
...\link\.., or a relative ..) to SetCurrentDirectoryW, which Windows resolves lexically, while Tcl_FSChdir records the normalized (junction-resolved) path as the Tcl cwd; relative native paths then resolve against a different directory.
link\.. = the link's parent), while [pwd] and [glob] use the junction-resolved one. Proposed fix: chdir to the normalized path, test winFile-5.1 (plus a Unix fix for a trailing .. after a relative link, test filesystem-1.55).
3160902fff.patch: VERIFIED
LD_PRELOAD=.../noconn6.so t.sh main tests/socket.test -match 'socket_inet6-2.*' -> socket_inet6-2.1, 2.2, 2.3 ... FAILED; the full socket.test under the shim hangs (killed by timeout 300)
REPRODUCED (main, 8.6 on OpenIndiana with the IPv6 loopback interface down); NOT-REPRODUCED with a normal IPv6 loopback
supported_inet6 now requires binding a server to the IPv6 loopback address, and localhost_v6 requires that localhost resolves to it. Tcl tests now also discover the loopback addresses (4337c99176, tcltests.tcl). So such a host should skip the IPv6 tests instead of failing.
./tcltest ../tests/socket.test -match 'socket_inet6-*', once with IPv6 on lo0 disabled.
pfexec ifconfig lo0 inet6 down (restored afterwards), binding a server to ::1 still works, so supported_inet6 and localhost_v6 stay true. Then socket_inet6-2.1 "tcp connection" FAILS on main and 8.6, and the next test hangs until killed (blocking socket ::1 $port never returns). This matches the report (2.1 failing on a host where AF_INET6 exists but IPv6 loopback does not work; the error there was EHOSTUNREACH). The 86730a63b2 rework only checks that a bind works.
socket -server -myaddr $localhost 0; an address on a down interface can be bound but not connected to.
socket -async connection to it with a 2 s limit; supported_inet/supported_inet6 use it. OpenIndiana with lo0 inet6 down: all IPv6 tests skipped, no hang, socket_inet-* 71 passed/0 failed. With lo0 up: socket_inet6-* 71/0 failed, full socket.test unchanged (the same 11 socket-14.x failures as unpatched). Linux (9.0 tcltest): socket.test 191/0 failed.
expr {foo(1?" 0x42 ":" 0x41")} passes 66 to the function, while $x?... passes " 0x42 ". At top l…3107983fff.patch: VERIFIED (the semantic choice against TIP 232's wording still needs a maintainer decision, as the triage says)
tcltest 3107.tcl (inside a proc, mathfunc foo returns <$x>) -> foo($x?" 0x42 ":" 0x41") = < 0x42 > but foo(1?" 0x42 ":" 0x41") = <66>; also foo(1 ? 0x10 : 2) = <16>, while foo(0x10) and foo($x ? 0x10 : 2) give <0x10>
foo(1?" 0x42 ":" 0x41") = < 0x42 >, foo(1 ? 0x10 : 2) = <0x10> (now the same as the non-constant forms); whole-expression results unchanged: {1?" 0x42 ":"a"} = 66, {(1?" 0x42 ":"a")+1} = 67, {" 0x42 "} = 66. Tests compExpr.test 81 passed/2 skipped/0 failed, expr.test 2152/16/0, expr-old.test 448/13/0, compile.test 160/11/0, mathop.test 385/0/0, assemble.test 277/4/0, execute.test 157/0/0
REPRODUCED (main, 9.0, 8.6, 8.5) inside procs: expr {foo(1?" 0x42 ":" 0x41")} passes 66 to the function, while $x?... passes " 0x42 ". At top level (one-off, no folding) both pass " 0x42 ".
case START: case QUESTION: if (convert && nodePtr == rootPtr) TRY_CVT_TO_NUMERIC rule then converts it. The non-constant path converts only at the real root.
{1?" 0x42 ":"a"} -> 66, + 1 -> 67) stay the same. compExpr/expr/expr-old/compile/mathop/assemble tests pass. dgp noted that TIP 232 literally prescribes the converted form, so this picks the long-standing non-constant behaviour; that needs a maintainer decision.
3059758fff.patch: VERIFIED. Aside (pre-existing, not from this patch): for a caught TCL_BREAK the trace prints TCL_OK, range at 40, new pc 56 because result = TCL_OK is set before the TRACE_APPEND in processExceptionReturn.
CFLAGS=-DTCL_COMPILE_DEBUG configure --enable-symbols)
proc B {} {error boom}; proc A {} {B; return ok}; set tcl_traceExec 3; catch {A}) -> 2: 1 (9) push1 => TCL_ERROR, result="boom" and 1: 1 (9) push1 => ...: pc 9 is the last operand byte of (5) invokeStk 1, decoded as an opcode
2: 1 (10) pop 0 => ... after "B": TCL_ERROR, result="boom" / 1: 1 (10) done 0 => ... after "A": TCL_ERROR, ..., same format as the TCL_OK trace ((10) pop 0 => ... after "B": TCL_OK, result="x"); a caught error traces ... after "B": TCL_ERROR, result="boom" + found catch at 5. execute.test on the debug build: 157 passed / 0 failed; normal build -file 'execute.test compile.test nre.test basic.test': 504 total, 464 passed, 40 skipped, 0 failed
REPRODUCED (main, only with -DTCL_COMPILE_DEBUG and tcl_traceExec 3; code identical in 9.0/8.6)
1: 3 (19) pop => TCL_ERROR where 19 is the last operand byte of (15) invokeStk 3.
pc-- before goto processExceptionReturn, whose TCL_COMPILE_DEBUG switch (*pc) then decodes an operand byte as opcode; its INVOKE/EVAL cases are therefore dead (all those paths come through the callback).
pc-- (same format as the TCL_OK trace, e.g. (20) done 0 => ... after "B": TCL_ERROR) and jumps past the trace in processExceptionReturn; removes the dead switch. execute/compile/nre/basic.test pass (normal build; execute.test also with the debug build).
pc-- in the NR callback the trace in processExceptionReturn decodes an operand byte. Proposed fix: trace the failed invocation before backing up pc, like the TCL_OK case does, and drop the now dead switch (*pc).
REPRODUCED (main, 9.0, 8.6, 8.5) (the inconsistency msofer reopened with in 2012; the ::env part was fixed in 2010)
lappend foo 2 gives 2 (no read trace) and eval lappend foo 2 gives 1 2 (trace fired). lappend ::env(NOSUCH) x works in both paths on all versions. appendComp-7.2..7.8 still carry the bug_3057639 constraint (never run).
1 2), but appendComp-7.3/9.0/9.1 fail, because TclPtrSetVarIdx turns a trace error into a command error where the direct path ignores it. A consistent fix needs a decision: either "lappend fires read traces and ignores their errors" in both paths (new TclPtrSetVarIdx flag), or no read traces in either, like append. msofer and dgp considered this TIP-worthy.
Status now: Open
time-limit-handler-reentry, not merged: Fix \[3027822fff\] and \[3048170fff\]: the time limit timer callback could re-run the limit check while the time limit handlers were already running (e.g. one eREPRODUCED (main, 9.0, 8.6; 8.5.19 shows the related #3027822 symptom instead)
sin() returns {} ("Break now").
3048057fff.patch: VERIFIED
-fsanitize=thread -g -O1 -DPURIFY), 4 threads locking one static Tcl_Mutex (work-a2/v2/mtx.c, copied from work-a6): runmtx.sh 40 -> data race in 40/40 runs, at tclUnixThrd.c:647/662 (unlocked *mutexPtr read vs. store under globalLock in Tcl_MutexLock) and :109/:114 (PMutexLock owner field)
REPRODUCED (main, 9.0, 8.6 by code; ThreadSanitizer report on main)
-fsanitize=thread -DPURIFY) with a 4-thread C program locking one static Tcl_Mutex (work-a6/3048057-mtx.c): data race reported 5/5 runs at tclUnixThrd.c:639 (unlocked *mutexPtr == NULL read) vs :648 (store under globalLock), exactly the ticket's report; plus a second race on the reentrant-mutex owner field (PMutexLock reads pmutexPtr->thread unlocked; 9.0/main only, 8.6 has no PMutex). With the prototype: 0 reports in 40/40 runs. 8.6 and 9.0 have the same unlocked read in Tcl_MutexLock/Tcl_ConditionWait.
thread field without atomics. Benign on x86 in practice, formally a data race (could matter on weakly ordered CPUs).
__atomic acquire/release for the published pointers, relaxed atomics for the owner field; plain accesses on other compilers.
*mutexPtr read in Tcl_MutexLock on 9.1 (and a similar one on the reentrant owner field in PMutexLock). Proposed fix: use __atomic acquire/release loads/stores for the lazily created mutex/condition pointers and relaxed atomics for the owner field (patch available, unix only).
3047802fff.patch: VERIFIED+TEST-ADDED (doc + behaviour-pinning tests)
namespace eval ns, interp alias {} myputs {} puts creates ::myputs; interp alias {} ns::myputs2 {} puts creates ::ns::ns::myputs2 (token ns::myputs2); ::ns::myputs3 is used as given. child alias x puts from inside a namespace creates ::x in the child. An unqualified targetCmd tgt given inside ns (where ns::tgt exists) calls the global ::tgt when invoked, also when invoked from ns.
child alias refers to that rule; ALIAS INVOCATION: a not fully qualified targetCmd is looked up in the target interp's global namespace at each invocation. tests/interp.test: interp-27.9..27.12.
namespace eval foo -> ::aliasBug3047), interp-27.10 (foo::x from inside foo -> ::foo::foo::x, token as given; ::foo::y as given), interp-27.11 (unqualified targetCmd resolves to the global proc, not foo::), interp-27.12 ($child alias from a namespace -> child's ::). Pins current behaviour: pass on main; the same 4 tests extracted into work-a1/p3047.test pass on the 8.6 tip (main's interp.test itself does not load in 8.6: it needs tcl::build-info).
REPRODUCED (main, 9.0, 8.6)
namespace eval ns, interp alias {} myputs {} puts creates ::myputs, interp alias {} ns::myputs2 {} puts creates ::ns::ns::myputs2 (and interp aliases lists the token ns::myputs2, not the real name).
3046359fff.patch: VERIFIED+TEST-ADDED (after rework; the original prototype leaked the clientData)
testnewnativepath /foo/bar (tclTest.c: a minimal registered "nativepath" filesystem whose internalToNormalizedProc caches its own native rep "cached:<path>" through Tcl_FSGetInternalRep; the command passes clientData "native:<path>" to Tcl_FSNewNativePath and reports the native rep kept and how many reps were freed after release) -> native:/foo/bar 2: the driver's cached rep is thrown away, as the ticket says
cached:/foo/bar 1 (only one of the two reps freed). It also skipped the conversion when the intrep belonged to another filesystem (e.g. a driver that normalized through the native fs), so the new object was no longer tied to fromFilesystem. Reworked: return early only when the intrep's fsPtr is fromFilesystem; then store clientData if the native rep is still NULL, free it with freeInternalRepProc if the native rep is a different one. Otherwise the old code path. 17 changed lines in tclPathObj.c; with the new test filesystem and command in tclTest.c (~105 lines) and the test, 127 changed lines in all
testnewnativepath /foo/bar -> cached:/foo/bar 2; tests fileSystem.test 142 passed/21 skipped/0 failed, cmdAH.test 16971/30/0, fCmd.test 260/45/0, fileName.test 259/47/0, unixFCmd.test 30/19/0, unixFile.test 7/0/0, zipfs.test (make test) 498/37/0
native:/foo/bar 2) / passes after; it also catches the leak in the original patch (cached:/foo/bar 1)
REPRODUCED (main, 9.0, 8.6; by code reading, unchanged)
3038316fff-86.patch: VERIFIED (doc only, no test possible)
timeout 5 wt-a1-86/unix/tcltest work-a1/encfree.tcl encfree86.so -> hangs, rc=124; main ... encfree91.so -> survived. Cause: tclEncoding.c FreeEncoding() calls freeProc with encodingMutex held (also from Tcl_SetSystemEncoding and TclFinalizeEncodingSubsystem); the functions taking that mutex in 8.6 are Tcl_GetEncoding, Tcl_FreeEncoding, Tcl_GetEncodingNames, Tcl_SetSystemEncoding, Tcl_CreateEncoding (and Init/Finalize).
REPRODUCED (8.6 only; not on 8.7b1, 9.0, main)
Status now: Open
time-limit-handler-reentry, not merged: Fix \[3027822fff\] and \[3048170fff\]: the time limit timer callback could re-run the limit check while the time limit handlers were already running (e.g. one eREPRODUCED (main, 9.0, 8.6, 8.5)
expr {cos($nloop) * sin($nloop)} fails with "cannot use a list as left operand" (9.x), "non-numeric string" (8.6), "empty string" (8.5); 9.x/8.6 also print "error in background error handler: time limit exceeded".
lib\lib\itcl4.x install dir part is FIXED (installs to lib\itcl4.3.4); tdbc not …REPRODUCED (9.0, 8.6; main has the same pkgs rule) for Itcl; the lib\lib\itcl4.x install dir part is FIXED (installs to lib\itcl4.3.4); tdbc not tested (no tdbc sources offline)
pkgs/install-pkgs targets and the package's rules.vc _INSTALLDIR=$(_INSTALLDIR)\lib adjustment (rules.vc:420) when INSTALLDIR already ends in \lib.
lib\lib\itcl4.x install dir part is FIXED (installs to lib\itcl4.3.4); tdbc not tested (no tdbc sources offline)
nmake OPTS=static,staticpkg INSTALLDIR=... release + install, work-win4/b3021.cmd). Both builds succeed, but Itcl is built as a static library (itcl434ts.lib / tcl9itcl434s.lib) and installed with a pkgIndex.tcl that loads itcl434ts.dll / tcl9itcl434.dll, so package require itcl in the installed tclsh86ts/tclsh90s fails with "couldn't load library ...". Build dirs removed afterwards.
pkgs/install-pkgs run the package's makefile.vc with $(MAKE) -$(MAKEFLAGS) ... TCLDIR=$(ROOT); nmake passes the command-line OPTS=static on to the sub-make, so packages become static libraries, which neither the static tclsh links in (only dde/registry are linked statically on 9.x) nor load can use.
Status now: Closed (Fixed)
lset-undo-append-on-error, in main: Fix 3019348fff: a nested [lset] which failed after appending an empty sublist for an end+1 index left that sublist in the list. Remove it on error.trunk, in main, 9.0: Fix [3019348] - Nested lset can modify list on errorcore-9-0-branch, in main, 9.0: Fix [3019348] - Nested lset can modify list on errorapn-lset-undo-append-on-error, in main: Merge trunk: keep the 526b01c0b9 reference hold in the replace branch of TclLsetFlat.REPRODUCED (main, 9.0, 8.6; not 8.5, which has no append-by-lset)
set foo {{x x} {x x}}; lset foo 2 1 x errors but leaves foo = {x x} {x x} {} at global level / with lset foo {2 1} x / lset foo 2 bogus x. Inside a proc the literal is shared and copied, so the bug is hidden there.
3017879fff.patch: VERIFIED (as noted in triage: imports of a target redefined as an empty proc lose the no-op inlining, because the new proc's compileProc is set only after relinking; harmless)
tclsh r301.tcl (import an empty args proc, call it from a compiled proc, redefine the target with a puts body, call again) -> only done, the new body is not run
You have to do _something_.. then done; tests namespace (315/0 failed), namespace-old, proc, basic, compile, rename, oo, ooNext2, ooProp: 0 failed
REPRODUCED (main, 9.0, 8.6, 8.5)
namespace import foo::do-nothing of an empty args proc, redefining foo::do-nothing with a body is ignored by compiled callers (nothing printed). Point 3 of the report (enter traces on empty procs) works on all versions.
Status now: Closed (Fixed)
clock-he-msg-quote, in main, 9.0: Fix 3016135fff again: escape the quote in the he.msg era names, which a6c8a2df48 turned into a bare quote, so that [clock format -locale he] failed with "extrunk, in main: Fix 3016135fff: traceback using clock format with locale of he_ILcore-9-0-branch, in main, 9.0: Fix 3016135fff: traceback using clock format with locale of he_ILREPRODUCED (main, 9.0; regression since 8.7a1 from a6c8a2df48, 2017-04-13; 8.6/8.5 fine)
" in he.msg lines 47–48 (BCE/CE) back into a bare " inside a quoted word, which brought back the 2010 bug. The tags core-8-7-a1/a3/a5 and core-9-0-0 all have the broken line.
3011585fff.patch: VERIFIED
% arm (line 1025, after the one at line 767 in the same switch)
clock format 0 -format {%% %Y%%} -gmt 1 -> % 1970%; clock.test 8574/0 failed (8.6 reads library/ directly, no zipfs)
REPRODUCED (8.6, 8.5 only; 9.0/main format in C, the proc is gone)
% case (line 1025) after the first one (line 767), and it can never be reached.
% case.
2997967fff.patch: FIXED-MEANWHILE (0f5fdaa945, 2026-10-21; 9.0 ff7935f994, 8.6 6b2fff63e6). Ticket can be closed.
done timer, in 0f5fdaa945 (main, 2026-10-21, "Fix 3b00b2198d: async test suite calls are missing cleanup"), also ff7935f994 (core-9-0-branch) and 6b2fff63e6 (core-8-6-branch)
REPRODUCED (main, 8.6; test unchanged in all branches)
done timer fires before the idle callback that runs the background error handler, so [vwait] returns too early.
after 10 [list after idle [list ::set ... {}]], so done is set only after the bgerror idle callback, which was queued first.
done is set before the bgerror idle handler runs. Proposed fix: set done from an [after idle] scheduled by the 10 ms timer.
REPRODUCED (main, 9.0, 8.6; only threaded builds — all three are threaded, 8.5.19 here is unthreaded and reports the error)
after 10 {error boom}; vwait forever: 8.5.19 (unthreaded) returns "can't wait for variable "forever": would wait forever"; main, 9.0.5 and 8.6.18 hang (killed after 5 s).
2990516fff.patch: VERIFIED
--prefix=$V/inst2990 --libdir=$V/inst2990/lib64, make install, foo2990-1.0.tm in lib64/tcl9/site-tcl: tcl::pkgconfig get libdir,runtime -> .../lib64, but tcl::tm::path list has only .../lib/tcl9/{site-tcl,9.0,9.1} and //zipfs:/lib/tcl/tcl9/...; package require foo2990 -> can't find package foo2990
.../lib64/tcl9/{site-tcl,9.0,9.1}; package require foo2990 -> 1.0. Tests (TCL_LIBRARY=wt/library): tm.test 22/0/0, package.test 402 passed/1 skipped/0 failed, safe.test 153/2/0, safe-zipfs.test 22/0/0, safe-stock.test 11/0/0, interp.test 384/7/0
REPRODUCED (main, 9.0 by code reading; not 8.6 in a standard layout)
make install puts modules into $(libdir)/tcl9 (MODULE_INSTALL_DIR) and [tcl::pkgconfig get libdir,runtime] correctly says lib64; a foo-1.0.tm in lib64/tcl9/site-tcl is not found. 8.6: [info library] is $libdir/tcl8.6 so the first root already equals libdir; in 9.x [info library] is in zipfs, so only the nameofexecutable guess remains (hard-coded "lib").
Status now: Open
tclsh-inherited-sigchld, not merged: Fix 2982713fff: if tclsh was started with SIGCHLD ignored (e.g. from system() in a program which ignores it), [exec] failed with "child process lost". Tcl_MaiREPRODUCED (main, 9.0, 8.6, 8.4) when tclsh is started with SIGCHLD set to SIG_IGN by its parent
env --ignore-signal=CHLD tclsh x.tcl and perl -e '$SIG{CHLD}="IGNORE"; exec @ARGV' tclsh x.tcl. exec echo yo fails with "child process lost (is SIGCHLD ignored or trapped?)", and exit codes are lost. Note: dash's trap '' CHLD (as in ferrieux's example) does not actually set SIG_IGN, but bash's does.
bash -c "trap '' CHLD; exec ..." and checks that CHILDSTATUS ... 3 comes back. It fails without the C change. exec, process, pid, unixInit, event and io tests pass (1180 total, 0 failed). Trade-off: an embedding application that ignores SIGCHLD on purpose before initializing Tcl gets it reset. It can ignore it again afterwards, and [exec] cannot work in such a process anyway.
env --ignore-signal=CHLD tclsh): waitpid() then fails with ECHILD. Proposed fix: TclpInitPlatform resets an inherited SIG_IGN on SIGCHLD to SIG_DFL, as it already does for its children in RestoreSignals(). Test exec-23.1.
2980143fff.patch: PATCH-INCOMPLETE (fixes only the errorcode double-wrapping, which it does correctly; the ticket's actual request, transporting the full return-options dict, is not done, as the triage says: feature, beyond the size limit)
tclsh r298.tcl (catch {thread::send $t {error ERR INFO {MY CODE}}} m o) -> errorCode=<{MY CODE}> -errorcode=<{MY CODE}> (list errorcode wrapped once more)
errorCode=<MY CODE> -errorcode=<MY CODE>; Thread tests/all.tcl 144 total, 0 failed
REPRODUCED (Thread 3.0.7 on main and 9.0.5, Thread 2.8.13 on 8.6.18)
catch {thread::send $t {return -code error -errorcode {MY CODE} -foo bar msg}} m o: only -errorcode/-errorinfo are carried, custom options are lost; return -code break / -code 7 in the target come back as plain code 2 with -code 0 -level 1. Additionally a real bug: a list errorcode is wrapped once more: -errorcode {MY CODE} arrives as {{MY CODE}} (sync send; same on 8.6/9.0/main).
Tcl_SetErrorCode(interp, str, NULL), which treats the whole string as one list element.
{MY CODE} instead of MY CODE). Proposed fix for the latter: use Tcl_SetObjErrorCode in ThreadSend (test thread-11.13); full return options support remains open.
2978770fff.patch: VERIFIED (the -errorstack side effect CALL err CALL err stays as the triage noted)
{1 lv lv} {2 {} {lv x}} {2 {} lv} 1 {INNER {returnImm boom {}} CALL err UP 1} (info level 1 empty with -namespace/-global)
{1 lv lv} {2 {lv x} {lv x}} {2 lv lv} 1 {INNER {returnImm boom {}} CALL err CALL err}; tests interp 385/0 failed, info 285/0, error 318/0, safe 153/0, namespace 312/0
REPRODUCED (main, 9.0, 8.6)
-namespace/-global, info level is 2 and info level 1 is empty.
info level 1 shows the hidden command (hideme). Side effect: -errorstack then contains that frame too (CALL err CALL err; [namespace eval] frames also show up in -errorstack). interp/info/error/safe.test pass. Showing the full interp invokehidden ... words instead would need the caller's objv passed down (signature change of the internal function).
invokehidden -namespace/-global has no objv. Proposed fix: fill it with the hidden command's words, as [namespace eval] does with its own; test interp-20.51.
2960862fff.patch: VERIFIED
cd dltest; load ./tcl9pkga.so Pkga c; cd ..; load dltest/tcl9pkga.so Pkga c; load $abs/./tcl9pkga.so Pkga c) -> Pkga entries: 3
done (the remaining early returns precede the init).
Pkga entries: 1; make test TESTFLAGS="-file 'load.test unload.test safe.test interp.test'" -> 604 total, 595 passed, 9 skipped, 0 failed
REPRODUCED (main, 9.0, 8.6)
cd dltest; load ./pkga.so; cd ..; load dltest/pkga.so; load $abs/dltest/./pkga.so gives three info loaded entries, and Pkga_Init runs three times.
cd.
return in unload became goto done to free the DString. load.test, unload.test, safe*.test, interp.test pass. Visible change: info loaded now shows absolute paths for files loaded by relative name.
info loaded then reports normalized paths.
REPRODUCED (main, 9.0, 8.6, 8.5)
set c catch; $c {...} (not compiled).
2927851fff.patch: VERIFIED
BUG REPRODUCED: [open] returned the stdin channel (iteration 1)
NOT-REPRODUCED: 200 opens returned new channels; io, ioCmd, chanio, fCmd, winPipe, winFCmd, winConsole: 2684 total, 3 failed (winFCmd-6.1, 6.13, 9.3, as baseline)
REPRODUCED (main, 9.0, 8.6)
tclsh x.tcl <&- on main and 8.6.18: [open] never returns a std channel; Unix Tcl_MakeFileChannel does not look up existing channels by fd).
reuse flag; TclpOpenFileChannel (fresh CreateFile handle) passes 0, Tcl_MakeFileChannel keeps 1. With it the embed repro gives 200 fresh channels; io, ioCmd, chanio, fCmd, winPipe tests pass; winFCmd has the same 3 failures as the unpatched build (6.1, 6.13, 9.3, VM environment).
2889293fff.patch: VERIFIED
tclsh r288.tcl (the ticket's script) -> couldn't find search "s-1-tcl_platform" from array anymore
result: user; tests info (292/0 failed), var, set-old, trace, upvar, env, set, incr, append, execute, compile: 0 failed
REPRODUCED (main, 9.0, 8.6, 8.5)
2859027fff.patch: VERIFIED
proc p {} {expr {1.1+2.2}}; puts [p]; set tcl_precision 3; puts [p] -> 3.3000000000000003 twice; util-11.24 FAILED (3.3000000000000003 3.3000000000000003)
3.3000000000000003 then 3.3; tests util 2289/0 failed, expr 14163/0, compile 160/0, execute 154/0, basic 118/0
REPRODUCED (8.6; 8.5 by report). Not applicable to 9.0/main: tcl_precision was removed by TIP 488 (f4efe03192, 2017-12-01).
proc p {} {expr {1.1+2.2}}; p; set tcl_precision 3; p still gives 3.3000000000000003, while a non-folded expr {$x+2.2} gives 3.3. main and 9.0.5 always give 3.3000000000000003 (tcl_precision has no effect there).
REPRODUCED (8.6, 8.5, 8.7b1: year/month ignored, the base date is used; main, 9.0: behaviour changed, still not the expected 1 January)
01/2010 %m/%Y gives 2026-10-16 on 8.x and 2010-01-16 on 9.x. With -base on the 31st, 9.x gives 02/2010 -> 2010-03-03, even with -validate 1.
clock scan 02/2010 -format %m/%Y on the 31st gives 3 March 2010, even with -validate. Proposal: default the missing day to 1 when a month is given, and document it.
REPRODUCED (main, 9.0, 8.6; by code reading, not run)
cd while a recursive glob is running.
2827015fff.patch: VERIFIED
exec tclsh << {puts stdout OUT; flush stdout; puts stderr ERR} >@stderr 2>@stdout, its stdout captured, its stderr to a file) -> middle stdout (captured): {} middle stderr: {OUT\nERR} (both streams went to stderr). Same with the fork path forced (use_spawn = 0, local experiment only).
errPipeOut = pipeOut;; code unchanged otherwise. 47 changed lines.
middle stdout (captured): ERR middle stderr: OUT, both on the posix_spawn path (glibc default) and the fork path (use_spawn forced to 0 temporarily); make test TESTFLAGS="-file 'exec.test io.test ioCmd.test pid.test process.test'" -> 1484 total, 1260 passed, 224 skipped, 0 failed; exec.test with fork path forced: 99 passed, 0 failed
REPRODUCED (main, 9.0, 8.6, 8.4)
>@stderr 2>@stdout script on main (own build), 9.0.5, 8.6.18, 8.4.20: prints ---- then OUT1/ERR1/OUT2/ERR2 (both inner streams to the middle stderr)
REPRODUCED (main, 9.0, 8.6) — feature request; TIP 355 (this ticket's TIP) is still Draft, Tcl-Version 9.1
file%d), sockets after the pointer (sock%p), so names are reused as soon as the fd/memory is.
Status now: Open
leave-trace-own-result, not merged: Fix 2811381fff: since 8.5 each leave or leavestep trace got the result of the previous trace instead of that of the traced command. Restore the saved interpreREPRODUCED (main, 9.0, 8.6, 8.5); regression since 8.5.0 (8.4.2-8.4.20 pass the original result to every trace)
second: first; 8.4.2, 8.4.11, 8.4.15, 8.4.20 show second: hello. leavestep traces behave the same (s2: s1).
result argument. The final command result is still restored, which is why traced returns hello.
REPRODUCED (main, 9.0, 8.6) for the generic problem; the original zlib/http symptom is gone (zbug.tcl gives 5000/5000 on all three, also with zlib push ... -limit 4096)
drain: the first read $pr (read-to-EOF) returns only 4096 bytes, [eof] is already 1, and a second read returns the missing 904
Status now: Open
interp-delete-callbacks-path, not merged: Fix 2577420fff: Tcl_GetInterpPath() and Tcl_GetParent() used freed memory in a Tcl_CallWhenDeleted() callback of a child interpreter. Unlink the child from itREPRODUCED (main with ASan; 8.5 shows garbage paths; 8.6/9.0 have the same code, and the freed memory just still holds the old text). Heap use-after-free.
rename child {} path also has a use-after-free in Tcl_GetParent (InterpInfo already freed).
2549621fff.patch: VERIFIED
interp create a; interp create { a }; interp create {}; interp children -> both creates succeed, children {{} { a } a}
interpreter named "a" already exists, cannot create and interpreter named "" already exists, cannot create, children a; tests interp, safe, safe-zipfs, oo: 959 total, 934 passed, 25 skipped, 0 failed
REPRODUCED (main, 9.0, 8.6)
interp create a; interp create { a } creates a second child literally named " a ", which other subcommands can't reach (they parse the path as a list and find "a").
interp create {{x y}} now makes a child named "x y", reachable as {{x y}}, consistent with the other subcommands.
2549598fff.patch: VERIFIED
tcltest 2549.tcl -> interp create {} returns the empty string and succeeds, interp children -> {}, interp exists {} -> 1; also interp create { a } creates a child named a (children {} { a }), the companion bug 2549621
interp create {} -> error interpreter named "" already exists, cannot create; tests interp.test 386 passed/7 skipped/0 failed, safe.test 153/2/0, cmdMZ.test 96/1/0
REPRODUCED (main, 9.0, 8.6)
interp create {} succeeds, interp children gives {{}}, the child is reachable only as {{}}, and interp exists {} still means the current interp.
interpreter named "" already exists, cannot create.
interp create {{}}.
2449154fff.patch: VERIFIED
catch {error stale}, then a chan event ... readable {...; return} handler, no bgerror) -> prints the stale couldn't open ".../tclIndex": no such file or directory ... "open [file join $dir tclIndex]" errorInfo instead of the bad-code message
command returned bad code: 2; after 0 return still gives command returned bad code: 2 ("after" script). Tests event (58 passed/0 failed), io, ioCmd, interp, timer, chanio: 0 failed
REPRODUCED (main, 9.0, 8.6, 8.5) — the message is no longer "can't read ::errorInfo", but a stale errorInfo from whatever error happened before is printed instead of "command returned bad code: 2"
chan event $f readable {...; return} (also break) with no bgerror proc: prints the previous error (e.g. foo ... "error foo", or an auto_load "tclIndex" error caught long before); after 0 return prints "command returned bad code: 2 ("after" script)" correctly
REPRODUCED (main, 9.0, 8.6)
-leaky option in the error options; it also leaks into a later *successful* proc result (proc p {} {return -level 0 -leaky x; set y 1}; catch p m o gives o with -leaky). Not reproduced through direct evaluation ([testevalex]), only in bytecode.
catch {uplevel 0 {return -level 0 -foo bar}} m o, which must keep -foo; a correct fix needs a per-command reset point in the bytecode engine (INST_START_CMD is not always emitted).
REPRODUCED (main, 9.0, 8.6; by code reading, no script demonstrates it, as in the report)
iPtr->flags & ERR_ALREADY_LOGGED; Tcl_RestoreInterpState restores only that bit. The workaround in TclSafeCatchCmd (tclResult.c, end of file) sets ERR_LEGACY_COPY by hand with the comment "todo: unless ERR_LEGACY_COPY not set in restore (branch [bug-554117edde] not merged yet)".
2345638fff.patch: VERIFIED+TEST-ADDED (only with --enable-symbols=mem / TCL_MEM_DEBUG or PURIFY builds; 8.6 has the same stub, not ported)
work-a1/build-mem (wt-a1/unix/configure --enable-symbols=mem, so -DTCL_MEM_DEBUG=1 while the Makefile still has -DUSE_THREAD_ALLOC=1; tclInt.h #undef's USE_THREAD_ALLOC for TCL_MEM_DEBUG and PURIFY).
work-a1/build-mem/gmi (work-a6/tsan/gmi.c: Tcl_FindExecutable + Tcl_GetMemoryInfo) -> Tcl_GetMemoryInfo called when threaded memory allocator not in use, SIGILL (rc 132). Same through the new test command: build-mem/tcltest work-a1/gmi.tcl -> same panic, rc 132; build-mem/tcltest tests/thread.test -match thread-9.* (new tests, fix removed) -> panic, rc 132. The normal build returns the stats (2 caches: thread0x..., shared).
testmemoryinfo command; it calls (Tcl_GetMemoryInfo)(&ds) directly, because tclTest.c is stub-enabled and the Tcl_GetMemoryInfo stub macro aborts with "Cannot call Tcl_GetMemoryInfo from stubbed extension" (the tcltest executable links libtcl, so the direct call resolves). tests/thread.test: constraints testmemoryinfo, memory; tests thread-9.1, 9.2.
gmi -> len=0, rc 0; tcltest gmi.tcl -> 0; thread-9.1 and 9.2 pass. Normal build: thread-9.1 passes, 9.2 skipped (memory); thread.test 57 total, 4 passed, 53 skipped (no Thread package), 0 failed. Alloc.3 troff warnings 0/0.
shared/thread... lists, including shared if non-empty; constraint testmemoryinfo) and thread-9.2 (empty result when the threaded allocator is not used; constraints testmemoryinfo memory). In the --enable-symbols=mem build both fail before (process panics) and pass after; in the normal build 9.1 passes before and after.
REPRODUCED (main, 9.0, 8.6; only with --enable-symbols=mem or -DPURIFY) — documented limitation rather than a bug
tcl::build-info memdebug/purify (Tcl 9 is always threaded). A configure switch for the allocator does not exist (RFE part not done).
Status now: Open
exec-pipeline-words, not merged: Fix 2339907fff and 1862356fff, regressions from 47d7a23bdf: in the first pass of TclCreatePipeline() a command word starting with "2" (but not "2>") was nREPRODUCED (main, 9.0, 8.6, 8.4.15+) — regression in 8.4.13 from 47d7a23bdf (core-8-4-branch, 2006-03-16; trunk 99ff6f81ba, same day), fix for Bug 768659; 8.4.2 and 8.4.11 work
exec 2DSlider (script in PATH) on main, 9.0.5, 8.6.18, 8.4.20: "illegal use of | or |& in command"; with a path (bin/2DSlider) it works; 8.4.2/8.4.11 OK
case '2': breaks out for a word that is not 2>... without clearing needCmd, so a command word starting with "2" right after the start or a | is not counted as a command and the final if (needCmd) check reports the bar error.
2166501fff.patch: VERIFIED
cd work-a3/fhome; HOME=$PWD tcltest tests/fCmd.test -> fCmd-6.24 and fCmd-6.26 FAILED (Total 305 Passed 258 Skipped 45 Failed 2)
REPRODUCED (main; same test code in 9.0/8.6)
cleanup's td* glob); fCmd.test passes both with cwd = HOME and normally
2098955fff.patch: VERIFIED (GCC/clang only; MSVC threaded builds still use the plain increments, as the triage says)
tclsh cs3.tcl (4 threads allocating objects), 3 runs -> 346/384/393 TSan reports, of them 190/204/208 on global tclObjsAlloced and 133/157/168 on tclObjsFreed
REPRODUCED (main, only with -DTCL_COMPILE_STATS; 9.0/8.6 same code by reading)
++ on process-wide counters.
__atomic_fetch_add for GCC/clang threaded builds, plain increments otherwise (MSVC would need InterlockedIncrement, not done). A mutex per object alloc/free seemed too costly.
2015360fff.patch: VERIFIED
Tcl_GetBooleanFromObj(NULL, boolObj, ...), and TokenToObj takes no interp, so nothing can have written the result: the call is dead. The tclCompile.c one is still commented out.
REPRODUCED (main; the calls are still not covered by tests)
all.tcl -notfile 'http*.test') shows no new failures (only the 25 known zipfs.test failures from TCL_LIBRARY), and probe scripts (bad [return] options, broken [subst]) behave the same as 9.0.5. The tclCompile.c call from the ticket was already commented out in 2009 (7748dccef5, Tcl_NRSubstObj, "TODO: Confirm we do not need this").
REPRODUCED (main, 9.0, 8.6)
interp limit time 1 s ahead runs expr {330000000 > 0}. main (debug build) ran 20.5 s, 9.0.5 4.0 s, 8.6.18 11.0 s, and every one returned rc=0 '1': the limit was neither enforced during the computation nor raised afterwards. The original 29999999 is now fast (it is a shift), so a non-power-of-2 base is needed.
** results in safe interps: a design decision)
expr {3**30000000 > 0} in a time-limited interp runs 4–20 s and returns normally. A fix needs either limit checks inside the bignum loops or a cap on result size (e.g. for safe interps).
REPRODUCED (main, 9.0, 8.6, 8.4): this is a design question, not a defect with a local fix
file pathtype {} gives relative, file normalize {} gives {}, file system {} raises "unrecognised path", file dirname {} gives ., file type {} raises ENOENT. All versions behave the same.
Status now: Closed (Fixed)
unix-dlerror-mutex, in main: Fix 1967630fff: tclLoadDl.c dlerror() is not thread safe. On NetBSD and OpenBSD the dlerror() state is process-wide, so a failing [load] in one thread could gtrunk, in main, 9.0: Fix 1967630fff: tclLoadDl.c dlerror() is not thread safecore-9-0-branch, in main, 9.0, 8.6: Fix 1967630fff: tclLoadDl.c dlerror() is not thread safecore-8-6-branch, in main, 9.0, 8.6: Fix 1967630fff: tclLoadDl.c dlerror() is not thread safe1967630fff.patch: VERIFIED (fix proven with an emulating shim, 40 runs before/after; no test in the suite)
dl/runmany.sh tclsh 40 400 "" -> SUMMARY runs=40 ok=40 wrong=0 crash=0. To reproduce the NetBSD/OpenBSD behaviour (process-global dlerror, confirmed there in result-unix-1.md) on Linux I wrote an LD_PRELOAD shim work-a1/dl/globaldlerror.c: dlopen()/dlsym() failures store the message in one global buffer, dlerror() returns and clears it, plus usleep(20) after each call. Note that [load] already serialises Tcl_LoadFile with tclLoad.c's libraryMutex, which is why plain failing-[load] stress (dl/dlerr.tcl, 3 threads) never showed anything even with the shim. But the Tcl_FindSymbol calls for *_SafeInit/*_Unload/*_SafeUnload after a successful load run outside that mutex. work-a1/dl/dlerr2.tcl: thread L loads 400 distinct copies of dltest/tcl9pkga.so (which lacks those symbols, so dlsym fails), threads AAAA/BBBB [load] missing files 1600 times each. With the shim: dl/runmany.sh tclsh 40 400 dl/globaldlerror.so -> SUMMARY runs=40 ok=0 wrong=0 crash=40: every run SEGFAULTs. gdb: AppendPrintfToObjVA <- Tcl_ObjPrintf("couldn't load file \"%s\": %s") <- TclpDlopen (tclLoadDl.c:132) <- Tcl_LoadObjCmd: the other thread's failing dlsym() + dlerror() consumed the message, so this thread's dlerror() returned NULL and TclpDlopen passed NULL to %s (FindSymbol already guards NULL with "unknown", TclpDlopen does not). So on NetBSD/OpenBSD a failed [load] concurrent with a successful [load] in another thread can crash Tcl, not just give a wrong message (not run on the VMs; the shim emulates their documented behaviour).
TCL_DECLARE_MUTEX(dlMutex) held from the first dlopen() until the error message has been copied into the interp result (unlocked on the encoding-error early return and on both exits), and in FindSymbol from the first dlsym() until after dlerror()/the error message; plus the NULL guard ("unknown") for dlerror() in TclpDlopen, like FindSymbol has. Tcl mutexes are reentrant on main (TIP 509), so a library constructor that calls Tcl_LoadFile in the same thread does not deadlock. tclLoadDyld.c (macOS) not changed: Apple's dlerror() keeps per-thread state, so it is not affected. As noted in triage, the mutex only covers Tcl's own calls, not dlopen() by other code in the process.
dl/runmany.sh tclsh 40 400 dl/globaldlerror.so -> SUMMARY runs=40 ok=40 wrong=0 crash=0 (each run: L 0, AAAA 0, BBBB 0 wrong); without the shim 40/40 ok. After fossil revert + rebuild the shim run crashes again (3/3). load.test 30/30 passed, unload.test 27/27 passed.
dlerr2.tcl without the shim should show the crash/wrong messages before the fix.
1967630fff.patch (native NetBSD/OpenBSD): VERIFIED natively. The bug is real on NetBSD 10.1 and OpenBSD 7.9: in 40 runs, 33/40 (NetBSD) and 24/40 (OpenBSD) fail before the patch, half of them by SIGSEGV. With the patch, 0/40 fail on both.
fossil tarball trunk), unpatched and with prototypes/1967630fff.patch (patch -p0), built natively on NetBSD 10.1 (gcc) and OpenBSD 7.9 (clang) in /tmp: unix/configure (threaded by default), gmake, gmake tcltest, unix/dltest built (tcl9pkga.so). Thread trunk (39d9f08aa0, 3.0.7) with tclconfig trunk in its tclconfig/, built against each Tcl build dir. 400 copies of the unpatched build's dltest/tcl9pkga.so made with a cp loop on each VM.
Cannot open "/nonexist-B.so", OpenBSD File not found -> VERDICT: dlerror state is PROCESS-WIDE.
...: /nonexist-X.so: *) does not fit the BSD loaders, and OpenBSD's message has no file name at all. So each failing load is now compared with the message the same [load] gives single-threaded before the threads start. Thread L loads pkga1..400.so; AAAA/BBBB each [load] a missing file 1600 times. Driver work-a1/dl/runvm-bsd.sh (ulimit -c 0, timeout 120 per run; reports ok/wrong/crash/hang). Each build ran 40 times with the same parameters (n=400).
SUMMARY runs=40 ok=7 wrong=13 crash=20 hang=0. All 20 crashes are rc=139 (SIGSEGV). Wrong messages are another thread's dlsym() error delivered as a failed [load] result, e.g. couldn't load file "/nonexist-AAAA.so": Undefined symbol "_Pkga_SafeUnload". Some are garbled, because the shared buffer was overwritten while being read: Undefined symbol "xist-ASafeUnl and Undefined symbol exist-AAAA.so".
SUMMARY runs=40 ok=16 wrong=4 crash=20 hang=0. All 20 crashes are rc=139. Wrong messages: couldn't load file "/nonexist-AAAA.so": Unable to resolve symbol.
SUMMARY runs=40 ok=40 wrong=0 crash=0 hang=0; OpenBSD SUMMARY runs=40 ok=40 wrong=0 crash=0 hang=0. In the patched tree, gmake test TESTFLAGS="-file \"load.test unload.test\"" gives Total 57 Passed 57 Skipped 0 Failed 0 on both (load.test + unload.test).
REPRODUCED at the libc level (NetBSD 10.1 often, OpenBSD 7.9 rarely); NOT-REPRODUCED through Tcl [load] (main, 4 threads, both OSes)
Cannot open "/nonexist-BBBB.so" in thread AAAA). OpenBSD 7.9: 1 NULL in 200000 (2 runs; ld.so serializes dlopen, so the window is tiny). Tcl tests (dlerr.tcl / dlerr2.tcl): 3–4 Thread-package threads load failing files 100000–300000 times each and check that the message matches their own failure. 0 wrong on NetBSD (3.6 million loads) and OpenBSD (3 runs × 400000).
Status now: Closed (Duplicate)
REPRODUCED (Tk 9.1b1, Tk 8.6.18; not with Tk 9.0.5, which wraps this line differently) — a Tk bug, belongs in the Tk tracker
$t get "1.63 + 1 display lines display linestart" "... display lineend" (indices 1.64-1.65, the a-umlaut), i.e. the lead byte of the UTF-8 "ä" as a character of its own. 9.1 then fails in puts with "invalid or incomplete multibyte or wide character" (strict profile), 8.6 with "invalid argument". The never-ending loop is the script's own end condition.
1902648fff.patch: VERIFIED
-std=c11 -D_POSIX_C_SOURCE=200809L) -> tclClock: error: implicit declaration of function 'strcasecmp'; tclUnixChan: implicit declaration of function 'strncasecmp' (and cfmakeraw)
implicit declaration of function 'cfmakeraw' (a BSD/glibc extension, not POSIX, outside this ticket); full rebuild without new warnings; clock.test 8756 passed / 7 skipped / 0 failed; unixChan.test + chanio.test 766 passed / 0 failed
REPRODUCED (main, 9.0, 8.6); the -nocase correctness half is FIXED
-std=c11 -D_POSIX_C_SOURCE=200809L (glibc) → error: implicit declaration of function 'strcasecmp' (gcc 14+ makes this an error). Default glibc builds work only because <string.h> also declares it under _DEFAULT_SOURCE.
#ifdef HAVE_STRINGS_H / #include <strings.h> / #endif in unix/tclUnixPort.h). With it, the strict compile of tclClock.c, tclClockFmt.c and tclUnixChan.c is clean; the main build succeeds; clock.test 8753 passed / 0 failed.
Status now: Open
exec-pipeline-words, not merged: Fix 2339907fff and 1862356fff, regressions from 47d7a23bdf: in the first pass of TclCreatePipeline() a command word starting with "2" (but not "2>") was nREPRODUCED (main, 9.0, 8.6, 8.4.15+) — same regression as 2339907: 47d7a23bdf (core-8-4-branch, 2006-03-16; trunk 99ff6f81ba), fix for Bug 768659; 8.4.2/8.4.11 print "|foo"
exec echo |foo and exec echo a |foo on main (own build), 9.0.5, 8.6.18, 8.4.20: "illegal use of | or |& in command"; 8.4.2, 8.4.11: OK
case '|': treats any word starting with "|" as a bar (lastBar, cmdCount++, needCmd = 1) even when more characters follow, while the second pass (segment split) only treats exactly "|" / "|&" as bars. Since 47d7a23bdf the needCmd check turns that into an error.
REPRODUCED (main, 9.0, 8.6) for item (4) only; (2)/(3) fixed long ago (chan is safe and exposed), (1) is by design (dkf, 2012)
interp hide foo info then foo eval {::tcl::info::commands i*} still works; same for interp hide bar string + ::tcl::string::length, interp hide bar chan + ::tcl::chan::names.
file delete -force d1/d2/d3/.. returns success but only empties d2 (d2 itself remains…Status now: Open
delete-refuse-dot-dot, not merged: Fix 1827008fff: on Unix [file delete -force d1/d2/d3/..] deleted the contents of d2 but not d2, and reported success. Refuse to remove a path ending in "." orREPRODUCED (main, 9.0, 8.6, 8.5, 8.4), now worse: since 8.5 file delete -force d1/d2/d3/.. returns success but only empties d2 (d2 itself remains). 8.4 at least reported an error.
file copy d1/d2/d3/.. x targets x/.. (file tail is ".."), giving "file exists". That part is not addressed.
file delete -force . would then remove the cwd. fCmd, unixFCmd, fileSystem and fileName tests pass.
file copy with a ".." tail still copies to target/...
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
set x 1; set x [proc set args "return $x"] in a child interp and in a proc: x ends up "" (the bytecoded [set] runs), not 1 as Rule 2 of Tcl.n would require.
1805928fff.patch: VERIFIED
package require circ1805928) -> 141 identical lines error reading package index file .../pkgIndex.tcl: can't find package circ1805928, then can't find package circ1805928. work-a3/circ/u.tcl (a [package unknown] handler that requires its own package) -> too many nested evaluations (infinite loop?).
error reading package index file ...: circular package dependency: attempt to find circ1805928 requires circ1805928 ("package require" in an index script?) line plus the final "can't find package"; u.tcl -> circular package dependency: attempt to find foo requires foo (...). Tests package (404/0 failed), pkgMkIndex, tm, safe, safe-zipfs, init, autoMkindex, interp, unknown, platform: 0 failed.
REPRODUCED (main, 9.0, 8.6, 8.5)
Status now: Open
after-overflow-9-0, not merged: Fix 1802895fff: [after] with a delay close to 2**63 ms could overflow the time arithmetic, so a blocking [after] returned at once. Add the delay with a saturaafter-overflow-8-6, not merged: Fix 96c3f3b47d and 1802895fff: [after] with a delay over about 12 years overflowed the seconds where long is 32 bits (Windows, 32-bit systems), so later timREPRODUCED (9.0, 8.6; on 64-bit Linux only for delays within ~1 s of 2^63 ms); FIXED on main since 9.1a1 (TIP 723 acb0a91c2c, 2026-01-08: deadlines are long long µs and too-large delays raise "time too far away")
after 0x7fffffffffffffff (blocking) returns at once on 8.6.18, 9.0.5 and the 9.0 tip whenever the current µs field is >= 193000 (about 80% of runs); main errors "time too far away". The reporter's value 0b1101111... (~9.6e11 ms) waits correctly on 64-bit Linux. No 32-bit build available (no multilib); Windows overflow (now.sec + ms/1000 > LONG_MAX, i.e. any delay over ~3.9e11 ms, ~12 years, for both the blocking and the script form) is from reading the code.
long Tcl_Time.sec without a range check; on LP64 the usec carry can push the seconds past WIDE_MAX/1000 so TCL_TIME_DIFF_MS_CEILING overflows negative and AfterDelay breaks out at once.
1777301fff.patch: VERIFIED
./configure --prefix=/some/path -> prefix=/some/path exec_prefix=~/tcltk/9.0
--prefix=/some/path -> exec_prefix=/some/path; unchanged: no options -> both ~/tcltk/9.0, --exec-prefix=/ep -> prefix=~/tcltk/9.0 exec_prefix=/ep, both options -> as given
REPRODUCED (tclconfig trunk bed05771cd, 2026-08-20)
--prefix=/some/path gives exec_prefix=/usr/local; with the prototype it gives /some/path. No-option, --exec-prefix only, and both-options cases unchanged.
1743302fff.patch: VERIFIED+TEST-ADDED (with the crash fix added; note evalstats is now also available in safe interps of debug builds: an information leak only, debug builds only)
--enable-symbols=all build (work-a5/dbg) plus the normal build
puts [info commands evalstats]; interp create c; puts child:[c eval {info commands evalstats}],[c eval {info exists tcl_traceExec}] -> evalstats / child:,0
interp create -safe s; s eval evalstats SEGFAULTS (EvalStatsCmd, tclExecute.c:10256). It is a pre-existing bug: the literal-table loop reads globalTablePtr->buckets[i] with a stale i instead of buckets[ui]. In the main interp it happens not to crash, but the patch makes evalstats reachable in every child/safe interp. Fixed i -> ui in the patch. Added test execute-13.1 and a constraint evalstats ([info commands evalstats]). Now 46 changed lines
child:evalstats,1, safe: tcl_traceExec unset, s eval evalstats works; tests interp 384/0 failed, execute 158/0, coroutine 82/0, nre 29/0, safe 153/0, safe-zipfs 22/0. Normal build: interp, execute, coroutine, nre, safe 0 failed
REPRODUCED (main; 9.0/8.6 same code) for the remaining review item; the original crash was fixed by dgp in 2007 (resolution already "Fixed")
evalstats and tcl_traceExec exist only in the first interp; interp create c; c eval {info commands evalstats} → empty.
REPRODUCED (main, 9.0, 8.6): still no caller in the core passes LITERAL_ON_HEAP (grep of generic/, unix/, win/, pkgs/)
Status now: Closed (Fixed)
gdb-ignore-sigpipe, in main: Fix 1696642fff: "make gdb-test" and "make gdb" tell gdb not to stop on SIGPIPE, which Tcl ignores.trunk, in main, 9.0, 8.6: Fix 1696642fff: "make gdb-test" and "make gdb" tell gdb not to stop on SIGPIPEcore-9-0-branch, in main, 9.0: Fix 1696642fff: "make gdb-test" and "make gdb" tell gdb not to stop on SIGPIPEcore-8-6-branch, in main, 9.0, 8.6: Fix 1696642fff: "make gdb-test" and "make gdb" tell gdb not to stop on SIGPIPEREPRODUCED (main; same Makefile target in 9.0/8.6) — only under gdb; not a Tcl bug
gdb -batch -ex run --args ./tcltest ../tests/io.test -match io-29.27 stops with "Program received signal SIGPIPE"; with handle SIGPIPE nostop noprint the test passes.
make gdb-test stops at io-29.27 and similar tests.
-ex "handle SIGPIPE nostop noprint"; no test, verified with echo run | make gdb-test TESTFLAGS="-file io.test -match io-29.27")
handle SIGPIPE nostop noprint to gdb (the workaround from this ticket), then close.
1695203fff.patch: VERIFIED
tcltest tip280.tcl (the ticket script) -> type source line 1 file .../tip280.tcl cmd {info frame 0} level 0
... line 3 ...; tests info, basic, parse, subst, source, proc, trace, eval: all pass (0 failed)
REPRODUCED (main, 9.0, 8.6, 8.5) for direct (non-compiled) evaluation only; the continuation-line case from the 2007 comment is fixed (correct in 8.5.19 and later)
line past nested commands and counts backslash-newlines, but not past newlines in TCL_TOKEN_TEXT parts, so a [cmd] after a literal newline inside the same word gets the word's start line. The compiler (tclCompile.c TclCompileTokens) already does TclAdvanceLines for text tokens.
REPRODUCED (main, 9.0, 8.6, 8.5)
interp create -safe s; s eval {info frame 0} from a sourced file returns type source ... file /full/path/of/parent/script.tcl on all versions with [info frame].
file for safe interps, or not propagate location across the interp boundary; either changes documented [info frame] keys)
1667660fff.patch: VERIFIED
tclsh r166.tcl (lsort -integer {1 2 1000000000000000000000000}) -> integer value too large to represent
1 2 1000000000000000000000000; tests cmdIL (171, 0 failed), lsearch (165, 0), cmdMZ (97, 0)
REPRODUCED (main, 9.0, 8.6, 8.5)
lsort -integer {1 2 1000000000000000000000000} gives "integer value too large to represent" everywhere. In 9.x [string is integer] accepts that value, and unsorted lsearch -integer already handles it, while lsearch -sorted -integer fails too.
lsearch -sorted -integer is not covered.
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
namespace delete of the current namespace, namespace which test still returns ::x::test while namespace exists ::x is 0, namespace which ::x::test is empty and ::x::test gives "invalid command name".
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
namespace eval a x gives ::a, namespace eval a y (alias to x) gives ::.
uplevel 1 sees the caller's frame, so lookup context and execution context differ. Same family as 1590483fff and 1444291.
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
x :: ::a on main, 9.0, 8.6.18, 8.5.19, 8.4.20.
x, so [info level 0] is x, and uplevel 1 re-resolves it in the caller's namespace ::a (where a::x shadows it).
[info level 0] and error traces; dkf questioned in 2016 whether this should be supported at all)
Status now: Open
REPRODUCED (main, 9.0, 8.6) (RFE-like)
interp transfer {} $chan $safe the safe interp sees file5 / sock5aa65bfc3110 in chan names, so the channel type shows. Socket names also contain the channel's heap address (a pointer leak, defeats ASLR in principle). Inside the safe interp fconfigure/chan configure are hidden, so nothing more leaks.
sock%p); interp share/transfer keep the name. No chan rename exists.
REPRODUCED (main, 9.0, 8.6)
append on an array element does not fire read traces (append a(k) 123 with a read trace that would set a(k) leaves it 123), which is what makes append env(a) skip the case-insensitive lookup in EnvTraceProc. Repro: win/1563538fff.tcl (child tclsh started with TRIAGE_X=VALUE runs append env(triage_x) 123; Windows verdict REPRODUCED if the result is 123).
append (TclPtrSetVar with TCL_APPEND_VALUE) does not fire read traces, so an element a that does not exist yet starts out empty.
append env(triage_x) 123 → 123 on 9.1b1, 9.0.5 and 8.6.18 (expected VALUE123)
append does not fire read traces (tclVar.c TclPtrSetVarIdx only does with TCL_TRACE_READS, deliberately since [3057639]); the element triage_x starts empty and the write then replaces TRIAGE_X. PATH and COMSPEC are not affected: TclSetupEnv uppercases them.
Status now: Closed (Fixed)
tcltest-output-open-channel, in main: Fix 1528500fff: tcltest::outputChannel and errorChannel use an already open channel as is instead of opening a file with its name.trunk, in main, 9.0: Many tcltest improvements, 773924ffff, 9f4feaaaa1, 811659ffff, 572400ffff, 8413e79232 and 1528500fffcore-9-0-branch, in main, 9.0: Many tcltest improvements, 773924ffff, 811659ffff, 572400ffff, 8413e79232 and 1528500fffREPRODUCED (main, 9.0, 8.6)
tcltest::outputChannel $f with $f an open channel ([file tempfile]) creates a file named "file5" in the cwd and writes there, on main, 9.0.5 and 8.6.18; errorChannel does the same.
Status now: Open
copy-eperm-attrs, not merged: Fix 1523045fff and 731062ffff: [file copy] to a filesystem that cannot store the mode or the times (VFAT, CIFS with a fixed owner) failed with "operation noREPRODUCED (main, 8.6; simulated: LD_PRELOAD shim makes chmod() fail with EPERM in the target dir, as on VFAT; no real VFAT mount, that needs root/udisks)
REPRODUCED (main, 9.0, 8.6, 8.4)
regexp {^(.*)=(.*)$} with capture vars takes 3.2 s on 8.4.20/8.6.18/9.0.5 and 5.2 s on the unoptimized main build; without captures 15–240 µs, with non-greedy (.*?) ~0.7–1.2 ms.
.* tries split points one by one and re-runs the DFA for each, quadratic in the string length. Inherent to the Spencer engine.
(.*)=(.*) is quadratic in the Spencer engine. Workaround: (.*?) or [string first]. No small fix; keep open or close as a known limitation.
REPRODUCED (main, 9.0, 8.6) — RFE/policy rather than a bug
readelf -d on my main build (wt-a2/unix/libtcl9.1.so), installed 9.0.5 and 8.6.18 libtcl*.so: no DT_SONAME on any of them.
Linux*|GNU*... case sets SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' with no -Wl,-soname; TCL_SHLIB_LD_EXTRAS is only set for Darwin. Distros (Debian, Fedora) add the soname by setting TCL_SHLIB_LD_EXTRAS/patching.
-Wl,-soname,${TCL_LIB_FILE} (libtcl9.1.so) in the Linux section of tcl.m4 would be the minimal change; opinions welcome.
1224888fff.patch: VERIFIED
PATH=/usr/bin:/bin bash -c "exec -a mytclsh wt-a2/unix/tclsh ne.tcl" with ne.tcl = puts "<[info nameofexecutable]>" -> <>
<wt-a2/unix/tclsh>; tests unixFile.test: 7/7 passed
REPRODUCED (main, 9.0, 8.6)
bash -c "exec -a mytclsh /path/tclsh x.tcl" → [info nameofexecutable] is empty on main, 9.0.5, 8.6.18
1214461fff.patch: VERIFIED (after rework; the original patch was PATCH-INCOMPLETE because the mixed-case mac* encodings stayed case-sensitive)
tcltest 1214.tcl -> UTF-8: 1 unknown encoding "UTF-8", same for Iso8859-1, CP1251, and encoding system Utf-8
MacRoman/macroman/MACROMAN still failed with the original patch. Reworked (same idea, a case-insensitive fallback after the exact lookup): new static FindEncodingNameNoCase() looks first through the loaded encodings, then, only after the exact file load fails, through the encoding file map (FillEncodingFileMap, so only on the miss path), and loads the canonical name. Errors from LoadEncodingFile (e.g. encoding-11.6 "invalid file") are kept. 89 changed lines now (about 75 in C, most of them the helper and its header comment), which is over the size limit
UTF-8/Iso8859-1/CP1251: 0 abc, encoding system Utf-8 -> utf-8; MacRoman/macroman/MACROMAN/MACJAPAN: 0 abc; an unknown name still gives unknown encoding "Nope" with errorCode TCL LOOKUP ENCODING Nope. Tests: encoding.test 232 passed/5 skipped/0 failed (also with make test, i.e. zipfs library), io.test 863/21/0, chanio.test 766/15/0, cmdAH.test 16971/30/0, utf.test 399/0/0, source.test 23/0/0, fCmd.test 260/45/0
MACROMAN/macroman; fails before / passes after (encoding-1.5 passes on both, as it should)
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4 on Unix)
encoding convertto UTF-8|Iso8859-1|CP1251 abc and encoding system Utf-8 give unknown encoding on main, 9.0, 8.6.18, 8.5.19, 8.4.20 (Linux). On Windows the .enc file lookup goes through the case-insensitive file system, so CP1251 works there (and creates a second encoding named CP1251); not re-checked on Windows with the 9.x zipfs library.
<name>.enc verbatim, so case sensitivity depends on the file system.
<name>.enc verbatim. Encodings registered with mixed-case names by extensions still match exactly. encoding.test, io.test, cmdAH.test, utf.test, fCmd.test, source.test pass.
REPRODUCED (main, 8.6 on OpenIndiana)
mkdir -p /tmp/d1/d2; echo J > /tmp/d1/d2/file; chmod 111 /tmp/d1; cd /tmp/d1/d2; echo 'puts [gets [open file]]' | tclsh
mkdir -p /tmp/d1/d2; echo J >/tmp/d1/d2/file; chmod 111 /tmp/d1; cd /tmp/d1/d2. /usr/bin/pwd fails ("cannot determine current directory: Permission denied"). Both main and 8.6: pwd errors with "error getting working directory name: permission denied", open file fails with the same error, file exists file returns 0, and glob * gives "couldn't determine the current working directory". Opening by absolute path works.
1146047fff.patch: VERIFIED
chmod 0 g1/root; glob {g1/[rb]oot/*} -> couldn't read directory "g1/root/": permission denied; fileName-20.12 fails with an error
REPRODUCED (main, 9.0, 8.6, 8.4)
glob {gl/[rb]oot/*} and glob gl/*/* fail with "couldn't read directory gl/root/: permission denied" (with or without -nocomplain since 8.5; 8.4 returned empty with -nocomplain). sh/csh list gl/boot/*.
glob root/*) still error. Behaviour change: glob {[r]oot/*} now returns {} (the Tcl 9 no-match result) instead of erroring. fileName/cmdAH/fCmd/unixFCmd tests pass; test fails without the fix.
1111134fff.patch: VERIFIED
unload -keeplibrary in i; unload in j) -> mapped after: 0 (the .so is gone from /proc/self/maps although i asked to keep it)
mapped after: 1; make test TESTFLAGS="-file 'unload.test load.test'" -> 58 total, 58 passed, 0 failed
REPRODUCED (main; 8.6 has the same code in generic/tclLoad.c)
unload -keeplibrary in i, unload in j → the .so disappears from /proc/self/maps and from [info loaded], so j's unload detached the library i asked to keep.
REPRODUCED (main, 9.0, 8.6) (code reading; performance only; same epoch bump in 9.0 and 8.6 tclResolve.c)
1078030fff.patch: VERIFIED
DdeNameService(inst=0, ...) -> 0; DdeUninitialize(inst=0) -> 0 4 times; with dde servername: one correct unregister and DdeUninitialize(16777344) -> 1, followed by 3 more calls of each with inst=0. The bug is confirmed at run time (no visible symptom; win/1078030fff.tcl exits cleanly)
nmake test TESTFLAGS=-file winDde.test 50 total, 47 passed, 3 skipped, 0 failed (registry.test run directly: registry-2.7 fails, a test-text bug from b6340f48b4 that expects "configuration tcl::registry key"; it is unrelated to the patch)
REPRODUCED by code reading (main, 9.0, 8.6); no visible symptom (DdeUninitialize(0) just fails)
1059897fff.patch: VERIFIED+TEST-ADDED (doc + behaviour-pinning tests; the knownBug test is turned into a test of the documented rule, which closes the ticket by decision "document, not change")
info commands. Behaviour (work-a1/1059897fff.tcl, 1059b.tcl; identical on main and 8.6 tip): in namespace eval ns with ::string_cmd, ::string_cmd2, ::ns::string_cmd and an imported op: info procs string* -> string_cmd; info procs -> op string_cmd; info procs ::string* -> ::string_cmd ::string_cmd2; info procs ::ns::* -> ::ns::op ::ns::string_cmd; info commands string_* -> string_cmd string_cmd2. Test info-15.8 expected the global procs too and was knownBug.
info procs: names of the procedures in the current namespace incl. imported ones; qualifiers select a namespace and the results are qualified the same way; unlike info commands, an unqualified or empty pattern does not search the global namespace (use ::*). tests/info.test: info-15.8 rewritten in place to the documented behaviour (knownBug removed, result string_cmd; line count kept, since the info frame tests hard-code line numbers), new info-42.1 at the end.
info procs with no/unqualified pattern lists only local and imported procs, ::-qualified pattern finds the global one, namespace-qualified pattern gives qualified names, info commands contrast). Pins current behaviour: pass on main; both extracted into work-a1/p1059.test pass on 8.6 tip.
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
string_cmd, info procs string* -> string_cmd, info commands string_* -> string_cmd string_cmd2 (global one found too). Test info-15.8 is still knownBug.
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 everywREPRODUCED (8.6: async-4.3 alone takes 383 MB RSS; main/9.0: 430 MB, but only on MSVC builds: since 8.7/9.0 the test doesn't run on Unix/MinGW at all, see below)
/usr/bin/time maxrss.
string repeat {;incr i;} 1500000). The parse/compile of that body costs ~400 MB. Also, tests/async.test:24 has testConstraint knownMsvcBug [expr {[tcl::build-info msvc]>0}], inverted compared with format.test/winFCmd.test (eq 0). The inversion dates from c0c61fa7cf (2021-07-23, "Re-implement testConstraint knownMsvcBug in terms of tcl::build-info"; before it was "not Travis-Windows"), so on 8.7/9.x async-4.3 runs only on MSVC builds, the one platform it was meant to skip.
[tcl::build-info msvc]>0), so the test runs only on MSVC builds. Proposed fix: invert it back and cut the body from 1.5M to 150000 commands: 52 MB instead of 430 MB, still 40/40 passes.
Status now: Open
leave-trace-tests, not merged: Add tests for 1030133fff: leave and leavestep traces must not change the result, -errorcode, -errorinfo or custom return options of the traced command (trace-REPRODUCED (main, 9.0, 8.6) (the save/restore now lives in tclTrace.c TclCheckExecutionTraces/TclCheckInterpTraces)
1017004fff.patch: VERIFIED (only the ticket's first case; dgp's second variant, an import loop through an alias, is deliberately not handled, as the triage says)
tcltest 1017.tcl (ticket's first script) -> interp alias {} ns::target {} alias returns 0 ns::target, then alias -> 1 {too many nested evaluations (infinite loop?)}
1 {cannot define or rename alias "target": would create a loop}; tests interp.test 385 passed/7 skipped/0 failed, namespace.test 312/2/0, namespace-old.test 126/0/0, rename.test 19/0/0, safe.test 153/2/0, basic.test 118/29/0
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
alias ends in "too many nested evaluations (infinite loop?)" (no crash).
994454ffff.patch: VERIFIED
tcltest 9944.tcl) -> after info exists a(dummy), array anymore a s-1-a -> couldn't find search "s-1-a" (compiled local arrays in a proc and global a in a proc are not affected)
array anymore returns 0 and the search survives; tests info.test 289 passed/3 skipped/0 failed, var.test 217/4/0, set-old.test 153/0/0, trace.test 286/4/0, env.test 26/6/0, upvar.test 70/0/0
REPRODUCED (main, 9.0, 8.6, 8.4)
953284ffff.patch: VERIFIED
wrong right (p1, normalized before relinking link -> wrong to link -> right, keeps the stale normalized path)
right right; tests fileSystem 142/0 failed, fCmd 260/0, cmdAH 16971/0, fileName 259/0, unixFCmd 30/0, io 863/0; make test -file zipfs.test 498/0
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4): the cached [file normalize] result goes stale. Since 8.5 [open] no longer reads the wrong file (8.4.20 did); only the normalized value is wrong.
Status now: Open
win-dltest, not merged: Fix 903803ffff: the Windows builds (win/Makefile.in and win/makefile.vc) build the unix/dltest packages, so load.test, unload.test and pkgMkIndex.test run theREPRODUCED (main, 9.0, 8.6) by code reading — RFE
[file dirname [info nameofexecutable]]/dltest and their $dll constraint is false on Windows, so load/unload of pkga..pkgua is untested there.
886457ffff.patch: VERIFIED (behaviour change for C transforms stacked with a narrower mask: needs core review, as triage said)
r+ file: puts $f xyz; flush $f -> write not supported by Tcl driver; write-only transform: gets -> read not supported by Tcl driver (the channel stays R/W)
channel "file5" wasn't opened for writing / ... wasn't opened for reading; after chan pop writing works again; make test TESTFLAGS="-file 'io.test ioCmd.test iogt.test ioTrans.test chan.test chanio.test zlib.test socket.test ioUtil.test'" -> 2473 total, 2284 passed, 189 skipped, 0 failed
0 {} 0 {}: the buffered puts does not even report an error) / passes after
REPRODUCED (main, 9.0, 8.6)
chan push of a read-only reflected transform (methods initialize/finalize/read) on an r+ file: puts goes to the transform driver and fails with "write not supported by Tcl driver" instead of the generic "channel wasn't opened for writing"; the same for a write-only transform and gets. The same on main, 9.0, 8.6. ChnlStack.3 says "a read-write channel may become read-only after the Tcl_StackChannel call", but Tcl_StackChannel only checks that the mask overlaps.
mask to statePtr->flags; Tcl_UnstackChannel resets the flags to maxPerms.
Status now: Closed (Fixed)
env-stale-element, in main: Fix 3602289fff, 67fd4f973a and 845241ffff: after another interp unset an env variable, a read failed but left the old element, so [info exists ::env(X)] strunk, in main, 9.0: Fix [845241]: Unsetting env vars in slave interpscore-9-0-branch, in main, 9.0, 8.6: Fix [845241]: Unsetting env vars in slave interpscore-8-6-branch, in main, 9.0, 8.6: Fix [845241]: Unsetting env vars in slave interpsREPRODUCED (main, 9.0, 8.6, 8.5, 8.4) — [info exists env(X)] stays 1 in the parent after a child unsets env(X); the upvar part (stale value through an alias) is gone in 9.x but still present in 8.6
REPRODUCED (main, 9.0, 8.6)
socket -async slow.test $port returns after 2001 ms on main, 9.0 and 8.6.
http::config -threadlevel, 608f2fbab4, 8.7/9.0), which runs ::socket in a Thread.
socket -async resolves the host synchronously, since TclCreateSocketAddress() calls getaddrinfo() before the async connect. http works around it with -threadlevel (608f2fbab4); a real fix needs a resolver thread in the socket driver.
Status now: Closed (Fixed)
tcltest-limitconstraints-verbose, in main: Fix 811659ffff: tests skipped by -limitconstraints are reported with -verbose s.trunk, in main, 9.0: Many tcltest improvements, 773924ffff, 9f4feaaaa1, 811659ffff, 572400ffff, 8413e79232 and 1528500fffcore-9-0-branch, in main, 9.0: Many tcltest improvements, 773924ffff, 811659ffff, 572400ffff, 8413e79232 and 1528500fffREPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
-verbose s: only the constraint skip prints ++++ a2 SKIPPED: no; tests skipped by -skip, -match and -limitconstraints print nothing, on all versions.
SKIPPED: userSpecifiedLimitConstraint. -skip/-match left silent (changing them breaks 9 existing tests and floods output with -match). tcltest.test passes (131/129 passed, 2 skipped); new test fails without the fix.
Status now: Closed (Fixed)
tcltest-nested-match, in main: Fix 773924ffff: -match and -skip select top-level tests only; tests nested in a selected test always run.trunk, in main, 9.0: Many tcltest improvements, 773924ffff, 9f4feaaaa1, 811659ffff, 572400ffff, 8413e79232 and 1528500fffcore-9-0-branch, in main, 9.0: Many tcltest improvements, 773924ffff, 811659ffff, 572400ffff, 8413e79232 and 1528500fffREPRODUCED (main, 9.0, 8.6)
tcltest.test -match tcltest-21.4 fails on main, 9.0 tip and 8.6 tip (nested tcltest-21.4.0 is skipped by -match). Running each of the 130 tcltest.test tests alone with -match: 14 fail on main (tcltest-21.4/5/6/10/11/12, 24.9/10/13/15/17/18/20, 25.3).
768678ffff.patch: VERIFIED
open "|echo foo >bar768" r -> "can't read output from command: standard output was redirected", yet bar768 exists: 1; open "|cat << hello768 >bar768" w -> stdin error, and the file exists too
bar768 exists: 0. The allowed forms still work (w with >file, r with 2>@stderr, [list | sh -c ... 2> file]). Tests ioCmd (278/0 failed), exec (98 passed, 0 failed; the 101 skips are win/haveTestApp etc.), io, chanio: 0 failed
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
open "|echo foo >bar" r errors with "standard output was redirected", yet bar gets created and written; the same for >>, >&, r+. With w, open "|cat << x" w runs cat (its output shows up) before the stdin error. Same on all versions tested.
<…/>… operators (skipping the operand of bare operators and 2>… stderr redirections) so the mode error is raised before anything is opened or started. TclCreatePipeline's signature (used by BLT) is unchanged and the old post-checks stay as a fallback. ioCmd.test and exec.test pass. The new tests fail without the fix (file created).
764634ffff.patch: VERIFIED
uname first in PATH (work-a2/v2/fakebin/uname: OSF1 / V5.1 / alpha), configure --enable-64bit -> checking system version... OSF1-V5.1 then WARNING: 64bit support being disabled -- don't know magic for this platform
~/tcltk/autoconf-2.73/bin/autoconf -f on the patched tcl.m4 regenerates a configure byte-identical to the patched one
REPRODUCED (main, 9.0, 8.6) by code reading — cosmetic configure warning
OSF1-V* case never sets do64bit_ok, so --enable-64bit gives "64bit support being disabled -- don't know magic for this platform" although Alpha is always LP64. Can't run on Tru64.
do64bit_ok=yes.
sh -n configure ok; untested on Tru64)
Status now: Open
copy-eperm-attrs, not merged: Fix 1523045fff and 731062ffff: [file copy] to a filesystem that cannot store the mode or the times (VFAT, CIFS with a fixed owner) failed with "operation noREPRODUCED (main, 9.0, 8.6), emulated: an LD_PRELOAD shim made chmod()/utime() return EPERM on the target dir, which is what a vfat mount with uid=65534 does for non-owners
REPRODUCED (main, 9.0 tip, 8.6 tip)
testregexp -xflags -- c .x "asd asd" v gives 0 0 (expected 6); reg-32.4–32.9 (knownBug) all fail on main (7 failures).
REPRODUCED (main, 9.0, 8.6, 8.4) — but it follows from documented trace semantics (traces on a variable are disabled while one of its traces runs)
652765ffff.patch: VERIFIED
trace add command p delete {apply {args {error boom}}}; catch {rename p {}} -> 0 {}, command gone; same for a rename trace (0 {}, q2 exists); main and 8.6.
REPRODUCED (main, 9.0, 8.6) — errors in rename/delete command-trace callbacks are swallowed; still undocumented
Status now: Open
mkdir-no-umask-call, not merged: Fix cd609219f5 and 623585ffff: [file mkdir] read the umask with umask(0) + umask(mode), which threads could leave at 0 for the whole process, and masked theREPRODUCED (main, 8.6; same code in 9.0)
573292ffff.patch: VERIFIED (wording corrected)
make -n install prefix=/v4/p -> libtcl, tclsh, tclConfig.sh still to /usr/local/..., but headers to /v4/p/include; make -n install exec_prefix=/v4/ep -> tclsh to /v4/ep/bin, lib still /usr/local/lib; make -n install DESTDIR=/v4/stage -> everything under /v4/stage/usr/local.
make -n results above
REPRODUCED (main, 9.0, 8.6) — by design; unix/README is wrong
make -n install-binaries prefix=/X/pfx still installs to /usr/local/bin and /usr/local/lib (configure writes exec_prefix = /usr/local and libdir = /usr/local/lib expanded into the Makefile). make install DESTDIR=/X/stage correctly installs to /X/stage/usr/local/...; overriding prefix, exec_prefix and libdir together also works. unix/README step (f) in main, 9.0 and 8.6 still says you can override by "modifying the prefix and exec_prefix variables in the Makefile".
make install DESTDIR=/staging/dir is the supported way to stage an install (for stow or packaging); setting prefix at make time is not. Proposed fix: correct unix/README, which still claims prefix/exec_prefix can be overridden in the Makefile.
Status now: Closed (Fixed)
tcltest-limitconstraints-expr, in main: Fix 572400ffff: with -limitconstraints, a constraint expression is satisfied only if it is true and names one of the selected constraints.trunk, in main, 9.0: Many tcltest improvements, 773924ffff, 9f4feaaaa1, 811659ffff, 572400ffff, 8413e79232 and 1528500fffcore-9-0-branch, in main, 9.0: Many tcltest improvements, 773924ffff, 811659ffff, 572400ffff, 8413e79232 and 1528500fffREPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
-constraints knownBug -limitconstraints 1: tests constrained by !foo and $::tcl_version > 0 run on all versions. Full suite on main with -constraints knownBug -limitconstraints 1: 70 tests run (20 pass, 50 fail) before, 23 (7 pass, 16 fail) after the prototype.
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
Total 1 ... Failed 1 on all versions.
Status now: Open
REPRODUCED (main, core-8-6-branch)
work-a2/sp ace/; configure succeeds, make fails at once: "No rule to make target 'ace/tcl/macosx/configure.ac'" (logs in work-a2/sp ace/).
REPRODUCED (main, 9.0, 8.6): Tcl_GetAllocMutex is still stub slot 387 in tcl.decls, exported, and not documented in doc/*.3
REPRODUCED (main, 9.0, 8.6)
testlink update with a write trace on the linked var that throws (work-a3/528448.tcl): update returns OK, empty result, error lost, on main, 9.0 and 8.6 tip tcltest
REPRODUCED (main, 9.0, 8.6, 8.4); intended since TIP #35
open /dev/pts/N r+; exit (also after -mode, -blocking 0) on main, 9.0.5, 8.6.18, 8.4.20. termios of the pty is changed after exit in all of them; file status flags (O_NONBLOCK) are not, since they belong to Tcl's own open file description.
initState. So TtyCloseProc's doReset (TIP #160) only undoes later fconfigure changes, never the raw mode from the open itself. Not restoring at close was intended by TIP #35 (so Tcl can be used like stty), so changing it would change behaviour.
-inputmode reset and close restore)
initState is saved, so neither close nor -inputmode reset brings back the state from before the open. Keeping settings after close is what TIP #35 wanted. Restoring the state from before the open needs a decision (maybe a TIP).
502197ffff.patch: VERIFIED+TEST-ADDED (on Wine, not real Windows; triage had already run the repro on a Windows VM)
wt-a4/win/configure --host=x86_64-w64-mingw32 --enable-64bit), run under Wine with a private WINEPREFIX=work-a4/wineprefix
1. after SetEnvironmentVariable: env()=first OS=second child=second / 2. new via SetEnvironmentVariable: env()=<unset> ... / VERDICT: REPRODUCED (2 of 3 checks out of sync)
env()=second, env()=fresh (in names=0, as triage noted: array names env still misses OS-only variables), VERDICT: NOT-REPRODUCED; env.test under Wine 33 total, 32 passed, 1 skipped, 0 failed; winPipe.test under Wine has the same 2 failures (winpipe-4.5, winpipe-8.4: Wine quirks) with and without the patch; unix env.test 26 passed / 7 skipped / 0 failed; unix build unaffected (code is #ifdef _WIN32)
testwinsetenv name ?value? (win/tclWinTest.c, calls SetEnvironmentVariableW) and env-12.0 (constraints win testwinsetenv) in tests/env.test; under Wine it fails before (Result was: first 0 {}) / passes after
REPRODUCED (main, 9.0, 8.6)
env()=first OS=second child=second), a variable created only by SetEnvironmentVariableW is not visible (<unset>), Tcl → OS direction works. Same on 9.1b1, 9.0.5, 8.6.18.
env()=second, env()=fresh); array names env still does not list the new variable (TclSetupEnv would need GetEnvironmentStringsW). env.test, exec.test, winPipe.test pass on Windows. Tested on Windows.
488530ffff.patch: VERIFIED
dd bs=10 count=1 <&3), then runs tclsh /dev/fd/3 and source /dev/fd/3 -> invalid command name "-----..."" (file "/dev/fd/3" line 1), exactly the ticket's error
printf 'puts piped\n' | tclsh /dev/stdin (non-seekable) still works; tests source, main, interp, fileSystem, ioUtil, io: 1527 total, 1478 passed, 49 skipped, 0 failed
REPRODUCED (main on OpenIndiana; 8.6 has the same code, not run)
#!/bin/sh + exec tclsh "$0" and a long first line, chmod 4755 or 2755, run ./foo.tcl.
#!/bin/sh, set top 1 ;# \, exec .../tclsh9.1 "$0" ${1+"$@"}, then puts "script=[info script] top=[info exists top]". Root was used only to give the script group other (setgid to one's own group does not trigger /dev/fd), then mode 2755. Run as the user: Tcl gets /dev/fd/3 as the script. Unpatched main prints top=0, i.e. it starts reading after the shell's exec line, with both /bin/sh (ksh93) and bash. With the prototype it prints top=1. The ticket's visible error needs a shell that leaves the offset mid-line; ksh93 and bash seek back to the end of the line they consumed, so the remaining text still parses, but the script still runs from the wrong offset. Without set-id both builds read from the start.
472113ffff.patch: VERIFIED (documented behaviour change, may still want a TIP / core vote)
{} {} {} {} {} {} (namespace which -variable ary(i) empty although ary(i) exists)
::test_ns_1::ary(i) {::test_ns_1::ary(no such)} ::test_ns_1::ary(i) ::test_ns_1::undef(x) {} {}; tests namespace 313/0 failed, namespace-old 126/0, var 217/0, upvar 70/0, info 285/0, oo 373/0
REPRODUCED (main, 9.0, 8.6)
REPRODUCED (main, 9.0, 8.6, 8.4)
::foo::bar:::baz case from the comments on main build (c3bf6dd052), 9.0.5, 8.6.18, 8.4.20: identical output everywhere: (1 1 1 2 2 1), namespace children ::foo::bar: returns ::foo::bar:::baz, and that name can't be used.
: of a namespace/var name merges with the next separator. Documented in namespace.n ("two or more colons").
: merge with the :: separator (documented in namespace.n); changing it needs a TIP. Suggest closing as "Won't Fix" or moving to RFE.
REPRODUCED (main, 9.0, 8.6, 8.4)
x is ::bar::x; for a plain local var namespace which -variable y returns "".
REPRODUCED (main, 9.0, 8.6, 8.4)
encoding convertfrom euc-jp "\x8f\xb0\xa1" (JIS X 0212 U+4E02): main/9.0.5 error "unexpected byte sequence ... '\x8F'" (strict profile); 8.6.18/8.4.20 give U+008F U+4E9C. encoding convertto euc-jp 丂 gives ?.
pkg_mkIndex -lazy; the default -direct index does not list commands)219279ffff.patch: VERIFIED
tclsh r219.tcl (reporter's foo.tcl; pkg_mkIndex -lazy, then package require and plain foo in a new interp) -> index {foo.tcl source ::JCS_task_service::foo}, plain foo: 1 invalid command name "foo"
{foo.tcl source {::JCS_task_service::foo foo}}, FOO!, plain foo: 0; pkgMkIndex.test 27/0 failed (also via make test with a rebuilt zip), autoMkindex 11/0, package 403/0
REPRODUCED (main, 9.0, 8.6, 8.5, 8.4) (only with pkg_mkIndex -lazy; the default -direct index does not list commands)
::JCS_task_service::foo, not the global foo the package imports itself, so lazy loading via plain foo fails. Same on all versions; test pkgMkIndex-11.1 asserts this output.
namespace origin and drops the global name, without telling apart its own namespace import -force from imports done by the package.
{::fubar::foo foo} (the ticket's first desired form). pkgMkIndex.test, autoMkindex.test pass.
219254ffff.patch: VERIFIED (emulated; real check on the OpenIndiana VM as root is still pending)
uid=0 noexec(644)=1 uexec(700)=1 glob-x=noexec.txt uexec.txt
uid=0 noexec(644)=0 uexec(700)=1 glob-x=uexec.txt; without it unchanged (noexec(644)=0 uexec(700)=1); tests fileName 259/0 failed, fCmd 260/0, cmdAH 16971/0, fileSystem 141/0, unixFile 7/0
REPRODUCED (main, 8.6 as root on OpenIndiana)
file executable f returns 1 and glob -types x * lists it on main (installed build) and core-8-6-branch. As a normal user it is 0. With prototypes/219254ffff.patch (main): root gets 0 for the 0644 file and 1 for 0744 and a directory, and glob -types x lists only d g. Non-root is unchanged. cmdAH, fileName, unixFile, fileSystem and fCmd tests pass with the patch (as a normal user).
Status now: Open (Remind)
glob-bracket-posix, not merged: Fix 219233ffff and 3556218fff: in glob patterns ([string match], [glob], [lsearch -glob], [switch -glob]), a "-" right before the closing bracket of a set nglob-match-linear, in main: Fix a4a7f2abd3: [string match], [glob] and [lsearch -glob] took exponential time for patterns like a*a*a*...b. When the string runs out before the pattern, anREPRODUCED (main, 9.0, 8.6, 8.5, 8.4)
string match {[.-]} - -> 0, {[.-]} A -> 1, {*[.-]*} 2.1-Beta -> 0, {[a-z0-9_/-]} \\ -> 1, {[a-]} \] -> 1.
- right before ] starts a range whose end is the ], so the set's closing bracket is used up.
] behaviour): a - followed by ] is a literal -, as in POSIX brackets. All four matchers fixed (byte array and Unicode paths checked under gdb). Full suite on main (without http*/zipfs) passes: 521549 total, 0 failed. Incompatible for patterns like [A-]] (was range A..]), so main/9.1 only; the unclosed-bracket case {[.-B} (sebres' comment) is not touched.
- right before ] as a literal in all four glob matchers (string, byte array, Unicode); new tests string-11.56/11.57, util-5.40/41/43/44 changed as they tested the old behaviour. Incompatible, so main only.
Status now: Open
REPRODUCED (main, 9.0, 8.6, 8.4)
2 2 2 2 2 2 2).
return -code N evaluated at level 0 via invokehidden yields TCL_RETURN (same as at top level anywhere); 26.6: break/continue returned through a proc-based alias target become "invoked break outside of a loop" by proc semantics; 26.8: errorInfo from the parent's alias implementation is copied into a safe child (generic/tclInterp.c AliasObjCmd / Tcl_TransferResult).