activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huan Bui (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-5325) CMS (C++ client) crashed if getLocalHost failed
Date Wed, 20 Aug 2014 18:48:26 GMT

     [ 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)

Mime
View raw message