Bug 1380702

Summary: memory leak when rerouting and deleting a queue in parallel
Product: Red Hat Enterprise MRG Reporter: Tomas <tkratky>
Component: qpid-cppAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: Messaging QE <messaging-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: jross
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
reproducer from bzID=1333437 none

Description Tomas 2016-09-30 11:33:06 UTC
Created attachment 1206225 [details]
reproducer from bzID=1333437

Description of problem: 
When broker is deleting a queue while performing a QMF queue method (i.e. reroute, but I guess any can be used), there is a memory leak on broker site


Version-Release number of selected component (if applicable):
qpid-cpp-server-0.34-17
rhel7_x64, rhel6_x64


How reproducible:
100% in 1hour

Setup:
Compile attached reproducer (taken over by aconway from bz1333437)
g++ -std=c++0x -g  -L/usr/local/lib64 -lqpidmessaging -lqpidtypes -lpthread stress.cpp -o stress

Steps to Reproduce:
1.run broker
2.start reproducer
3.Monitor memory usage of primary broker.

Actual results:
- memory usage grows over the time 

Expected results:
- no memory usage growth



Additional info:
reproducible only with version 0.34-17 and bigger 
earlier versions contains bug when broker die on segmentation fault with this reproducer
related to https://bugzilla.redhat.com/show_bug.cgi?id=1333437