Bug 419791 - c++ client core dumps when it fails to connect
Summary: c++ client core dumps when it fails to connect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: beta
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
: ---
Assignee: Alan Conway
QA Contact: Kim van der Riet
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-11 14:17 UTC by Gordon Sim
Modified: 2011-08-12 16:21 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-02 16:05:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gordon Sim 2007-12-11 14:17:19 UTC
Running any of the client tests (e.g. perftest, client_test...) when there is no
broker to connect to will cause the client to core dump.

(gdb) bt
#0  0x45b8b410 in __kernel_vsyscall ()
#1  0x45bd1069 in raise () from /lib/libc.so.6
#2  0x45bd2671 in abort () from /lib/libc.so.6
#3  0x46832c30 in __gnu_cxx::__verbose_terminate_handler () from
/usr/lib/libstdc++.so.6
#4  0x46830655 in std::set_unexpected () from /usr/lib/libstdc++.so.6
#5  0x4682f9ea in __cxa_bad_cast () from /usr/lib/libstdc++.so.6
#6  0x468304b9 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#7  0x4670c996 in _Unwind_Backtrace () from /lib/libgcc_s.so.1
#8  0x4670ce32 in _Unwind_Resume () from /lib/libgcc_s.so.1
#9  0x00bcbb15 in ~ConnectionImpl (this=0x8ec9cb0) at ./qpid/framing/Handler.h:39
#10 0x00bba1d8 in
boost::detail::sp_counted_impl_p<qpid::client::ConnectionImpl>::dispose
(this=0x8ec9e90)
    at /usr/include/boost/checked_delete.hpp:34
#11 0x00bb81f9 in ~Connection (this=0xbf9957dc) at
/usr/include/boost/detail/sp_counted_base_gcc_x86.hpp:145
#12 0x080530b8 in main (argc=Cannot access memory at address 0x7871
) at client_test.cpp:133

Comment 1 Alan Conway 2007-12-11 23:23:24 UTC
Fixed in  Revision: 603411

URL: http://svn.apache.org/viewvc?rev=603411&view=rev
Log:
Fixed client crash on error opening a connection.

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionHandler.cpp
    incubator/qpid/trunk/qpid/cpp/src/qpid/client/ConnectionImpl.cpp



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