Tcl Source Code

View Ticket
Login
Ticket UUID: bdcb5126c0a6acb22dd36edd090b8c1c399d76a3
Title: Failed assertion in test chan-io-7.3
Type: Bug Created on: 2023-03-20 12:35:05
Submitter: dgp Assigned to: jan.nijtmans
Subsystem: 24. Channel Commands Severity: Critical
Priority: 5 Medium Last modified: 2023-03-20 14:22:58
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2023-03-20 14:22:58
Version: core-8-branch
Description:
Make a debug build with configure options: --disable-shared --enable-symbols

Then

$ make test-tcl TESTFLAGS="-file chanio.test -match chan-io-7.3"
...

chanio.test
Test file error: tcltest: /home/dgp/fossil/tcl8.7/generic/tclIO.c:5017: Tcl_GetsObj: Assertion `!((statePtr)->flags & ((1<<9))) || ((statePtr)->flags & ((1<<10))) || ((statePtr)->flags & ((1<<15))) || Tcl_InputBuffered((Tcl_Channel)chanPtr) == 0' failed.
User Comments:
dgp added on 2023-03-20 12:44:25:
Same problem with test io-7.3

jan.nijtmans added on 2023-03-20 14:22:58:

Fixed [f96ef976ee881560|here], just by letting TableToUtf return exactly the same as in Tcl 8.6 (even though TCL_CONVERT_MULTIBYTE doesn't make much sense in this situation)