Tcl Source Code

View Ticket
Login
Ticket UUID: 40c055a2ae8f6c84e044897a8c37aa8621ba9df6
Title: FlushChannel: Assertion `!calledFromAsyncFlush' failed.
Type: Bug Version: 8.6.3rc1
Submitter: sbron Created on: 2014-11-01 09:56:51
Subsystem: 25. Channel System Assigned To: dgp
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2014-11-01 14:26:05
Resolution: Fixed Closed By: dgp
    Closed on: 2014-11-01 14:26:05
Description:
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
User Comments: dgp added on 2014-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.

dgp added on 2014-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.

sbron added on 2014-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).

Attachments: