Artifacts Associated With Ticket 2bf9fbcb99
Ticket change [6d120a5b05] (rid 240997) by EricBrunel on 2025-06-06 13:09:02:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
According to [](https://www.tcl-lang.org/software/tcltk/9.0.html ""), section "Notable incompatibilities", tcl 9 is always thread-enabled, and the build options `--enable-threads` / `--disable-threads` have disappeared. Now in the "tclvars" manual page, it says for the documentation of the array "`tcl_platform`" that if the variable "`threaded`" exists in the array, then the interpreter was compiled with threads enabled. So one would suppose that this variable always exists in tcl 9, since it is always thread-enabled. But it doesn't: with a build of tcl 9.0.1 from the sources, there is no variable "`threaded`" in the array "`tcl_platform`". This is a problem, since some interfaces with other languages (namely tkinter for Python) rely on the presence of this variable to know if tcl is thread-enabled or not. If tcl is misidentified as not thread-enabled when it actually is, it causes a lot of issues, and sometimes even crashes.
- foundin initialized to: "v9.0.1"
- is_private initialized to: "0"
- login: "EricBrunel"
- priority initialized to: "5 Medium"
- private_contact initialized to: "f6d4a0ab6bf27b9d6f6630658854c2945ae98b10"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "EricBrunel"
- subsystem initialized to: "49. Threading"
- title initialized to:
Array "tcl_platform" should always contain entry "threaded" in tcl 9, but doesn't
- type initialized to: "Bug"
Ticket change [c423d57d81] (rid 241017) by dgp on 2025-06-06 17:28:13:
- icomment:
The test for a threaded build that is stable in its behavior through Tcl 8.6.* and Tcl 9.* releases is [tcl::pkgconfig get threaded] Code that needs to function with both Tcl 8 and Tcl 9 should be adapted to make use of it. The (pretty serious) bug here is the Tcl 9 docs were not updated.
- login: "dgp"
- mimetype: "text/plain"
- title changed to:
Tcl 9 docs outdated regarding tcl_platform(threaded)
- icomment:
Ticket change [3efb99445e] (rid 241018) by dgp on 2025-06-06 18:11:41:
- assignee changed to: "jan.nijtmans"
- icomment:
The elimination of tcl_platform(threaded) is specified by TIP 599.
- login: "dgp"
- mimetype: "text/plain"
- title changed to:
Tcl 9 docs outdated regarding tcl_platform(threaded) (TIP 599)
Ticket change [c9dce2f83e] (rid 241021) by jan.nijtmans on 2025-06-06 22:36:15:
- closedate changed to: "2460833.44184281"
- closer changed to: "jan.nijtmans"
- icomment:
Doc fix [fd1b121aea547484|here] Thanks for the report, it was indeed 'pretty serious'
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [fe4efd29f6] (rid 241029) by oehhar on 2025-06-07 16:00:33:
- closedate changed to: "2460834.16705493"
- closer changed to: "oehhar"
- icomment:
A 2nd consequence is that the C macro "TCL_THREADS" is also gone. Here is a description about this: https://core.tcl-lang.org/tcl/wiki?name=Migrating+C+extensions+to+Tcl+9&p
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"