Ctrl-C crashs the tcl at vwait call

Posted by lavixu on 2015-10-20 20:58
Forums: Expect discussion | OS: Windows 7

Hi ActiveState,

I run into this crash issue, which you could reproduce with run following simple code:
----------------------------------------------------------
package require Expect

set tovar 1
set strCmd "cmd.exe"
set pid [exp_spawn $strCmd]
puts "The pid is: $pid"
puts "now vwait"
vwait tovar
puts "end"
----------------------------------------------------------
Script will stop at vwait call, then hit "Ctrl-C" to stop. Windows reports crash after this information:

FlushChannel: damaged channel list

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

P.S.
I have ActiveTcl8.5.18.0.298892-win32-ix86-threaded installed and with 543 Expect (installed by teacup.exe) package.

Thanks,