You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by CLIVE <cl...@ckjltd.co.uk> on 2015/07/23 23:57:56 UTC

0.34 cpp broker SEGV with --mgmt-enable 0 option - JIRA QPID-6654

Just running the 0.34 cpp broker on a customers CentOS 6.3 installation 
and noticed that when the --mgmt-enable is set to false the broker core 
dumps.

If I remove the --mgmt-enable option the broker runs fine.


 >> /usr/local/sbin/qpidd --auth no  --mgmt-enable 0
2015-07-23 14:43:53 [Broker] notice Broker (pid=52418) start-up
2015-07-23 14:43:53 [Security] notice SSL plugin not enabled, you must 
set --ssl-cert-db to enable it.
2015-07-23 14:43:53 [Store] warning Message store plugin: No storage 
providers available.
2015-07-23 14:43:53 [Broker] notice SASL disabled: No Authentication 
Performed
2015-07-23 14:43:53 [Network] notice Listening on TCP/TCP6 port 5672
Segmentation fault (core dumped)

 >> /usr/local/bin/qpid-receive -f -b 'xxxxxxx:5672' -a amq.topic/foo


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff5cb3700 (LWP 52455)]
0x0000003b9069d258 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&) ()
    from /usr/lib64/libstdc++.so.6
(gdb) where
#0  0x0000003b9069d258 in std::basic_string<char, 
std::char_traits<char>, std::allocator<char> 
 >::basic_string(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&) ()
    from /usr/lib64/libstdc++.so.6
#1  0x00007ffff7c5afb0 in getOsName (this=0x7ffff0001510, c=..., 
isClient=<value optimized out>) at 
/root/qpid-cpp-0.34/src/qpid/broker/System.h:57
#2  qpid::broker::ConnectionHandler::Handler::Handler 
(this=0x7ffff0001510, c=..., isClient=<value optimized out>) at 
/root/qpid-cpp-0.34/src/qpid/broker/ConnectionHandler.cpp:126
#3  0x00007ffff7c5b733 in 
qpid::broker::ConnectionHandler::ConnectionHandler (this=<value 
optimized out>, connection=..., isClient=false) at 
/root/qpid-cpp-0.34/src/qpid/broker/ConnectionHandler.cpp:112
#4  0x00007ffff7c56f78 in 
qpid::broker::amqp_0_10::Connection::Connection (this=0x7ffff0000f90, 
out_=0x7ffff0000a18, broker_=..., 
mgmtId_="qpid.172.16.168.158:5672-172.16.168.158:55302", external=...,
     link_=false, objectId_=0) at 
/root/qpid-cpp-0.34/src/qpid/broker/amqp_0_10/Connection.cpp:150
#5  0x00007ffff7c22c56 in qpid::broker::ProtocolRegistry::create_0_10 
(this=0x64b278, out=<value optimized out>, 
id="qpid.172.16.168.158:5672-172.16.168.158:55302", external=...,
     brokerActsAsClient=false) at 
/root/qpid-cpp-0.34/src/qpid/broker/Protocol.cpp:89
#6  0x00007ffff77305a7 in qpid::sys::AsynchIOHandler::readbuff 
(this=0x7fffe8000aa0, buff=0x7fffe8001940) at 
/root/qpid-cpp-0.34/src/qpid/sys/AsynchIOHandler.cpp:152
#7  0x00007ffff76aed8e in operator() (this=0x7fffe8000b60, h=...) at 
/usr/include/boost/function/function_template.hpp:1013
#8  qpid::sys::posix::AsynchIO::readable (this=0x7fffe8000b60, h=...) at 
/root/qpid-cpp-0.34/src/qpid/sys/posix/AsynchIO.cpp:453
#9  0x00007ffff7734ce3 in boost::function1<void, 
qpid::sys::DispatchHandle&>::operator() (this=<value optimized out>, 
a0=<value optimized out>) at 
/usr/include/boost/function/function_template.hpp:1013
#10 0x00007ffff7733976 in qpid::sys::DispatchHandle::processEvent 
(this=0x7fffe8000b68, type=qpid::sys::Poller::READABLE) at 
/root/qpid-cpp-0.34/src/qpid/sys/DispatchHandle.cpp:280
#11 0x00007ffff76d4add in process (this=0x64b740) at 
/root/qpid-cpp-0.34/src/qpid/sys/Poller.h:131
#12 qpid::sys::Poller::run (this=0x64b740) at 
/root/qpid-cpp-0.34/src/qpid/sys/epoll/EpollPoller.cpp:522
#13 0x00007ffff76c8e8a in qpid::sys::(anonymous namespace)::runRunnable 
(p=<value optimized out>) at 
/root/qpid-cpp-0.34/src/qpid/sys/posix/Thread.cpp:35
#14 0x0000003b852079d1 in start_thread () from /lib64/libpthread.so.0
#15 0x0000003b84ee88fd in clone () from /lib64/libc.so.6


Have raised JIRA QPID-6654 to cover this.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: 0.34 cpp broker SEGV with --mgmt-enable 0 option - JIRA QPID-6654

Posted by Gordon Sim <gs...@redhat.com>.
On 07/23/2015 10:57 PM, CLIVE wrote:
> Just running the 0.34 cpp broker on a customers CentOS 6.3 installation
> and noticed that when the --mgmt-enable is set to false the broker core
> dumps.
>
> If I remove the --mgmt-enable option the broker runs fine.

[...]

> Have raised JIRA QPID-6654 to cover this.

Thanks! I've checked in a fix.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org