Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-05-21
15:14 • Closed ticket [79223eba3e]: auto_path not setup in threads in 8.7 single file bu... artifact: 7ac6fb588e user: apnadkarni
2021-12-22
18:04 • New ticket [79223eba3e]. artifact: 31563d004a user: anonymous

auto_path not setup in threads in 8.7 single file build binary

Closed / Fixed79223eba3e65fa9f73579b5a0a28f42cd99356b7Created 5 years agoUpdated 196 days ago
Descriptionplain2021-12-22 18:04:29
I was unable to do a [package require math] from a thread in the single file build binary for 8.7a6 that I got from

https://github.com/tcltk/tk/actions?query=workflow%3A%22Build+Binaries%22

It would work only if I created a thread script that copied the value of ::auto_path from the main thread into the newly created thread. 

This is not the case with 8.6 code and might only be a problem with these single file builds.
apnadkarnimarkdown2026-05-21 15:14:40

Closing, as with all the changes that have gone in since the report, this no longer seems a problem. Note the static single file build.

% info pat
9.0.4
% package require Thread
3.0.2
% set tid [thread::create]
tid0000000000005C1C
% thread::send $tid {package require math}
1.2.6
% tcl::build-info
9.0.4+8e0656d976539382544099d71fa976bf05c6958a8426444e3ec4a6c287509ac2.msvc-1944.nmake.static.stdio-mingw.tommath-0103.zlib-0103
Log in (anonymous is fine) to add a comment.