Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d60c9d51b7219d19e94b2b0d2943f9346a1e5ade17c337248d3a224786bc238f
Ticket: b630fc4fddbdebdfd166b450643adae747ad3497
io-75.14 fails under valgrind
User & Date: dgp on 2023-07-14 16:47:54
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    I see `make valgrind` of core-8 branch produce...
    
    ==== io-75.14 [gets] succesfully returns lines prior to error
    
            invalid utf-8 encoding [gets] continues in non-strict mode after error FAILED
    ==== Contents of test case:
    
        lappend res [gets $chan]
        lappend res [gets $chan]
        lappend res [catch {gets $chan} cres] $cres
        chan configure $chan -profile tcl8
        lappend res [gets $chan]
        lappend res [gets $chan]
        close $chan
        return $res
    
    ---- Result was:
    -1 ret-1 0 ret0 1 ret1 2 ret2 3 ret3 4 ret4 5 ret5 a b 1 {error reading "file5": invalid or incomplete multibyte or wide character} c\xC0 d
    ---- Result should have been (glob matching):
    a b 1 {error reading "*": invalid or incomplete multibyte or wide character} c\xC0 d
    ==== io-75.14 FAILED
    
    
    This suggests the test is [lappend]ing onto a $res that starts with a non
    empty list value.  The simple fix for this would be a -setup the initializes
    to the empty list the test expects.
    
    That said, it is a mystery to me why the failure only shows up under valgrind
    testing and not all the time.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "io-75.14 fails under valgrind"
  16. type changed to: "Bug"