You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Sebastien Bigot (JIRA)" <ji...@apache.org> on 2008/09/12 13:20:44 UTC

[jira] Commented: (AXIS2C-1262) Leaking a axiom_soap_envelope_t in axiom_soap_builder_create error path

    [ https://issues.apache.org/jira/browse/AXIS2C-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630548#action_12630548 ] 

Sebastien Bigot commented on AXIS2C-1262:
-----------------------------------------

Sorry,

==13122== 48 bytes in 1 blocks are definitely lost in loss record 2 of 3
==13122==    at 0x4A1A0A7: malloc (vg_replace_malloc.c:207)
==13122==    by 0x674C59: axutil_allocator_malloc_impl (allocator.c:78)
==13122==    by 0x65EEBB: axiom_soap_envelope_create_null (soap_envelope.c:59)
==13122==    by 0x66095C: axiom_soap_builder_construct_node (soap_builder.c:555)
==13122==    by 0x66043A: axiom_soap_builder_create_om_element (soap_builder.c:352)
==13122==    by 0x660341: axiom_soap_builder_next (soap_builder.c:314)
==13122==    by 0x6601CD: axiom_soap_builder_get_soap_envelope (soap_builder.c:242)
==13122==    by 0x66124D: axiom_soap_builder_identify_soap_version (soap_builder.c:845)
==13122==    by 0x65FF77: axiom_soap_builder_create (soap_builder.c:140)
==13122==    by 0x4A5A82: cmg::axis::CreateSoapBuilder(boost::shared_ptr<axutil_env> const&, boost::shared_ptr<axiom_xml_reader> const&) (Axis.cpp:121)
==13122==    by 0x56B127: cmg::transport::ConvMapperSoapInterface::decode(CMG_Message&) (ConvMapperSoapInterface.cpp:65)
==13122==    by 0x43954A: testNew1ASoapConvMapper() (CMG_Tests1ASoap.cpp:80)
==13122==    by 0x439865: Test1ASoap() (CMG_Tests1ASoap.cpp:216)
==13122==    by 0x437DA5: Interactive() (CMG_Tests.cpp:362)
==13122==    by 0x43847F: main (CMG_Tests.cpp:643)

The pb is that we test that the soap NS is ok in axiom_soap_builder_identify_soap_version (where we echo the AXIS2_ERROR_TRANSPORT_LEVEL_INFORMATION_DOES_NOT_MATCH_WITH_SOAP)
after the call to axiom_soap_builder_get_soap_envelope.



> Leaking a axiom_soap_envelope_t in axiom_soap_builder_create error path
> -----------------------------------------------------------------------
>
>                 Key: AXIS2C-1262
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1262
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/soap
>    Affects Versions: 1.5.0
>            Reporter: Sebastien Bigot
>            Assignee: Supun Kamburugamuva
>         Attachments: jira-1262.patch
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> We're leaking memory in case we can't decode the soap envelope creating the axiom_soap_builder_t (in this case, wrong soap NS).
> [Wed Sep 10 09:58:33 2008] [error] soap_builder.c(886) AXIS2_ERROR_TRANSPORT_LEVEL_INFORMATION_DOES_NOT_MATCH_WITH_SOAP
> ==31384== 48 bytes in 1 blocks are definitely lost in loss record 2 of 3
> ==31384==    at 0x4A1A0A7: malloc (vg_replace_malloc.c:207)
> ==31384==    by 0x6746A5: axutil_allocator_malloc_impl (allocator.c:78)
> ==31384==    by 0x65E907: axiom_soap_envelope_create_null (soap_envelope.c:59)
> ==31384==    by 0x66037A: axiom_soap_builder_construct_node (soap_builder.c:546)
> ==31384==    by 0x65FE86: axiom_soap_builder_create_om_element (soap_builder.c:352)
> ==31384==    by 0x65FD8D: axiom_soap_builder_next (soap_builder.c:314)
> ==31384==    by 0x65FC19: axiom_soap_builder_get_soap_envelope (soap_builder.c:242)
> ==31384==    by 0x660C98: axiom_soap_builder_identify_soap_version (soap_builder.c:844)
> ==31384==    by 0x65F9C3: axiom_soap_builder_create (soap_builder.c:140)
> ==31384==    by 0x4A5A82: cmg::axis::CreateSoapBuilder(boost::shared_ptr<axutil_env> const&, boost::shared_ptr<axiom_xml_reader> const&) (Axis.cpp:123)
> ==31384==    by 0x56B0F7: cmg::transport::ConvMapperSoapInterface::decode(CMG_Message&) (ConvMapperSoapInterface.cpp:65)
> ==31384==    by 0x43954A: testNew1ASoapConvMapper() (CMG_Tests1ASoap.cpp:80)
> ==31384==    by 0x439865: Test1ASoap() (CMG_Tests1ASoap.cpp:216)
> ==31384==    by 0x437DA5: Interactive() (CMG_Tests.cpp:362)
> ==31384==    by 0x43847F: main (CMG_Tests.cpp:643)

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


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