Overview
| Artifact ID: | 9f1c70b7dc6106909c8ca41158a5787392371a5f |
|---|---|
| Ticket: | 3545363fffffffffffffffffffffffffffffffff
socket/vwait hang in io-53.10 and socket.test |
| User & Date: | twylite on 2012-07-18 11:48:25 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Hi, chan-io-53.10, io-52.10 and socket.test all hang (trunk build from 2012/07/18 using MSVC10, 32-bit tclsh running on Windows 7 64-bit). The common problem is that a vwait - which should be released by a fileevent or socket server accept - never returns. Details: Build setup (32-bit): 'Setting environment for using Microsoft Visual Studio 2010 x86 tools' Testing platform: Windows 7 (64-bit), PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel C:\User\Tcl_BUILD\cmake-2012\tcl-trunk>fossil pull Server: http://core.tcl.tk/tcl C:\User\Tcl_BUILD\cmake-2012\tcl-trunk>fossil update updated-to: f0f8f508748b68a589768e9e7df3beea28279df9 2012-07-17 13:08:18 UTC tags: trunk Build commands: set BUILDENV=VC10 set VER=86b3 set INSTALLDIR=%CD%\Release_%VER%_%BUILDENV% set OPTS=threads set TCLSH=%INSTALLDIR%\bin\tclsh86t.exe mkdir %INSTALLDIR% pushd win nmake /f makefile.vc release tcltest OPTS=%OPTS% CFG_ENCODING=\\\"utf-8\\\" INSTALLDIR=%INSTALLDIR% nmake /f makefile.vc install OPTS=%OPTS% CFG_ENCODING=\\\"utf-8\\\" INSTALLDIR=%INSTALLDIR% nmake /f makefile.vc test FAILURE #1: chan-io-53.10 hangs Cause: 'vwait ::forever' never returns; reason unknown Reproduce: nmake /f makefile.vc test TESTFLAGS="-file chanio.test -match chan-io-53.* -verbose pbstel" Workaround: add a watchdog to -setup to prevent hang; doesn't address underlying problem proc watchdog {} { lappend ::forever TIMEOUT set ::watchdogId [after 4000 [namespace code "watchdog"]] } watchdog # and in -cleanup catch { after cancel $::watchdogId } FAILURE #2: io-53.10 hangs As for chan-io-53.10 above FAILURE #3: io-29.33b crashes (probably unrelated) C:/User/Tcl_BUILD/cmake-2012/tcl-trunk/tests/io.test:2746: error: test failed: i o-29.33b TIP#398, no implicit flush of nonblocking on exit ==== io-29.33b TIP#398, no implicit flush of nonblocking on exit FAILED ==== Contents of test case: set f [open $path(script) w] puts $f { fconfigure stdout -blocking 0 puts -nonewline stdout [string repeat A 655360] flush stdout } close $f set f [open $path(script2) w] puts $f {after 2000} close $f set t1 [clock milliseconds] set ff [open "|[list [interpreter] $path(script2)]" w] catch {unset ::env(TCL_FLUSH_NONBLOCKING_ON_EXIT)} exec [interpreter] $path(script) >@ $ff set t2 [clock milliseconds] close $ff expr {($t2-$t1)/2000 ? $t2-$t1 : 0} ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: child killed: segmentation violation while executing "exec [interpreter] $path(script) >@ $ff" ("uplevel" body line 15) invoked from within "uplevel 1 $script" ---- errorCode: CHILDKILLED 9996 SIGSEGV {segmentation violation} ==== io-29.33b FAILED FAILURE #4: socket.test hangs in latency testing code (before any tests start) Cause: 'vwait s1' never returns; reason unknown Reproduce: nmake /f makefile.vc test TESTFLAGS="-file socket.test -verbose pbstel" Workaround: none - foundin changed to: "obsolete: 8.6b3"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "twylite"
- subsystem changed to: "25. Channel System"
- title changed to: "socket/vwait hang in io-53.10 and socket.test"
- type changed to: "Bug"