Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5dd33dc30837214936e46fec551fdf759d254873
Ticket: 2018603fffffffffffffffffffffffffffffffff
thread.test hangs, thread-7.4 fails
User & Date: dkf on 2008-07-15 12:14:20
Changes

  1. assignee changed to: "mistachkin"
  2. cmimetype changed to: "text/plain"
  3. 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
    
    
    
  4. foundin changed to: "obsolete: 8.6a1"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dkf"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "thread.test hangs, thread-7.4 fails"
  12. type changed to: "Bug"