Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.7.0
-
None
-
None
-
Windows 7 (32 bits) with Visual C++ 2010
-
Patch Available
Description
By closing the connection, ActiveMQConnection::close() and AdvisoryConsumer::processDestinationInfo() access/modify in the same time on config.activeTempDestinations. This gives a crash.
Test case:
- compile test.cc
- run the two command lines in parallel
+ test.exe client1
+ test.exe client2
Proposed fix:
Dispose the advisory consumer on closing the connection.