Bug 1000587

Summary: spout core dump when amqp1.0 protocol specified with a bad ADDRESS
Product: Red Hat Enterprise MRG Reporter: Ernie <eallen>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matousek <pematous>
Severity: high Docs Contact:
Priority: high    
Version: DevelopmentCC: esammons, gsim, iboverma, jross, pematous
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 12:57:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1010399    

Description Ernie 2013-08-23 18:57:18 UTC
Description of problem:
The c++ spout utility core dumps when 

Version-Release number of selected component (if applicable):
0.22-8

How reproducible:
100%

Steps to Reproduce:
1. Install qpid-cpp-client-devel
2. cd /usr/share/examples/messaging
3. mkdir BLD
4. cd BLD
5. cmake ..
6. make
7. ./spout --connection-options "{protocol:amqp1.0}" foo

Actual results:
No such target : foo
terminate called after throwing an instance of 'qpid::messaging::LinkError'
  what():  Link detached by peer with amqp:not-found: Node not found: foo
Aborted (core dumped)

Expected results:
An error message that explains that foo is not valid, but no core

Additional info:
The utility drain does not produce a core in the same situation.
./drain --connection-options "{protocol:amqp1.0}" foo
outputs
No such source : foo

If {protocol:amqp1.0} is not specified on the spout command line, no core is produced.

Comment 1 Ernie 2013-08-23 19:00:45 UTC
Description of problem should read 
The c++ spout utility core dumps when --comment-options "{protocol:amqp1.0}" is specified on the command line and an invalid address is used.

Comment 2 Gordon Sim 2013-08-26 11:31:50 UTC
Fixed upstream: https://svn.apache.org/r1517498

Comment 3 Petr Matousek 2014-02-10 14:49:55 UTC
This issue has been fixed. Verified on rhel6.5 (x86_64, i386).

packages under test:
qpid-cpp-*-0.22-33

-> VERIFIED