You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (JIRA)" <qp...@incubator.apache.org> on 2008/11/24 14:30:44 UTC

[jira] Resolved: (QPID-1477) If linked with boost_serialization, client application using c++ lib will crash on connecting to broker

     [ https://issues.apache.org/jira/browse/QPID-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim resolved QPID-1477.
------------------------------

    Resolution: Fixed

Fixed by removal of boost spirit.

> If linked with boost_serialization, client application using c++ lib will crash on connecting to broker
> -------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-1477
>                 URL: https://issues.apache.org/jira/browse/QPID-1477
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: M4
>            Reporter: Gordon Sim
>            Priority: Blocker
>             Fix For: M4
>
>
> ==10300== Invalid read of size 4
> ==10300==    at 0x4325A38: boost::spirit::impl::object_with_id<boost::spirit::impl::grammar_tag, unsigned>::~object_with_id() (object_with_id.ipp:122)
> ==10300==    by 0x432215A: qpid::Url::parse(char const*) (grammar.hpp:50)
> ==10300==    by 0x804984B: qpid::Url::Url(char const*) (Url.h:60)
> Valgrind shows problem to be an issue with the spirit based url parser.
> #include <qpid/Url.h>
> using namespace qpid;
> int main(int argc, char ** argv)
> {
>     for (uint i = 0; i < 100; i++) {
>         Url url(argc > 1 ? argv[1] : "amqp:tcp:127.0.0.1");
>     }
>     return 0;
> }
> Compiling the above and linking with boost_serialization causes a crash. As known urls are passed to the client on opening a connection, this is causing crashes when c++ client apps are also linked against boost_serialization.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.