Skip to content
Tcl Source Code History Of Ticket 2511408
Login

History Of Ticket 2511408

Artifacts Associated With Ticket 2511408

  1. Ticket change [9e5c67e23c] (rid 96458) by dgp on 2009-01-15 21:20:32:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Four tests raising errors in the HEAD
      of the Thread package:
      
      ==== thread-19.10 thread::mutex - destroy locked exclusive mutex FAILED
      ==== Contents of test case:
      
          set emutex [thread::mutex create]
          thread::mutex lock $emutex
          set x [catch {thread::mutex destroy $emutex} msg]
          thread::mutex unlock $emutex
          thread::mutex destroy $emutex
          list $x $msg
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: no such mutex "mid6"
          while executing
      "thread::mutex unlock $emutex"
          ("uplevel" body line 5)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: NONE
      ==== thread-19.10 FAILED
      
      
      
      ==== thread-19.11 thread::mutex - destroy locked recursive mutex FAILED
      ==== Contents of test case:
      
          set rmutex [thread::mutex create -recursive]
          thread::mutex lock $rmutex
          set x [catch {thread::mutex destroy $rmutex} msg]
          thread::mutex unlock $rmutex
          thread::mutex destroy $rmutex
          list $x $msg
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: no such mutex "rid7"
          while executing
      "thread::mutex unlock $rmutex"
          ("uplevel" body line 5)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: NONE
      ==== thread-19.11 FAILED
      
      
      
      ==== thread-20.6 thread::mutex - destroy readlocked mutex FAILED
      ==== Contents of test case:
      
          set rwmutex [thread::rwmutex create]
          thread::rwmutex rlock $rwmutex
          set x [catch {thread::rwmutex destroy $rwmutex} msg]
          thread::rwmutex unlock $rwmutex
          thread::rwmutex destroy $rwmutex
          list $x $msg
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: no such mutex "wid10"
          while executing
      "thread::rwmutex unlock $rwmutex"
          ("uplevel" body line 5)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: NONE
      ==== thread-20.6 FAILED
      
      
      
      ==== thread-20.7 thread::mutex - destroy writelocked mutex FAILED
      ==== Contents of test case:
      
          set rwmutex [thread::rwmutex create]
          thread::rwmutex wlock $rwmutex
          set x [catch {thread::rwmutex destroy $rwmutex} msg]
          thread::rwmutex unlock $rwmutex
          thread::rwmutex destroy $rwmutex
          list $x $msg
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: no such mutex "wid11"
          while executing
      "thread::rwmutex unlock $rwmutex"
          ("uplevel" body line 5)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: NONE
      ==== thread-20.7 FAILED
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "80. Thread Package"
    11. title initialized to: "mutex test errors"
    12. type initialized to: "Bug"
  2. Ticket change [4e49e8d398] (rid 127200) by dgp on 2009-03-13 21:24:09:

    1. icomment:
      
      Any chance someone can look into
      these?  
      
      I'd like to consider Thread for
      bundling with Tcl 8.6, but failures
      like this make me think it's not ready.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dgp"
  3. Ticket change [bdcd062054] (rid 101967) by vasiljevic on 2009-03-13 21:41:16:

    1. icomment:
      Sorry for delay. I will look into that over the weekend.
      Was extremely busy last several months...
      
      Cheers
      Zoran
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  4. Ticket change [dd92af929c] (rid 114692) by ferrieux on 2009-05-01 00:33:58:

    1. icomment:
      Sorry, I don't understand: in all 4 cases the destroy seems to work, and the subsequent unlock attempt fails because the lock no longer exists. What am I missing ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  5. Ticket change [03669e03f4] (rid 119820) by ferrieux on 2009-05-01 04:46:45:

    1. icomment:
      More precisely, if the intent of the test is to verify that a held lock cannot be destroyed, then the style is obscure. Just adding an "if {$x} {...}" around the two cleanup lines would restore a clearer failure report.
      
          
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  6. Ticket change [88bc904c72] (rid 131911) by ferrieux on 2009-05-03 01:53:39:

    1. icomment:
      Looking at the code of RemoveMutex, it is obvious that RemoveAnyItem is called *before* SpMutexFinalize, which is responsible for checking locked status. Hence the behavior: the Tcl-related data structures (hash entry for the lock) are removed despite the abortion of the destroy operation. Now why are things done in this bizarre order ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [beee6d084f] (rid 102173) by vasiljevic on 2009-05-03 02:03:05:

    1. icomment:
      I don't know any more. Its been a long time I looked
      at that code. I will look into it...  Lately I am just 
      swamped with the "regular" work so I simply cannot
      get any spare time for other activities... 
      
      Cheers
      Zoran
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  8. Ticket change [cacbc4885c] (rid 95424) by ferrieux on 2009-05-04 06:12:14:

    1. icomment:
      OK I reordered things a bit in RemoveMutex (and similarly for cond vars). Test suite OK now (with other hanging test fix).
      I didn't touch the test themselves, because the style was not the culprit, as it turns out. The half-destruction was the root cause of the unclear result...
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  9. Add attachment "thr1.patch" [6417162c61] (rid 92695) by ferrieux on 2009-05-04 06:12:51.

  10. Ticket change [049c9cf820] (rid 120030) by ferrieux on 2009-05-04 06:12:51:

    1. icomment:
      
      
      File Added - 325597: thr1.patch
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  11. Ticket change [f87f5a5520] (rid 91545) by ferrieux on 2009-05-04 06:22:53:

    1. resolution changed to: "Fixed"
  12. Ticket change [6762cf0f1f] (rid 102892) by ferrieux on 2009-05-04 07:18:08:

    1. closedate changed to: "2009-05-04T00:18:08"
    2. closer changed to: "ferrieux"
    3. icomment:
      Committed after review by mistachkin.
      
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "ferrieux"