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 "Nandika Jayawardana (JIRA)" <ji...@apache.org> on 2012/12/26 10:36:13 UTC

[jira] [Assigned] (AXIS2C-1617) Fixes for memory leaks in generated code

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

Nandika Jayawardana reassigned AXIS2C-1617:
-------------------------------------------

    Assignee: Nandika Jayawardana
    
> Fixes for memory leaks in generated code
> ----------------------------------------
>
>                 Key: AXIS2C-1617
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1617
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: wsdl2c tool
>    Affects Versions: 1.6.0
>            Reporter: Johan Abbors
>            Assignee: Nandika Jayawardana
>              Labels: bug, patch
>             Fix For: 1.7.0
>
>         Attachments: axis2_codegen_free_memory_after_attribute_parse.patch, axis2_codegen_free_memory_created_namespace.patch, axis2_codegen_free_memory_wrapper_adb_obj.patch
>
>
> The generated code leaks memory. I have been able to plug some of the memory leaks with the attached patches but one leak that I not was able to plug is freeing allocated memory for created attributes.
> I run our generate code through valgrind and got many similar reports like the one below:
> ==10087==    at 0x4023F50: malloc (vg_replace_malloc.c:236)
> ==10087==    by 0x49FABDC: axutil_allocator_malloc_impl (in /usr/lib/axis2/lib/libaxutil.so.0.6.0)
> ==10087==    by 0x4A2163C: axiom_attribute_create (in /usr/lib/axis2/lib/libaxis2_axiom.so.0.6.0)
> ==10087==    by 0x435E0A5: adb_bookmarkSetChoice_type1_serialize_obj (adb_bookmarkSetChoice_type1.c:550)
> ==10087==    by 0x442B641: axis2_extension_mapper_serialize (axis2_extension_mapper.c:5324)
> ==10087==    by 0x435E8EC: adb_bookmarkSetChoice_type1_serialize (adb_bookmarkSetChoice_type1.c:433)
> ==10087==    by 0x4360B2B: adb_bookmarkSet_type0_serialize_obj (adb_bookmarkSet_type0.c:1234)
> ==10087==    by 0x442BA1F: axis2_extension_mapper_serialize (axis2_extension_mapper.c:4223)
> ==10087==    by 0x436139C: adb_bookmarkSet_type0_serialize (adb_bookmarkSet_type0.c:814)
> ==10087==    by 0x440C012: adb_setBookmarks_serialize_obj (adb_setBookmarks.c:736)
> ==10087==    by 0x440C386: adb_setBookmarks_serialize (adb_setBookmarks.c:537)
> ==10087==    by 0x44427DD: axis2_stub_op_Kolibre_DaisyOnline_setBookmarks (axis2_stub_Kolibre_DaisyOnline.c:2135)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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