[xml] RelaxNG : Unfreed Memory



Hi all,

We have been running our application using purify and there is some
unfreed memory left here and there Here's what we found : 

MIU: 1920 bytes in-use at 0x1007775e8
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlHashCreate  [/tmp/libxml2.7556/libxml2-2.6.22/hash.c:156]
        xmlSchemaInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:388]
        xmlSchemaGetPredefinedType
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:1071]
        xmlRelaxNGSchemaTypeHave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2407]
        xmlRelaxNGParseData
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:3625]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4856]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4775]
        xmlRelaxNGParseInterleave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4479]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4872]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParseStart
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5487]
        xmlRelaxNGParseGrammarContent
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5532]
        xmlRelaxNGParseGrammar
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6471]
        xmlRelaxNGParseDocument
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6530]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7402]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]


MIU: 480 bytes in-use at 0x1007752c8
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlHashCreate  [/tmp/libxml2.7556/libxml2-2.6.22/hash.c:156]
        xmlRelaxNGInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2801]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7346]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]
 
MIU: 400 bytes in-use at 0x10078b188
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlInitCharEncodingHandlers
[/tmp/libxml2.7556/libxml2-2.6.22/encoding.c:1341]
        xmlGetCharEncodingHandler
[/tmp/libxml2.7556/libxml2-2.6.22/encoding.c:1448]
        xmlAllocParserInputBuffer
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:2022]
        __xmlParserInputBufferCreateFilename
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:2183]
        xmlParserInputBufferCreateFilename
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:2229]
        xmlNewInputFromFile
[/tmp/libxml2.7556/libxml2-2.6.22/parserInternals.c:1493]
        xmlDefaultExternalEntityLoader
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:3496]
        xmlLoadExternalEntity
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:3556]
        xmlCreateURLParserCtxt
[/tmp/libxml2.7556/libxml2-2.6.22/parser.c:12081]
        xmlReadFile    [/tmp/libxml2.7556/libxml2-2.6.22/parser.c:13153]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7355]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]


[ We get the following one multiple times... ]
MIU: 216 bytes in-use at 0x10077f078
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlSchemaInitBasicType
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:258]
        xmlSchemaInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:479]
        xmlSchemaGetPredefinedType
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:1071]
        xmlRelaxNGSchemaTypeHave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2407]
        xmlRelaxNGParseData
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:3625]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4856]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4775]
        xmlRelaxNGParseInterleave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4479]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4872]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParseStart
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5487]
        xmlRelaxNGParseGrammarContent
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5532]
        xmlRelaxNGParseGrammar
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6471]
        xmlRelaxNGParseDocument
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6530]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7402]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]


MIU: 56 bytes in-use at 0x100773698
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlNewRMutex   [/tmp/libxml2.7556/libxml2-2.6.22/threads.c:287]
        xmlInitializeDict [/tmp/libxml2.7556/libxml2-2.6.22/dict.c:95]
        xmlDictCreate  [/tmp/libxml2.7556/libxml2-2.6.22/dict.c:327]
        xmlInitParserCtxt
[/tmp/libxml2.7556/libxml2-2.6.22/parserInternals.c:1556]
        xmlNewParserCtxt
[/tmp/libxml2.7556/libxml2-2.6.22/parserInternals.c:1807]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:316]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]

MIU: 56 bytes in-use at 0x1007755a8
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlRelaxNGRegisterTypeLibrary
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2763]
        xmlRelaxNGInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2807]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7346]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]

MIU: 56 bytes in-use at 0x100775948
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlRelaxNGRegisterTypeLibrary
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2763]
        xmlRelaxNGInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2814]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7346]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]

( WE GET THE FOLLOWING MULTIPLE TIME )

MIU: 48 bytes in-use at 0x10077fa98
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlHashAddEntry3 [/tmp/libxml2.7556/libxml2-2.6.22/hash.c:556]
        xmlHashAddEntry2 [/tmp/libxml2.7556/libxml2-2.6.22/hash.c:363]
        xmlSchemaInitBasicType
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:315]
        xmlSchemaInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:485]
        xmlSchemaGetPredefinedType
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:1071]
        xmlRelaxNGSchemaTypeHave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2407]
        xmlRelaxNGParseData
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:3625]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4856]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4775]
        xmlRelaxNGParseInterleave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4479]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4872]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParseStart
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5487]
        xmlRelaxNGParseGrammarContent
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5532]
        xmlRelaxNGParseGrammar
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6471]
        xmlRelaxNGParseDocument
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6530]

MIU: 43 bytes in-use at 0x100775818
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlStrndup     [/tmp/libxml2.7556/libxml2-2.6.22/xmlstring.c:45]
        xmlStrdup      [/tmp/libxml2.7556/libxml2-2.6.22/xmlstring.c:71]
        xmlHashAddEntry3 [/tmp/libxml2.7556/libxml2-2.6.22/hash.c:566]
        xmlHashAddEntry [/tmp/libxml2.7556/libxml2-2.6.22/hash.c:345]
        xmlRelaxNGRegisterTypeLibrary
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2778]
        xmlRelaxNGInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2807]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7346]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]

MIU: 40 bytes in-use at 0x100789308
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlSchemaInitTypes
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:413]
        xmlSchemaGetPredefinedType
[/tmp/libxml2.7556/libxml2-2.6.22/xmlschemastypes.c:1071]
        xmlRelaxNGSchemaTypeHave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:2407]
        xmlRelaxNGParseData
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:3625]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4856]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4775]
        xmlRelaxNGParseInterleave
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4479]
        xmlRelaxNGParsePattern
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:4872]
        xmlRelaxNGParseElement
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5329]
        xmlRelaxNGParsePatterns
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5418]
        xmlRelaxNGParseStart
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5487]
        xmlRelaxNGParseGrammarContent
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:5532]
        xmlRelaxNGParseGrammar
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6471]
        xmlRelaxNGParseDocument
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:6530]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7402]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]


(MULTIPLE TIME)
MIU: 40 bytes in-use at 0x10078b528
  * This memory was allocated from:
        malloc
[/src/ipse/users/lmcviel/build/clf/clfd/bin/SunOS_sun4u_noopt_purify/rtl
ib.o]
        xmlNewCharEncodingHandler
[/tmp/libxml2.7556/libxml2-2.6.22/encoding.c:1299]
        xmlInitCharEncodingHandlers
[/tmp/libxml2.7556/libxml2-2.6.22/encoding.c:1355]
        xmlGetCharEncodingHandler
[/tmp/libxml2.7556/libxml2-2.6.22/encoding.c:1448]
        xmlAllocParserInputBuffer
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:2022]
        __xmlParserInputBufferCreateFilename
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:2183]
        xmlParserInputBufferCreateFilename
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:2229]
        xmlNewInputFromFile
[/tmp/libxml2.7556/libxml2-2.6.22/parserInternals.c:1493]
        xmlDefaultExternalEntityLoader
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:3496]
        xmlLoadExternalEntity
[/tmp/libxml2.7556/libxml2-2.6.22/xmlIO.c:3556]
        xmlCreateURLParserCtxt
[/tmp/libxml2.7556/libxml2-2.6.22/parser.c:12081]
        xmlReadFile    [/tmp/libxml2.7556/libxml2-2.6.22/parser.c:13153]
        xmlRelaxNGParse
[/tmp/libxml2.7556/libxml2-2.6.22/relaxng.c:7355]
        CFG_Init       [/vobs/mume/CLF/clf/cfg/cfg_mgr.c:349]
        clfd_InvokeContextFunctions
[/vobs/mume/CLF/clf/clfd/clfd.c:2360]
        main           [/vobs/mume/CLF/clf/clfd/clfd.c:800]
        _start
[/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/sparcv9/crt1.o]




Thanks

Jean-Francois Dupont-Viel
Ericsson Research Canada
Software Engineer, MMS - Multimedia Messaging Service
Tel : (514) 345-7900 ext: 7533
E-Mail : jean-francois dupont-viel ericsson com 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]