Your message dated Mon, 01 Oct 2007 20:47:13 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#443877: fixed in libcsoap 1.1.0-10
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: libnanohttp1
Version: 1.1.0-9
Severity: important
Tags: patch
I've been developing a server that does SOAP with Attachments using
libnanohttp1 and libcsoap1. I used valgrind to check for memory leaks
and found that every time I sent a SOAP message with an attachment, it
leaked some memory. After some investigating I found that there is a
memory leak in nanohttp/nanohttp-request.c when the request contains a
MIME attachment. In hrequest_new_from_socket(), req->in is set by
http_input_stream_new() which allocates memory. Later on in the function
req->in is set by http_input_stream_new_from_file() without free()'ing
the contents of req->in first. I've attached a patch which fixes the
problem.
Here's the valgrind leak summary that shows the leaked memory:
==23097== 1,752 bytes in 6 blocks are definitely lost in loss record 8
of 8
==23097== at 0x401D38B: malloc (vg_replace_malloc.c:149)
==23097== by 0x403AF08: http_input_stream_new (in
/usr/lib/libnanohttp.so.1.1.0)
==23097== by 0x403CC9D: hrequest_new_from_socket (in
/usr/lib/libnanohttp.so.1.1.0)
==23097== by 0x40399B1: (within /usr/lib/libnanohttp.so.1.1.0)
==23097== by 0x40C223F: start_thread (in
/lib/tls/i686/cmov/libpthread-2.3.6.so)
==23097== by 0x419A4AD: clone (in /lib/tls/i686/cmov/libc-2.3.6.so)
After applying my patch, rebuilding & reinstalling the debs, recompiling
my application and testing it with valgrind, there were no more memory
leaks. Please apply this patch. I've sent a copy to the two upstream
maintainers listed in the AUTHORS file. The e-mail to Ferhat Ayaz
bounced :(
--
Tom Cort
Systems Developer
Vermont Department of Taxes
libcsoap-1.1.0-memory-leak.patch
Description: libcsoap-1.1.0-memory-leak.patch
--- End Message ---
--- Begin Message ---
Source: libcsoap
Source-Version: 1.1.0-10
We believe that the bug you reported is fixed in the latest version of
libcsoap, which is due to be installed in the Debian FTP archive:
libcsoap-dev_1.1.0-10_powerpc.deb
to pool/main/libc/libcsoap/libcsoap-dev_1.1.0-10_powerpc.deb
libcsoap1_1.1.0-10_powerpc.deb
to pool/main/libc/libcsoap/libcsoap1_1.1.0-10_powerpc.deb
libcsoap_1.1.0-10.diff.gz
to pool/main/libc/libcsoap/libcsoap_1.1.0-10.diff.gz
libcsoap_1.1.0-10.dsc
to pool/main/libc/libcsoap/libcsoap_1.1.0-10.dsc
libnanohttp-dev_1.1.0-10_powerpc.deb
to pool/main/libc/libcsoap/libnanohttp-dev_1.1.0-10_powerpc.deb
libnanohttp1_1.1.0-10_powerpc.deb
to pool/main/libc/libcsoap/libnanohttp1_1.1.0-10_powerpc.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Rudi Cilibrasi <[EMAIL PROTECTED]> (supplier of updated libcsoap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 24 Sep 2007 16:39:24 -0700
Source: libcsoap
Binary: libnanohttp1 libnanohttp-dev libcsoap-dev libcsoap1
Architecture: source powerpc
Version: 1.1.0-10
Distribution: unstable
Urgency: low
Maintainer: Rudi Cilibrasi <[EMAIL PROTECTED]>
Changed-By: Rudi Cilibrasi <[EMAIL PROTECTED]>
Description:
libcsoap-dev - development header files for CSOAP library
libcsoap1 - shared CSOAP library for SOAP client/server in C
libnanohttp-dev - shared nanohttp header files for SOAP server apps in C
libnanohttp1 - shared nanohttp library from CSOAP package
Closes: 443877
Changes:
libcsoap (1.1.0-10) unstable; urgency=low
.
* Fixed memleak in nanohttp-request.c. Thanks to Tom Cort. (Closes: #443877)
* Updated debhelper version and removed ${Source-Version} as per new policy.
Files:
287453e0735f4fff36117339984e58e3 710 libs optional libcsoap_1.1.0-10.dsc
ebe708e8a6bd5cf2a3d8b0b337734c83 12582 libs optional libcsoap_1.1.0-10.diff.gz
0b4c408bc0123b26acdf7620d9649c6c 54760 libdevel optional
libcsoap-dev_1.1.0-10_powerpc.deb
b65424adee2ff84be1d67ff24b942372 16556 libdevel optional
libnanohttp-dev_1.1.0-10_powerpc.deb
5fb029becaa78d6a112ef88d45e1611e 35126 libs optional
libnanohttp1_1.1.0-10_powerpc.deb
09dba662197b79ed61f36e1812ece3f5 21866 libs optional
libcsoap1_1.1.0-10_powerpc.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHAVT4JBBhylAGQYERAvGYAJ9c+aIMKV8xBArshUlTQWpLH83B5QCfRu18
DgYacPLUIgZ7xiIfbL1rXD0=
=D9y0
-----END PGP SIGNATURE-----
--- End Message ---