Issue 54895 - MLK: possible memory leak in zlib implementation
Summary: MLK: possible memory leak in zlib implementation
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m129
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 10:26 UTC by thomas.lange
Modified: 2017-05-20 10:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Document with Basic macro (7.16 KB, application/octet-stream)
2005-09-21 10:27 UTC, thomas.lange
no flags Details
Sample MailMerge document (6.12 KB, application/octet-stream)
2005-09-21 10:27 UTC, thomas.lange
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description thomas.lange 2005-09-21 10:26:27 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.)
Comment 1 thomas.lange 2005-09-21 10:27:28 UTC
Created attachment 29756 [details]
Document with Basic macro
Comment 2 thomas.lange 2005-09-21 10:27:56 UTC
Created attachment 29757 [details]
Sample MailMerge document
Comment 3 thomas.lange 2005-09-21 10:29:06 UTC
TL->MAV: Please have a look. Thanks!
Comment 4 thomas.lange 2005-10-13 12:25:53 UTC
Adding myself to CC list.
Comment 5 mikhail.voytenko 2006-03-02 18:18:27 UTC
Setting the target.
Comment 6 mikhail.voytenko 2006-07-17 16:56:45 UTC
Changing the target.
Comment 7 mikhail.voytenko 2006-11-01 14:42:51 UTC
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.
Comment 8 mikhail.voytenko 2006-11-01 14:46:04 UTC
Changing the summary accordingly.
Comment 9 Mathias_Bauer 2007-12-04 16:17:43 UTC
according to release status meeting -> target 3.x
Comment 10 Marcus 2017-05-20 10:48:04 UTC
Reset assigne to the default "issues@openoffice.apache.org".