Skip to content
Tcl Source Code History Of Ticket 2018603
Login

History Of Ticket 2018603

Artifacts Associated With Ticket 2018603

  1. Ticket change [5dd33dc308] (rid 115533) by dkf on 2008-07-15 12:14:20:

    1. assignee initialized to: "mistachkin"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.6a1"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dkf"
    10. subsystem initialized to: "49. Threading"
    11. title initialized to: "thread.test hangs, thread-7.4 fails"
    12. type initialized to: "Bug"
  2. Ticket change [cfd03365d0] (rid 113049) by das on 2008-07-15 20:07:27:

    1. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      this failure is new, I verified that the original 2008-07-13 NRE commit passed the testsuite (except for the known failing tests (Bug 2017146)
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  3. Ticket change [a25437c062] (rid 109872) by das on 2008-07-15 20:37:29:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      the following fixes the problem for me,  looks like you broke this yourself with your "tidying up" Donal!
      maybe some more care is indicated before applying that kind of sweeping changes all over...
      
      Index: generic/tclBasic.c
      ===================================================================
      RCS file: /cvsroot/tcl/tcl/generic/tclBasic.c,v
      retrieving revision 1.311
      diff -u -p -r1.311 tclBasic.c
      --- generic/tclBasic.c14 Jul 2008 14:15:10 -00001.311
      +++ generic/tclBasic.c15 Jul 2008 13:31:08 -0000
      @@ -3843,7 +3843,7 @@ Tcl_CancelEval(
       
       goto done;
           }
      -    if (interp != NULL) {
      +    if (interp == NULL) {
       /*
        * A valid interp must be supplied.
        */
      
      
      
      
    3. login: "das"
    4. mimetype: "text/plain"
    5. username: "das"
  4. Ticket change [ab94c17869] (rid 101140) by dkf on 2008-07-15 20:50:50:

    1. closedate changed to: "2008-07-15T13:50:50"
    2. closer changed to: "dkf"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"