high throughput multithreaded ca client appl thread could be trapped in lib

Bug #541383 reported by Jeff Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Wishlist
Jeff Hill

Bug Description

While inspecting the code I see a bug where a high throughput multi-threaded CA client application could get one of its threads trapped inside the ca client library

Original Mantis Bug: mantis-357
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=357

Tags: ca 3.14
Revision history for this message
Jeff Hill (johill-lanl) wrote :

I committed this fix

diff -u -b -w -b -r1.154.2.44 tcpiiu.cpp
--- tcpiiu.cpp 17 Jul 2009 21:33:18 -0000 1.154.2.44
+++ tcpiiu.cpp 31 Jul 2009 19:33:03 -0000
@@ -1694,7 +1694,7 @@
     guard.assertIdenticalMutex ( this->mutex );
     assert ( this->blockingForFlush > 0u );
     this->blockingForFlush--;
- if ( this->blockingForFlush == 0 ) {
+ if ( this->blockingForFlush > 0 ) {
         this->flushBlockEvent.signal ();
     }
 }

Revision history for this message
Jeff Hill (johill-lanl) wrote :

fixed in R3.14.11

Revision history for this message
Andrew Johnson (anj) wrote :

R3.14.11 released.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.