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 "Johan Abbors (JIRA)" <ji...@apache.org> on 2012/11/16 13:42:12 UTC
[jira] [Created] (AXIS2C-1617) Fixes for memory leaks in generated
code
Johan Abbors created AXIS2C-1617:
------------------------------------
Summary: 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
Fix For: 1.7.0
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 when 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
[jira] [Updated] (AXIS2C-1617) Fixes for memory leaks in generated
code
Posted by "Johan Abbors (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johan Abbors updated AXIS2C-1617:
---------------------------------
Description:
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)
was:
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 when 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)
> 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
> Labels: bug, patch
> Fix For: 1.7.0
>
>
> 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
[jira] [Updated] (AXIS2C-1617) Fixes for memory leaks in generated
code
Posted by "Johan Abbors (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johan Abbors updated AXIS2C-1617:
---------------------------------
Attachment: axis2_codegen_free_memory_wrapper_adb_obj.patch
axis2_codegen_free_memory_created_namespace.patch
axis2_codegen_free_memory_after_attribute_parse.patch
> 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
> 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