Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 71a0ac08b281ba5dd1aefe40961a719126d4b3de58c8a99dcaf9776aae7c3681
Ticket: 206e58994f3806ec880a59ecc516ee632cd89424
tcl builds with clang but fails to run correctly
User & Date: dilfridge on 2021-12-02 21:38:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The same build which produces a fully functional tcl using gcc also succeeds when using clang, but the resulting binary produces erratic results. 
    
    chan.test prints a lot of failures and eventually hangs. Random example: 
    
    
    
    ==== chan-io-3.5 WriteChars: saved != 0 FAILED
    ==== Contents of test case:
    
        # Bytes produced by UtfToExternal from end of last channel buffer had to
        # be moved to beginning of next channel buffer to preserve requested
        # buffersize.
        set f [open $path(test1) w]
        chan configure $f -encoding jis0208 -buffersize 17
        chan puts -nonewline $f "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
        set x [list [contents $path(test1)]]
        chan close $f
        lappend x [contents $path(test1)]
    
    ---- Result was:
    !)!)!)!)!)!)!)!)! !)!)!)!)!)!)!)!)!!)!)!)!)!)!)!
    ---- Result should have been (exact matching):
    !)!)!)!)!)!)!)!)! !)!)!)!)!)!)!)!)!)!)!)!)!)!)!)
    ==== chan-io-3.5 FAILED
    
  5. foundin changed to: "8.6.11"
  6. is_private changed to: "0"
  7. login: "dilfridge"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "dilfridge"
  13. subsystem changed to: "69. Other"
  14. title changed to: "tcl builds with clang but fails to run correctly"
  15. type changed to: "Bug"