Artifacts Associated With Ticket 1136e210b3
Ticket change [cdc7a8552e] (rid 197655) by pointsman on 2022-02-06 17:35:38:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "8.7, 9.0"
- is_private initialized to: "0"
- login: "pointsman"
- priority initialized to: "5 Medium"
- private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "pointsman"
- subsystem initialized to: "25. Channel System"
- title initialized to: "8.7, 9.0: Bad input triggers DoReadChars Assertion"
- type initialized to: "Bug"
Ticket change [7bce46a376] (rid 257935) by serhiy.storchaka on 2026-10-13 16:29:20:
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- icomment:
Ticket change [73f76bcd09] (rid 259904) by serhiy.storchaka on 2026-10-22 17:19:25:
- closedate changed to: "2461327.1870390396"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"