Overview
| Artifact ID: | 5dd33dc30837214936e46fec551fdf759d254873 |
|---|---|
| Ticket: | 2018603fffffffffffffffffffffffffffffffff
thread.test hangs, thread-7.4 fails |
| User & Date: | dkf on 2008-07-15 12:14:20 |
Changes
- assignee changed to: "mistachkin"
- cmimetype changed to: "text/plain"
- comment changed to:
In a threaded build on OSX, thread.test hangs in thread-7.5 after a failure in thread-7.4. Failure info is as follows: ==== thread-7.4 cancel: pure bytecode loop FAILED ==== Contents of test case: threadReap unset -nocomplain ::threadError ::threadId ::threadIdStarted set serverthread [testthread create -joinable { proc foobar {} { if {![info exists foo]} then { # signal the primary thread that we are ready # to be canceled now (we are running). testthread send [testthread id -main] [list set ::threadIdStarted [testthread id]] set foo 1 } while {1} { # No bytecode at all here... } } foobar }] # wait for other thread to signal "ready to cancel" vwait ::threadIdStarted; after 1000 set res [testthread cancel $serverthread] testthread join $serverthread while {[testthread event]} {}; # force events to service threadReap list $res [expr {[info exists ::threadIdStarted] ? $::threadIdStarted == $serverthread : 0}] [expr {[info exists ::threadId] ? $::threadId == $serverthread : 0}] [expr {[info exists ::threadError] ? [lindex [split $::threadError \n] 0] : "" }] ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: while executing "testthread cancel $serverthread" ("uplevel" body line 20) invoked from within "uplevel 1 $script" ---- errorCode: NONE ==== thread-7.4 FAILED - foundin changed to: "obsolete: 8.6a1"
- is_private changed to: "0"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dkf"
- subsystem changed to: "49. Threading"
- title changed to: "thread.test hangs, thread-7.4 fails"
- type changed to: "Bug"