You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/01 17:33:59 UTC

[jira] [Commented] (PROTON-1217) Sporadic memory leak in C++ container_test

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

ASF subversion and git services commented on PROTON-1217:
---------------------------------------------------------

Commit 69e9c9f55804f452e6f744ac3672ffdcf7c94e26 in qpid-proton's branch refs/heads/0.13.x from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=69e9c9f ]

PROTON-1217: Sporadic memory leak in C++ container_test

Fixed missing call to listen_handler::on_closed in the event of an exception.


> Sporadic memory leak in C++ container_test
> ------------------------------------------
>
>                 Key: PROTON-1217
>                 URL: https://issues.apache.org/jira/browse/PROTON-1217
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>    Affects Versions: 0.12.2
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>            Priority: Blocker
>             Fix For: 0.13.0
>
>
> There is a sporadic leak (I see it about every 3-4 test runs) in the C++ unite tests, valgrind details below:
> {code}
>  8/10 Test #13: cpp_container_test ...............***Failed    2.45 sec
> ==30795== 1,200 (48 direct, 1,152 indirect) bytes in 3 blocks are definitely lost in loss record 2 of 3
> ==30795==    at 0x4C29216: operator new(unsigned long) (vg_replace_malloc.c:334)
> ==30795==    by 0x4E6EF32: proton::container::listen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, proton::connection_options const&) (container.cpp:83)
> ==30795==    by 0x4E6EFC3: proton::container::listen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (container.cpp:87)
> ==30795==    by 0x404313: (anonymous namespace)::test_handler::on_container_start(proton::container&) (container_test.cpp:67)
> ==30795==    by 0x4E804AF: proton::messaging_adapter::on_reactor_init(proton::proton_event&) (messaging_adapter.cpp:63)
> ==30795==    by 0x4E82D62: proton::proton_event::dispatch(proton::proton_handler&) (proton_event.cpp:36)
> ==30795==    by 0x4E71483: proton::handler_context::dispatch(pn_handler_t*, pn_event_t*, pn_event_type_t) (container_impl.cpp:71)
> ==30795==    by 0x50ED57D: pn_handler_dispatch (handler.c:102)
> ==30795==    by 0x50ECE8C: pn_reactor_process (reactor.c:402)
> ==30795==    by 0x50ED2A8: pn_reactor_run (reactor.c:480)
> ==30795==    by 0x4E83F2D: proton::reactor::run() (reactor.cpp:38)
> ==30795==    by 0x4E7091F: proton::container_impl::run() (container_impl.cpp:258)
> ==30795== 
> {code}



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

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