[ https://issues.apache.org/jira/browse/AXIS2C-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar updated AXIS2C-1376: ------------------------------------- Fix Version/s: 1.7.0 Assignee: S.Uthaiyashankar > Lots of memory leak in axis2/c library > -------------------------------------- > > Key: AXIS2C-1376 > URL: https://issues.apache.org/jira/browse/AXIS2C-1376 > Project: Axis2-C > Issue Type: Bug > Affects Versions: 1.6.0 > Environment: window XP, using axis2/c for web service client > component in a c++ application > Reporter: Frank Zhou > Assignee: S.Uthaiyashankar > Fix For: 1.7.0 > > > I did a purify and here is the summary of the memory leak with some trace > stacks. > [I] Summary of all memory leaks... > =========================== > [W] MLK: Memory leak of 39200 bytes from 70 blocks allocated in axis2_opendir > [axutil.dll] > Distribution of leaked blocks > Allocation location > malloc [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:138] > axis2_opendir [c:\axis2c\util\src\platforms\windows\dir_windows.c:45] > axis2_scandir [c:\axis2c\util\src\platforms\windows\dir_windows.c:203] > axutil_dir_handler_list_service_or_module_dirs > [c:\axis2c\util\src\dir_handler.c:213] > axis2_repos_listener_search > [c:\axis2c\src\core\deployment\repos_listener.c:330] > axis2_repos_listener_check_modules > [c:\axis2c\src\core\deployment\repos_listener.c:215] > axis2_repos_listener_init > [c:\axis2c\src\core\deployment\repos_listener.c:301] > axis2_repos_listener_create_with_folder_name_and_dep_engine > [c:\axis2c\src\core\deployment\repos_listener.c:130] > axis2_dep_engine_load_client > [c:\axis2c\src\core\deployment\dep_engine.c:963] > axis2_build_client_conf_ctx > [c:\axis2c\src\core\deployment\conf_init.c:192] > [W] MLK: Memory leak of 18720 bytes from 468 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > Distribution of leaked blocks > Allocation location > malloc [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:138] > axutil_allocator_malloc_impl [c:\axis2c\util\src\allocator.c:75] > axiom_node_create [c:\axis2c\axiom\src\om\om_node.c:75] > axiom_text_create_str [c:\axis2c\axiom\src\om\om_text.c:580] > axiom_stax_builder_create_om_text > [c:\axis2c\axiom\src\om\om_stax_builder.c:274] > axiom_stax_builder_next [c:\axis2c\axiom\src\om\om_stax_builder.c:841] > axiom_document_build_next [c:\axis2c\axiom\src\om\om_document.c:131] > axiom_document_build_all [c:\axis2c\axiom\src\om\om_document.c:204] > axis2_desc_builder_build_om > [c:\axis2c\src\core\deployment\desc_builder.c:205] > axis2_module_builder_populate_module > [c:\axis2c\src\core\deployment\module_builder.c:143] > [W] MLK: Memory leak of 18520 bytes from 463 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > Distribution of leaked blocks > Allocation location > malloc [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:138] > axutil_allocator_malloc_impl [c:\axis2c\util\src\allocator.c:75] > axiom_text_create_str [c:\axis2c\axiom\src\om\om_text.c:588] > axiom_stax_builder_create_om_text > [c:\axis2c\axiom\src\om\om_stax_builder.c:274] > axiom_stax_builder_next [c:\axis2c\axiom\src\om\om_stax_builder.c:841] > axiom_document_build_next [c:\axis2c\axiom\src\om\om_document.c:131] > axiom_document_build_all [c:\axis2c\axiom\src\om\om_document.c:204] > axis2_desc_builder_build_om > [c:\axis2c\src\core\deployment\desc_builder.c:205] > axis2_module_builder_populate_module > [c:\axis2c\src\core\deployment\module_builder.c:143] > axis2_arch_reader_read_module_arch > [c:\axis2c\src\core\deployment\arch_reader.c:309] > [W] MLK: Memory leak of 16384 bytes from 32 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > Distribution of leaked blocks > Allocation location > malloc [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:138] > axutil_allocator_malloc_impl [c:\axis2c\util\src\allocator.c:75] > axutil_log_create [c:\axis2c\util\src\log.c:171] > axutil_env_create_all [c:\axis2c\util\src\env.c:158] > XTran_webservice::getnext(XTran_desc&) > [x:\src\xform\twebservicecall.cpp:605] > XTran_webservice::execute(XTran_desc&) > [x:\src\xform\twebservicecall.cpp:1024] > XTran_desc::execute(void) [x:\src\core\xtran.cpp:582] > Rww_thread::main(void) [x:\src\rww\rww.cpp:423] > RWTFunctor0MImp<Rww_thread,void>::run(void)const > [x:\inc\rw\functor\rwtfunctor0mimp.cc:45] > RWFunctor0::()(void)const [d:\rwdebugnative\rw\functor\rwfunctor0.h:162] > [W] MLK: Memory leak of 14560 bytes from 364 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > Distribution of leaked blocks > Allocation location > malloc [f:\vs70builds\3077\vc\crtbld\crt\src\dbgheap.c:138] > axutil_allocator_malloc_impl [c:\axis2c\util\src\allocator.c:75] > axiom_node_create [c:\axis2c\axiom\src\om\om_node.c:75] > axiom_text_create_str [c:\axis2c\axiom\src\om\om_text.c:580] > axiom_stax_builder_create_om_text > [c:\axis2c\axiom\src\om\om_stax_builder.c:278] > axiom_stax_builder_next [c:\axis2c\axiom\src\om\om_stax_builder.c:841] > axiom_document_build_next [c:\axis2c\axiom\src\om\om_document.c:131] > axiom_document_build_all [c:\axis2c\axiom\src\om\om_document.c:204] > axis2_desc_builder_build_om > [c:\axis2c\src\core\deployment\desc_builder.c:205] > axis2_module_builder_populate_module > [c:\axis2c\src\core\deployment\module_builder.c:143] > [W] MLK: Memory leak of 14440 bytes from 361 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 13508 bytes from 307 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 13120 bytes from 820 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 12480 bytes from 312 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [I] MPK: Potential memory leak of 10350 bytes from 5 blocks allocated in > ConnOra::ociServerAttach(OCIServer *,OCIError *,WORD const*,int,UINT) > [actad.dll] > [W] MLK: Memory leak of 9664 bytes from 151 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 9408 bytes from 147 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 7881 bytes from 71 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 7700 bytes from 77 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 7252 bytes from 817 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 7000 bytes from 70 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 6820 bytes from 155 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 6643 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 6424 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 6240 bytes from 156 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 6120 bytes from 153 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 6052 bytes from 68 blocks allocated in mbsdup > [MSVCR71D.dll] > [W] MLK: Memory leak of 6000 bytes from 150 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 5913 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 5860 bytes from 293 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 5860 bytes from 293 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 5832 bytes from 72 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 5820 bytes from 291 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 5209 bytes from 292 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4928 bytes from 77 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4880 bytes from 305 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4864 bytes from 76 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4800 bytes from 75 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4800 bytes from 75 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4800 bytes from 75 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4688 bytes from 293 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4688 bytes from 293 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4672 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4672 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4608 bytes from 72 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4608 bytes from 72 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4576 bytes from 22 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 4576 bytes from 22 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 4544 bytes from 71 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 4544 bytes from 71 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [I] MPK: Potential memory leak of 4480 bytes from 8 blocks allocated in > axis2_opendir [axutil.dll] > [W] MLK: Memory leak of 4200 bytes from 75 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [I] MPK: Potential memory leak of 4096 bytes from 1 block allocated in > axiom_xml_writer_create_for_memory [axis2_parser.dll] > [I] MPK: Potential memory leak of 4096 bytes from 1 block allocated in > axiom_xml_writer_create_for_memory [axis2_parser.dll] > [W] MLK: Memory leak of 4032 bytes from 56 blocks allocated in > ?_alloc...@u_node@?$_tree_...@v?$_tmap_traits@VDIUString@@v...@u?$less@VDIUString@@@std@@v?$alloca...@vdiustring@@@3...@$0a@@std@@@std@@@std@@yapau_n...@?$_tree_nod@v?$_tmap_tra...@vdiustring@@v...@u?$less@VDIUString@@@std@@v?$alloca...@vdiustring@@@3...@$0a@@std@@@0...@ipau120@@Z > [actad.dll] > [W] MLK: Memory leak of 3980 bytes from 199 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3960 bytes from 198 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3940 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3796 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3328 bytes from 99 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 3328 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [I] MPK: Potential memory leak of 3328 bytes from 32 blocks allocated in > xercesc_2_7::MemoryManagerImpl::allocate(UINT) [xerces-c_2_7D.dll] > [W] MLK: Memory leak of 3276 bytes from 15 blocks allocated in > ?_alloc...@velem_desc@@@std@@YAPAVElem_desc@@IPAV1@@Z [actad.dll] > [W] MLK: Memory leak of 3152 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3152 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3120 bytes from 156 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3120 bytes from 15 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 3080 bytes from 77 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3040 bytes from 76 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3040 bytes from 76 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 3000 bytes from 75 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2952 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2912 bytes from 14 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 2880 bytes from 72 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2840 bytes from 71 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2772 bytes from 66 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2720 bytes from 8 blocks allocated in > ReplaceExpressionWithNewColumn [actad.dll] > [W] MLK: Memory leak of 2664 bytes from 37 blocks allocated in > ?_alloc...@u_node@?$_tree_...@v?$_tmap_traits@VDIUString@@v...@u?$less@VDIUString@@@std@@v?$alloca...@vdiustring@@@3...@$0a@@std@@@std@@@std@@yapau_n...@?$_tree_nod@v?$_tmap_tra...@vdiustring@@v...@u?$less@VDIUString@@@std@@v?$alloca...@vdiustring@@@3...@$0a@@std@@@0...@ipau120@@Z > [actad.dll] > [W] MLK: Memory leak of 2640 bytes from 304 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2592 bytes from 36 blocks allocated in > ?_alloc...@u_node@?$_tree_...@v?$_tmap_traits@VDIUString@@v...@u?$less@VDIUString@@@std@@v?$alloca...@vdiustring@@@3...@$0a@@std@@@std@@@std@@yapau_n...@?$_tree_nod@v?$_tmap_tra...@vdiustring@@v...@u?$less@VDIUString@@@std@@v?$alloca...@vdiustring@@@3...@$0a@@std@@@0...@ipau120@@Z > [actad.dll] > [W] MLK: Memory leak of 2496 bytes from 78 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2496 bytes from 78 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2480 bytes from 155 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2288 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2080 bytes from 104 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2080 bytes from 104 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2080 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2080 bytes from 104 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 2080 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1856 bytes from 54 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 1664 bytes from 104 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1648 bytes from 103 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1611 bytes from 293 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1599 bytes from 291 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1594 bytes from 290 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1540 bytes from 77 blocks allocated in > XTran_webservice::genXMLForInput(XTran_desc&,basic_string<char,char_traits<char>::std,allocator<char>::std>::std&) > [actad.dll] > [W] MLK: Memory leak of 1540 bytes from 77 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1540 bytes from 77 blocks allocated in > ?_alloc...@uxbind_desc@@@std@@YAPAUXBind_desc@@IPAU1@@Z [actad.dll] > [W] MLK: Memory leak of 1520 bytes from 76 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1456 bytes from 156 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1456 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1456 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1456 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1456 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1456 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [I] MPK: Potential memory leak of 1408 bytes from 32 blocks allocated in > xercesc_2_7::MemoryManagerImpl::allocate(UINT) [xerces-c_2_7D.dll] > [W] MLK: Memory leak of 1400 bytes from 50 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1360 bytes from 4 blocks allocated in > ReplaceExpressionWithNewColumn [actad.dll] > [W] MLK: Memory leak of 1360 bytes from 4 blocks allocated in > ReplaceExpressionWithNewColumn [actad.dll] > [W] MLK: Memory leak of 1344 bytes from 48 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1337 bytes from 103 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1230 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1230 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1230 bytes from 197 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1188 bytes from 33 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1168 bytes from 73 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1152 bytes from 19 blocks allocated in > std::G::_Allocate(unsigned int,unsigned short *) [MSVCP71D.dll] > [W] MLK: Memory leak of 1148 bytes from 41 blocks allocated in > Acta_Id::Acta_Id(Acta_Id *) [actad.dll] > [W] MLK: Memory leak of 1144 bytes from 22 blocks allocated in > DFStatement::addDownstreamNode(DFStatement *,int,int,int,int) [actad.dll] > [W] MLK: Memory leak of 1140 bytes from 76 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1072 bytes from 67 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1072 bytes from 67 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1072 bytes from 67 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] > [W] MLK: Memory leak of 1040 bytes from 52 blocks allocated in > axutil_allocator_malloc_impl [axutil.dll] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.