[xml/sgml-pkgs] Bug#649745: libxml2: memory leak when use xmlDocDumpFormatMemoryEnc in a multithread daemon

olivier chirossel olivier.chirossel at gmail.com
Wed Nov 23 18:10:19 UTC 2011


Package: libxml2
Version: 2.7.8.dfsg-5
Severity: important

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxml2 depends on:
ii  libc6   2.13-21         
ii  zlib1g  1:1.2.3.4.dfsg-3

Versions of packages libxml2 recommends:
ii  xml-core  0.13

libxml2 suggests no packages.

-- no debconf information

valgrind trace

==9688== 968 bytes in 1 blocks are definitely lost in loss record 35 of 63
==9688==    at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9688==    by 0x50F2D11: xmlGetGlobalState (threads.c:584)
==9688==    by 0x50F21B4: __xmlDefaultBufferSize (globals.c:814)
==9688==    by 0x50A4A52: xmlBufferCreate (tree.c:6870)
==9688==    by 0x50AB89C: xmlAllocOutputBuffer (xmlIO.c:2320)
==9688==    by 0x5158382: xmlDocDumpFormatMemoryEnc (xmlsave.c:2286)
==9688==    by 0x416935: admin_function (admin.c:205)
==9688==    by 0x4E33B3F: start_thread (pthread_create.c:304)





More information about the debian-xml-sgml-pkgs mailing list