Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2014-11-01
14:26 • Closed ticket [40c055a2ae]: FlushChannel: Assertion `!calledFromAsyncFlush' ... artifact: e5ac84d61d user: dgp
14:14 • Pending ticket [40c055a2ae]. artifact: 54abef32be user: dgp
13:50 • Ticket [40c055a2ae]: 4 changes artifact: 520086b4ae user: sbron
09:58 • Add attachment tclIO-bt.txt to ticket [40c055a2ae] artifact: d36c50d852 user: sbron
09:56 • New ticket [40c055a2ae] FlushChannel: Assertion `!calledFromAsyncFlush' fail... artifact: 2ed0834657 user: sbron

FlushChannel: Assertion `!calledFromAsyncFlush' failed.

Closed / Fixed40c055a2ae8f6c84e044897a8c37aa8621ba9df6Created 12 years agoUpdated 12 years ago
Descriptionplain2014-11-01 09:56:51
My program aborts with: 
tclsh8.6: /home/sbron/src/tcl8.6.3/generic/tclIO.c:2816: FlushChannel: Assertion `!calledFromAsyncFlush' failed.

Script reduced to:
package require http
package require tls
::http::register https 443 ::tls::socket
http::geturl https://core.tcl.tk/

This works fine with 8.6.1, but fails with 8.6.2 and 8.6.3rc1.
Using tls 1.6

All three versions of Tcl built with: --enable-symbols --disable-shared CFLAGS=-DPURIFY
sbronplain2014-11-01 13:50:48
Lowering severity since it was brought to my attention that this will only happen in debug builds (which I made to chase a different bug).
dgpplain2014-11-01 14:14:15
See

http://core.tcl.tk/tcl/info/c31ca233ca

The eof.patch attached there applied to tls should
take care of this problem.  Please confirm.
dgpplain2014-11-01 14:26:05
Apologies.  It is the tls.patch attached there 
that takes care of the problem.  Last I heard,
tls developers were still reviewing it.

I neglected to remove the assertion when
releasing 8.6.2.  I'll remove it (comment it out)
now for 8.6.3.
Log in (anonymous is fine) to add a comment.