Artifacts Associated With Ticket 8139aa83a446e62b
Ticket change [b82cce880b] (rid 208104) by SVIDevelopment on 2023-01-06 14:54:33:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
We built tcl 8.6.11 with clang on Linux and noticed a problem when a string was output to either the console/stdout, a pipe, or a file. This problem does not occur when the same tclsh is compiled with gcc. If a long string (several thousands of characters) is present in a variable, and a new string is formed in double quotes with ten to twenty characters followed by the contents of the variable, then in the output the contents of the variable are overwritten at different locations, the first of which is at position 4096, by the first 12 characters of the combined string. The internal representation of the variable as well as the combined string are not overwritten when checked afterwards. Example: ==== begin example ==== $ ./tclsh8.6 % info patchlevel 8.6.11 % puts [array get ::tcl_platform] osVersion 5.15.0-52-generic pointerSize 8 byteOrder littleEndian threaded 1 machine x86_64 platform unix pathSeparator : os Linux engine Tcl user builder wordSize 8 % set dotString [string repeat . 5000] ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ % set x "XXXXXXXXXXXXXXXXXXXXX$dotString" XXXXXXXXXXXXXXXXXXXXX...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................XXXXXXXXXXXX................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. % string last X $x 20 % ==== end example ==== $ clang --version Ubuntu clang version 14.0.0-1ubuntu1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
- foundin initialized to: "8.6.11"
- is_private initialized to: "0"
- login: "SVIDevelopment"
- priority initialized to: "5 Medium"
- private_contact initialized to: "54be8d2ecf914ca591bab8796ebb920a82b33bb2"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "SVIDevelopment"
- subsystem initialized to: "11. Conversions from String"
- title initialized to:
tclsh wrong result in string output when built with clang
- type initialized to: "Bug"
Ticket change [84d6c2b9d5] (rid 208105) by jan.nijtmans on 2023-01-06 15:43:22:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459951.15512579"
- closer changed to: "jan.nijtmans"
- icomment:
Dup of [24b9181478]. Already fixed in 8.6.12 and 8.6.13
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"