Skip to content
Tcl Source Code History Of Ticket ee4d701bb3e0d035
Login

History Of Ticket ee4d701bb3e0d035

Artifacts Associated With Ticket ee4d701bb3e0d035

  1. Ticket change [b4340fec32] (rid 226549) by sebres on 2024-05-23 20:46:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      If one would test append with -singleproc 1, test append-3.10 fails, however it shows the same internal representation.
      
      Also testing of `append-3.10` solely doesn't fail, however by match `append-3.*` it does.<br/>
      By an attempt to debug it, I could reduce the failing command to exactly 2 tests:
      
      ```
      ./tcltest.sh -file 'append.test' -singleproc 1 -match 'append-3.6 append-3.10' -verbose tp
      ```
      
      (again, without -singleproc it'd not fail at all)
      
      
      Strange is, if I add small output for debug to [tcltest::CompareStrings, (line 1737)](./file?ci=tip&name=library/tcltest/tcltest.tcl&ln=1737):
      
      ```
      puts "***[tcl::unsupported::representation $expected]\n***[tcl::unsupported::representation $actual]\n***[expr {$expected eq $actual}]***"
      ```
      
      and test it with above-mentioned command, I see:
      
      ```
      ...
      append.test
      ---- append-3.6 start
      ***value is a pure string with a refcount of 10, object pointer at 0xd5ad60, string representation "😂"
      ***value is a utf32string with a refcount of 6, object pointer at 0xd62238, internal representation 0x38a2898:0x0, no string representation
      ***1***
      ++++ append-3.6 PASSED
      ---- append-3.10 start
      ***value is a utf32string with a refcount of 8, object pointer at 0xd61db8, internal representation 0x38a0990:0x0, string representation "😂"
      ***value is a utf32string with a refcount of 6, object pointer at 0xd62238, internal representation 0x38a2898:0x0, no string representation
      ***0***
      
      ==== append-3.10 append surrogates FAILED
      ==== Contents of test case:
      
          set x \uD83D
          string range $x 0 end
          append x \uDE02
      
      ---- Result was:
      \U0001F602
      ---- Result should have been (exact matching):
      \U0001F602
      ==== append-3.10 FAILED
      
      ```
      
      (so there is no string representation in the 2nd object in both cases, but one succeeds, however another doesn't)
      
      Trying to rewrite the test to a script to find the heisenbug, became confused still more - it changes the result vice versa (now in 3.6 it is not equal, but in 3.10 it is:
      
      ```
        # 3.6:
        set x \uDE02
        puts 3.6\t[expr {[set x \uD83D$x] eq "\uD83D\uDE02"}]
        # 3.10:
        set x \uD83D
        string range $x 0 end
        puts 3.10\t[expr {[append x \uDE02] eq [string range \uD83D\uDE02 0 end]}]
      ```
      
      so it results to:
      
      ```
        3.6     0
        3.10    1
      ```
      
      Weird.
      
      Can someone (familiar with the new unicode or utf) take a closer look here, please.
      
      My build was for windows, x86 mingw toolchain with gcc 11.2.0, configured as:
      
      ```
      $ ../configure --disable-zipfs --enable-time64bit # (--disable-64bit, 'cause x86)
      ```
      (didn't tested for other yet).
      
    5. foundin initialized to: "8.7+"
    6. is_private initialized to: "0"
    7. login: "sebres"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "50e9528765c18296566374b3fde2df942c394efd"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "sebres"
    14. subsystem initialized to: "16. Commands A-H"
    15. title initialized to:
      append.test strangely fails with -singleproc 1 (but not with 0), if it compare utf32string representations (on "constructed" smiley)
      
    16. type initialized to: "Bug"
  2. Ticket change [6c0382bf7a] (rid 226552) by apnadkarni on 2024-05-24 06:36:07:

    1. icomment:
      Sergey, you have marked the bug as 8.7+ but do you actually see the failures with 9.0 as well? I can't reproduce your results with current trunk.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  3. Ticket change [db5175c60c] (rid 226557) by sebres on 2024-05-24 07:40:38:

    1. foundin changed to: "8.7 only"
    2. icomment:
      Indeed, 9.0 seems to be not affected. Sorry for confusion.
      
    3. login: "sebres"
    4. mimetype: "text/plain"
  4. Ticket change [f52cc6fb36] (rid 226570) by sebres on 2024-05-24 10:15:22:

    1. comment changed to:
      If one would test append with -singleproc 1, test append-3.10 fails, however it shows the same internal representation.
      
      Also testing of `append-3.10` solely doesn't fail, however by match `append-3.*` it does.<br/>
      By an attempt to debug it, I could reduce the failing command to exactly 2 tests:
      
      ```
      ./tcltest.sh -file 'append.test' -singleproc 1 -match 'append-3.6 append-3.10' -verbose tp
      ```
      
      (again, without -singleproc it'd not fail at all)
      
      
      Strange is, if I add small output for debug to [tcltest::CompareStrings, (line 1737)](./file?ci=tip&name=library/tcltest/tcltest.tcl&ln=1737):
      
      ```
      puts "***[tcl::unsupported::representation $expected]\n***[tcl::unsupported::representation $actual]\n***[expr {$expected eq $actual}]***"
      ```
      
      and test it with above-mentioned command, I see:
      
      ```
      ...
      append.test
      ---- append-3.6 start
      ***value is a pure string with a refcount of 10, object pointer at 0xd5ad60, string representation "😂"
      ***value is a utf32string with a refcount of 6, object pointer at 0xd62238, internal representation 0x38a2898:0x0, no string representation
      ***1***
      ++++ append-3.6 PASSED
      ---- append-3.10 start
      ***value is a utf32string with a refcount of 8, object pointer at 0xd61db8, internal representation 0x38a0990:0x0, string representation "😂"
      ***value is a utf32string with a refcount of 6, object pointer at 0xd62238, internal representation 0x38a2898:0x0, no string representation
      ***0***
      
      ==== append-3.10 append surrogates FAILED
      ==== Contents of test case:
      
          set x \uD83D
          string range $x 0 end
          append x \uDE02
      
      ---- Result was:
      \U0001F602
      ---- Result should have been (exact matching):
      \U0001F602
      ==== append-3.10 FAILED
      
      ```
      
      (so there is no string representation in the 2nd object in both cases, but one succeeds, however another doesn't)
      
      Trying to rewrite the test to a script to find the heisenbug, became confused still more - it changes the result vice versa (now in 3.6 it is not equal, but in 3.10 it is:
      
      ```
        # 3.6:
        set x \uDE02
        puts 3.6\t[expr {[set x \uD83D$x] eq "\uD83D\uDE02"}]
        # 3.10:
        set x \uD83D
        string range $x 0 end
        puts 3.10\t[expr {[append x \uDE02] eq [string range \uD83D\uDE02 0 end]}]
      ```
      
      so it results to:
      
      ```
        3.6     0
        3.10    1
      ```
      
      Weird.
      
      Can someone (familiar with the new unicode or utf) take a closer look here, please.
      
    2. icomment: "x64 and linux affected in the same manner."
    3. login: "sebres"
    4. mimetype: "text/plain"
  5. Ticket change [db4fb97bda] (rid 226607) by jan.nijtmans on 2024-05-24 19:34:30:

    1. icomment:
      This is probably a duplicate of [69afa8538699ee84b3c55cbeed0907c4b4e7556b]
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [d296931177] (rid 226761) by sebres on 2024-05-27 11:57:45:

    1. closedate changed to: "2460457.99844527"
    2. closer changed to: "sebres"
    3. icomment: "Indeed, then let's avoid duplicates."
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"