[ 
https://issues.apache.org/jira/browse/QPID-6415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14338799#comment-14338799
 ] 

ASF subversion and git services commented on QPID-6415:
-------------------------------------------------------

Commit 1662509 from [~aconway] in branch 'qpid/trunk'
[ https://svn.apache.org/r1662509 ]

QPID-6415: Core dump in ha_tests and interlink_tests with proton 0.9

With proton 0.9 you need call pn_connectin_free before pn_transport_free.

> Core dump in ha_tests and interlink_tests with proton 0.9
> ---------------------------------------------------------
>
>                 Key: QPID-6415
>                 URL: https://issues.apache.org/jira/browse/QPID-6415
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.30
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>            Priority: Blocker
>             Fix For: 0.32
>
>         Attachments: test.sh
>
>
> The qpid-send and qpid-receive clients dump core in 
>     ha_tests.LongTests.test_failover_send_receive
> The python test driver process dumps core in interlink_tests
> In both cases there is a double free during connection clean-up as part of a 
> reconnect. It is not clear if this is a bug in the c++ qpid messaging client 
> or in proton.
> {noformat}
> ==20092== Invalid read of size 8
> ==20092==    at 0x5ABACF5: pn_connection_unbound (engine.c:167)
> ==20092==    by 0x5ABE1CB: pn_transport_unbind (transport.c:636)
> ==20092==    by 0x5ABE247: pn_transport_finalize (transport.c:519)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x5ABA204: pn_connection_finalize (engine.c:463)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x4C5A8C6: qpid::messaging::amqp::ConnectionContext::reset() 
> (ConnectionContext.cpp:547)
> ==20092==    by 0x4C5AD4C: 
> qpid::messaging::amqp::ConnectionContext::checkDisconnected() 
> (ConnectionContext.cpp:572)
> ==20092==    by 0x4C5A99D: qpid::messaging::amqp::ConnectionContext::check() 
> (ConnectionContext.cpp:559)
> ==20092==    by 0x4C5AF4B: qpid::messaging::amqp::ConnectionContext::wait() 
> (ConnectionContext.cpp:593)
> ==20092==    by 0x4C5B0C2: 
> qpid::messaging::amqp::ConnectionContext::wait(boost::shared_ptr<qpid::messaging::amqp::SessionContext>,
>  boost::shared_ptr<qpid::messaging::amqp::SenderContext>) 
> (ConnectionContext.cpp:612)
> ==20092==    by 0x4C59DAD: 
> qpid::messaging::amqp::ConnectionContext::send(boost::shared_ptr<qpid::messaging::amqp::SessionContext>,
>  boost::shared_ptr<qpid::messaging::amqp::SenderContext>, 
> qpid::messaging::Message const&, bool) (ConnectionContext.cpp:462)
> ==20092==    by 0x4C79D80: 
> qpid::messaging::amqp::SenderHandle::send(qpid::messaging::Message const&, 
> bool) (SenderHandle.cpp:42)
> ==20092==    by 0x4CD4399: 
> qpid::messaging::Sender::send(qpid::messaging::Message const&, bool) 
> (Sender.cpp:40)
> ==20092==    by 0x40E45B: main (qpid-send.cpp:413)
> ==20092==  Address 0x5fee1b0 is 192 bytes inside a block of size 272 free'd
> ==20092==    at 0x4A07577: free (in 
> /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==20092==    by 0x5AAF545: pn_class_decref (object.c:103)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x5ABACF4: pn_connection_unbound (engine.c:168)
> ==20092==    by 0x5ABE1CB: pn_transport_unbind (transport.c:636)
> ==20092==    by 0x5ABE247: pn_transport_finalize (transport.c:519)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x5ABA204: pn_connection_finalize (engine.c:463)
> ==20092==    by 0x5AAF527: pn_class_decref (object.c:97)
> ==20092==    by 0x4C5A8C6: qpid::messaging::amqp::ConnectionContext::reset() 
> (ConnectionContext.cpp:547)
> ==20092==    by 0x4C5AD4C: 
> qpid::messaging::amqp::ConnectionContext::checkDisconnected() 
> (ConnectionContext.cpp:572)
> ==20092==    by 0x4C5A99D: qpid::messaging::amqp::ConnectionContext::check() 
> (ConnectionContext.cpp:559)
> ==20092==    by 0x4C5AF4B: qpid::messaging::amqp::ConnectionContext::wait() 
> (ConnectionContext.cpp:593)
> ==20092==    by 0x4C5B0C2: 
> qpid::messaging::amqp::ConnectionContext::wait(boost::shared_ptr<qpid::messaging::amqp::SessionContext>,
>  boost::shared_ptr<qpid::messaging::amqp::SenderContext>) 
> (ConnectionContext.cpp:612)
> ==20092==    by 0x4C59DAD: 
> qpid::messaging::amqp::ConnectionContext::send(boost::shared_ptr<qpid::messaging::amqp::SessionContext>,
>  boost::shared_ptr<qpid::messaging::amqp::SenderContext>, 
> qpid::messaging::Message const&, bool) (ConnectionContext.cpp:462)
> ==20092==    by 0x4C79D80: 
> qpid::messaging::amqp::SenderHandle::send(qpid::messaging::Message const&, 
> bool) (SenderHandle.cpp:42)
> ==20092==    by 0x4CD4399: 
> qpid::messaging::Sender::send(qpid::messaging::Message const&, bool) 
> (Sender.cpp:40)
> ==20092==    by 0x40E45B: main (qpid-send.cpp:413)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to