Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 773719 - Concurrent queue bind on the same queue results in crash
Concurrent queue bind on the same queue results in crash
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp (Show other bugs)
2.0
Unspecified Unspecified
high Severity high
: 2.3
: ---
Assigned To: Ted Ross
Leonid Zhaldybin
:
: 704510 (view as bug list)
Depends On:
Blocks: 698367 803771
  Show dependency treegraph
 
Reported: 2012-01-12 12:27 EST by Jason Dillaman
Modified: 2014-11-09 17:38 EST (History)
6 users (show)

See Also:
Fixed In Version: qpid-cpp-0.18-1
Doc Type: Bug Fix
Doc Text:
Cause: There was a defect in the qpid broker in which the list of bindings on a queue was insufficiently protected from concurrent access. Consequence: If multiple clients connected to the broker were adding and deleting bindings on the same queue, the broker might crash. Fix: The broker was updated to provide adequate protection for this data structure. Result: The broker does not crash with multiple clients manipulating the bindings on the same queue.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-03-06 13:54:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Reproducer (1.59 KB, text/x-c++src)
2012-01-13 10:35 EST, Ted Ross
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0561 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging 2.3 security update 2013-03-06 18:48:13 EST

  None (edit)
Description Jason Dillaman 2012-01-12 12:27:45 EST
Description of problem:
While concurrently creating bindings to the same queue from multiple broker connections, the broker will periodically crash.  

Version-Release number of selected component (if applicable):
qpid-cpp-server-0.12-6_ptc_hotfix_3.el6.x86_64

How reproducible:
Frequently

Steps to Reproduce:
1. Concurrently create bindings to the same queue
2. Observe that multiple threads are able to invoke QueueBindings::add concurrently 
  
Actual results:
Qpid broker will crash

Expected results:
Qpid broker does not crash and bindings are created

Additional info:
Comment 3 Ted Ross 2012-01-13 08:56:13 EST
Upstream issue:  https://issues.apache.org/jira/browse/QPID-3755
Comment 4 Ted Ross 2012-01-13 10:35:45 EST
Created attachment 555091 [details]
Reproducer
Comment 5 Ted Ross 2012-01-13 10:37:27 EST
I've attached a reproducer.  This program runs against a broker running on "localhost:10000" and has a queue called "test-queue" pre-configured.

If 20 instances of this program are run at the same time, the failure can be seen reliably.
Comment 6 Ted Ross 2012-01-13 11:21:04 EST
Fixed upstream in revision 1231158.
Comment 11 Pavel Moravec 2012-10-12 02:10:30 EDT
*** Bug 704510 has been marked as a duplicate of this bug. ***
Comment 12 Leonid Zhaldybin 2013-01-10 01:33:59 EST
Tested on RHEL5.9 and RHEL6.3 (both i386 and x86_64). This issue has been fixed.

Packages used for testing:

RHEL5.9
qpid-cpp-client-0.18-13.el5
qpid-cpp-client-devel-0.18-13.el5
qpid-cpp-client-devel-docs-0.18-13.el5
qpid-cpp-client-ssl-0.18-13.el5
qpid-cpp-server-0.18-13.el5
qpid-cpp-server-cluster-0.18-13.el5
qpid-cpp-server-devel-0.18-13.el5
qpid-cpp-server-ssl-0.18-13.el5
qpid-cpp-server-store-0.18-13.el5
qpid-cpp-server-xml-0.18-13.el5
qpid-java-client-0.18-6.el5
qpid-java-common-0.18-6.el5
qpid-java-example-0.18-6.el5
qpid-qmf-0.18-13.el5
qpid-qmf-devel-0.18-13.el5
qpid-tools-0.18-7.el5

RHEL6.3
qpid-cpp-client-0.18-13.el6
qpid-cpp-client-devel-0.18-13.el6
qpid-cpp-client-devel-docs-0.18-13.el6
qpid-cpp-server-0.18-13.el6
qpid-cpp-server-devel-0.18-13.el6
qpid-cpp-server-store-0.18-13.el6
qpid-cpp-server-xml-0.18-13.el6
qpid-java-client-0.18-6.el6
qpid-java-common-0.18-6.el6
qpid-java-example-0.18-6.el6
qpid-qmf-0.18-13.el6
qpid-tools-0.18-7.el6_3

-> VERIFIED
Comment 14 errata-xmlrpc 2013-03-06 13:54:23 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0561.html

Note You need to log in before you can comment on or make changes to this bug.