Bug 1000587 - spout core dump when amqp1.0 protocol specified with a bad ADDRESS
Summary: spout core dump when amqp1.0 protocol specified with a bad ADDRESS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 3.0
: ---
Assignee: Gordon Sim
QA Contact: Petr Matousek
URL:
Whiteboard:
Depends On:
Blocks: 1010399
TreeView+ depends on / blocked
 
Reported: 2013-08-23 18:57 UTC by Ernie
Modified: 2015-01-21 12:57 UTC (History)
5 users (show)

Fixed In Version: qpid-cpp-0.22-12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-21 12:57:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-5098 0 None None None Never

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


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