[ https://issues.apache.org/jira/browse/AMQ-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Huan Bui updated AMQ-5325: -------------------------- Attachment: InetAddress.cpp if (result != APR_SUCCESS || address == NULL) { throw UnknownHostException(__FILE__, __LINE__, "Could not resolve the IP Address of this host."); } Add "address == NULL" condition to prevent the crash. > CMS (C++ client) crashed if getLocalHost failed > ----------------------------------------------- > > Key: AMQ-5325 > URL: https://issues.apache.org/jira/browse/AMQ-5325 > Project: ActiveMQ > Issue Type: Bug > Components: CMS (C++ client) > Affects Versions: 5.10.0 > Environment: Suse Linux 12.3 > Reporter: Huan Bui > Priority: Minor > Attachments: InetAddress.cpp > > > CMS (C++ client) crashed when calling ActiveMQ::initializeLibrary(). Here is > the backtrace from gdb > #0 decaf::net::InetAddress::getLocalHost () at decaf/net/InetAddress.cpp:174 > #1 0x00007f071766247b in IdGeneratorKernel (this=0x31de9d0) at > activemq/util/IdGenerator.cpp:60 > #2 activemq::util::IdGenerator::initialize () at > activemq/util/IdGenerator.cpp:169 > #3 0x000000000043fe30 in main () > apr_sockaddr_info_get returned APR_SUCCESS but address is NULL causing the > segfault at InetAddress.cpp line 174. -- This message was sent by Atlassian JIRA (v6.2#6252)