Skip to content
Tcl Source Code History Of Ticket 1136e210b3
Login

History Of Ticket 1136e210b3

Artifacts Associated With Ticket 1136e210b3

  1. Ticket change [cdc7a8552e] (rid 197655) by pointsman on 2022-02-06 17:35:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The following script reproduces the problem:
      
      set fd [open bad.txt wb+]
      # Seems (almost?) any character will do it
      puts -nonewline $fd "a"
      close $fd
      
      # Happens for any enconding out of
      # cns11643 gb2312-raw gb12345 jis0208 jis0212 ksc5601
      set fd [open bad.txt]
      fconfigure $fd -encoding cns11643
      set badtext [read $fd]
      close $fd
      
      Running this with either 9.0 (current trunk) or 8.7 (core-8-branch) results in (just with different line numbers):
      
      tclIO.c:5982: DoReadChars: Assertion `!GotFlag(statePtr, CHANNEL_EOF) || GotFlag(statePtr, CHANNEL_STICKY_EOF) || Tcl_InputBuffered((Tcl_Channel)chanPtr) == 0' failed.
      
      and of course abortion of the process
      
    5. foundin initialized to: "8.7, 9.0"
    6. is_private initialized to: "0"
    7. login: "pointsman"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "pointsman"
    14. subsystem initialized to: "25. Channel System"
    15. title initialized to: "8.7, 9.0: Bad input triggers DoReadChars Assertion"
    16. type initialized to: "Bug"
  2. Ticket change [7bce46a376] (rid 257935) by serhiy.storchaka on 2026-10-13 16:29:20:

    1. icomment:
      Fixed by [a02c5b9f8b] for [25cdcb7e8f], the same assertion with an incomplete
      UTF-8 sequence at the end of the file. With assertions enabled, the script
      aborts with its parent [af256f4469] and works with it, 9.0.0 and 9.1.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Duplicate"
    5. status changed to: "Closed"
  3. Ticket change [73f76bcd09] (rid 259904) by serhiy.storchaka on 2026-10-22 17:19:25:

    1. closedate changed to: "2461327.1870390396"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"