Overview
| Artifact ID: | 21d3d1239f7fa3e3845b761d5c01fd8b2a61f897 |
|---|---|
| Ticket: | 3408127fffffffffffffffffffffffffffffffff
several thread-7.* tests leak |
| User & Date: | dgp on 2012-07-13 01:04:42 |
Changes
- assignee changed to: "ferrieux"
- foundin changed to: "obsolete: 8.5.12"
- icomment:
Here's the ticket where the troublesome tests have been worked on. Here's output testing the 8.6b3 RC, all trimmed away except the interesting bits: ---- thread-7.26 start WARNING: drained 1 event(s) on main thread ++++ thread-7.26 PASSED ... ---- thread-7.28 start ==== thread-7.28 cancel: send async cancel nested catch inside pure bytecode loop FAILED ==== Contents of test case: unset -nocomplain ::threadSawError ::threadError ::threadId ::threadIdStarted set serverthread [thread::create -joinable [string map [list %ID% [thread::id]] { proc foobar {} { while {1} { if {![info exists foo]} then { # signal the primary thread that we are ready # to be canceled now (we are running). thread::send %ID% [list set ::threadIdStarted [thread::id]] set foo 1 } catch { while {1} { catch { while {1} { # we must call update here because otherwise # the thread cannot even be forced to exit. update } } } } } } foobar }]] # wait for other thread to signal "ready to cancel" vwait ::threadIdStarted; after 1000 set res [thread::send -async $serverthread {interp cancel}] thread::send $serverthread $::threadSuperKillScript vwait ::threadSawError($serverthread) thread::join $serverthread; drainEventQueue list $res [expr {[info exists ::threadIdStarted] ? $::threadIdStarted == $serverthread : 0}] [expr {[info exists ::threadId] ? $::threadId == $serverthread : 0}] [expr {[info exists ::threadError($serverthread)] ? [findThreadError $::threadError($serverthread)] : ""}] ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: target thread died while executing "thread::send $serverthread $::threadSuperKillScript" ("uplevel" body line 30) invoked from within "uplevel 1 $script" ---- errorCode: NONE ==== thread-7.28 FAILED ---- thread-7.29 start WARNING: drained 1 event(s) on main thread ++++ thread-7.29 PASSED ---- thread-7.30 start WARNING: drained 1 event(s) on main thread ++++ thread-7.30 PASSED ---- thread-7.31 start WARNING: drained 1 event(s) on main thread ++++ thread-7.31 PASSED ... ---- thread-7.34 start WARNING: drained 1 event(s) on main thread ++++ thread-7.34 PASSED ---- thread-7.35 start WARNING: drained 1 event(s) on main thread ++++ thread-7.35 PASSED ---- thread-7.36 start WARNING: drained 1 event(s) on main thread ++++ thread-7.36 PASSED ---- thread-7.37 start WARNING: drained 1 event(s) on main thread ++++ thread-7.37 PASSED The WARNINGs are reportedly evidence of pthread misbehavior. The single failure in this run is only one possible outcome. As few as zero and as many as 4 test failures are common possibilities. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"