Apache OpenOffice (AOO) Bugzilla – Issue 54895
MLK: possible memory leak in zlib implementation
Last modified: 2017-05-20 10:48:04 UTC
Found in SRC680 m129 (master) during MailMerge via API: There are two different stacks from the same log file: =========================================================== STACK INFO: Count: 7 Bytes: 229376 Alloc Module: package2.dll Alloc Function: zcalloc Call Stack: MSVCR71.dll!calloc+0x7C343188 package2.dll!zcalloc+0x63CBA93 package2.dll!z_inflate_blocks_new+0x63CB0FC package2.dll!z_inflateInit2_+0x63C9799 package2.dll!Inflater__Inflater+0x63C70C4 package2.dll!ZipFile__ZipFile+0x63BD2D9 package2.dll!ZipPackage__initialize+0x63B680B cppuhelper3MSC.dll!cppu__OSingleFactoryHelper__createInstanceWithArgumentsAndContext+0x1296C42 cppuhelper3MSC.dll!cppu__OFactoryComponentHelper__createInstanceWithArgumentsAndContext+0x1296D45 cppuhelper3MSC.dll!cppu__ORegistryFactoryHelper__createInstanceWithArgumentsAndContext+0x129764C servicemgr.uno.dll!stoc_smgr__OServiceManager__createInstanceWithArgumentsAndContext+0x1FE2B8F servicemgr.uno.dll!stoc_smgr__OServiceManager__createInstanceWithArguments+0x1FE213A xstor.dll!OStorage_Impl__OpenOwnPackage+0x76AEB8A xstor.dll!OStorage_Impl__ReadContents+0x76AF168 xstor.dll!OStorage_Impl__FindElement+0x76AF663 xstor.dll!OStorage__hasByName+0x76B0845 xo680mi.dll!XMLVersionListPersistence__load+0x77B8343 sfx680mi.dll!SfxMedium__GetVersionList+0x4833D86 sfx680mi.dll!SfxMedium__GetStorage+0x4836A2B sw680mi.dll!SwIoSystem__GetFileFilter+0x7A4BBF9 sw680mi.dll!SwNewDBMgr__MergeMailFiles+0x79779B9 sw680mi.dll!SwNewDBMgr__MergeNew+0x79793B1 sw680mi.dll!SwXMailMerge__execute+0x7ABC622 msci_uno.dll!bridges__cpp_uno__shared__UnoInterfaceProxy__getCppI+0x4D82333 msci_uno.dll!bridges__cpp_uno__shared__UnoInterfaceProxy__getCppI+0x4D82673 msci_uno.dll!bridges__cpp_uno__shared__UnoInterfaceProxy__dispatch+0x4D82A52 reflection.uno.dll!stoc_corefl__IdlInterfaceMethodImpl__invoke+0xA9A6AE5 sb680mi.dll!SbUnoObject__Notify+0x4A96030 svl680mi.dll!SfxBroadcaster__Broadcast+0x133F070 sb680mi.dll!SbxVariable__Broadcast+0x4AB8F98 =========================================================== STACK INFO: Count: 7 Bytes: 80640 Alloc Module: package2.dll Alloc Function: zcalloc Call Stack: MSVCR71.dll!calloc+0x7C343188 package2.dll!zcalloc+0x63CBA93 package2.dll!z_inflate_blocks_new+0x63CB0D8 package2.dll!z_inflateInit2_+0x63C9799 package2.dll!Inflater__Inflater+0x63C70C4 package2.dll!ZipFile__ZipFile+0x63BD2D9 package2.dll!ZipPackage__initialize+0x63B680B cppuhelper3MSC.dll!cppu__OSingleFactoryHelper__createInstanceWithArgumentsAndContext+0x1296C42 cppuhelper3MSC.dll!cppu__OFactoryComponentHelper__createInstanceWithArgumentsAndContext+0x1296D45 cppuhelper3MSC.dll!cppu__ORegistryFactoryHelper__createInstanceWithArgumentsAndContext+0x129764C servicemgr.uno.dll!stoc_smgr__OServiceManager__createInstanceWithArgumentsAndContext+0x1FE2B8F servicemgr.uno.dll!stoc_smgr__OServiceManager__createInstanceWithArguments+0x1FE213A xstor.dll!OStorage_Impl__OpenOwnPackage+0x76AEB8A xstor.dll!OStorage_Impl__ReadContents+0x76AF168 xstor.dll!OStorage_Impl__FindElement+0x76AF663 xstor.dll!OStorage__hasByName+0x76B0845 xo680mi.dll!XMLVersionListPersistence__load+0x77B8343 sfx680mi.dll!SfxMedium__GetVersionList+0x4833D86 sfx680mi.dll!SfxMedium__GetStorage+0x4836A2B sw680mi.dll!SwIoSystem__GetFileFilter+0x7A4BBF9 sw680mi.dll!SwNewDBMgr__MergeMailFiles+0x79779B9 sw680mi.dll!SwNewDBMgr__MergeNew+0x79793B1 sw680mi.dll!SwXMailMerge__execute+0x7ABC622 msci_uno.dll!bridges__cpp_uno__shared__UnoInterfaceProxy__getCppI+0x4D82333 msci_uno.dll!bridges__cpp_uno__shared__UnoInterfaceProxy__getCppI+0x4D82673 msci_uno.dll!bridges__cpp_uno__shared__UnoInterfaceProxy__dispatch+0x4D82A52 reflection.uno.dll!stoc_corefl__IdlInterfaceMethodImpl__invoke+0xA9A6AE5 sb680mi.dll!SbUnoObject__Notify+0x4A96030 svl680mi.dll!SfxBroadcaster__Broadcast+0x133F070 sb680mi.dll!SbxVariable__Broadcast+0x4AB8F98 =========================================================== To reproduce save attached documents, open MailMerge2.sxw and edit the pathes appropriately then start the macro from within the Basic IDE. (Since the stacks were obtained from 7 successive calls it may be nececessary to start the macro more than once if per chance the respective code is not always called.)
Created attachment 29756 [details] Document with Basic macro
Created attachment 29757 [details] Sample MailMerge document
TL->MAV: Please have a look. Thanks!
Adding myself to CC list.
Setting the target.
Changing the target.
For each "inflateInit2()" there is always "inflateEnd()" call, that is called in the destructor of the Inflater class. So currently the only possibility of the memory leak seem to be a problem in the zLib library.
Changing the summary accordingly.
according to release status meeting -> target 3.x
Reset assigne to the default "issues@openoffice.apache.org".