Your message dated Sun, 13 Aug 2017 17:34:06 +0000
with message-id <[email protected]>
and subject line Bug#639115: fixed in confuse 3.2+dfsg-1
has caused the Debian Bug report #639115,
regarding libconfuse-dev: cfg_free() does not free completely
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
639115: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639115
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libconfuse-dev
Version: 2.7-4
Severity: normal
Hi,
cfg_free() does not completely clean the memory allocated by cfg_parse().
Below is a test with one of the example programs provided with the package
(the valgrind -v output is attached).
Cheers,
Matteo
$ gcc -Wall -Wextra -g -lconfuse -o simple \
/usr/share/doc/libconfuse-dev/examples/simple.c
$ cp /usr/share/doc/libconfuse-dev/examples/simple.conf .
$ valgrind --leak-check=full --show-reachable=yes ./simple
==19011== Memcheck, a memory error detector
==19011== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==19011== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==19011== Command: ./simple
==19011==
verbose: true
server: gazonk
username: joe
debug: 17
delay: 1.356E-32
setting username to 'foo'
username: foo
==19011==
==19011== HEAP SUMMARY:
==19011== in use at exit: 8 bytes in 1 blocks
==19011== total heap usage: 93 allocs, 92 frees, 27,591 bytes allocated
==19011==
==19011== 8 bytes in 1 blocks are still reachable in loss record 1 of 1
==19011== at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
amd64-linux.so)
==19011== by 0x4E3364F: ??? (in /usr/lib/x86_64-linux-
gnu/libconfuse.so.0.0.0)
==19011== by 0x4E33768: cfg_yy_switch_to_buffer (in /usr/lib/x86_64-linux-
gnu/libconfuse.so.0.0.0)
==19011== by 0x4E32861: cfg_parse_fp (in /usr/lib/x86_64-linux-
gnu/libconfuse.so.0.0.0)
==19011== by 0x4E3292C: cfg_parse (in /usr/lib/x86_64-linux-
gnu/libconfuse.so.0.0.0)
==19011== by 0x400A5C: main (simple.c:37)
==19011==
==19011== LEAK SUMMARY:
==19011== definitely lost: 0 bytes in 0 blocks
==19011== indirectly lost: 0 bytes in 0 blocks
==19011== possibly lost: 0 bytes in 0 blocks
==19011== still reachable: 8 bytes in 1 blocks
==19011== suppressed: 0 bytes in 0 blocks
==19011==
==19011== For counts of detected and suppressed errors, rerun with: -v
==19011== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
--
Ma clef GPG est disponible sur keyserver.veridis.com
My GPG key is available on keyserver.veridis.com
==19021== Memcheck, a memory error detector
==19021== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==19021== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==19021== Command: ./simple
==19021==
--19021-- Valgrind options:
--19021-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--19021-- --leak-check=full
--19021-- --show-reachable=yes
--19021-- -v
--19021-- Contents of /proc/version:
--19021-- Linux version 3.0.0-1-amd64 (Debian 3.0.0-2) ([email protected])
(gcc version 4.5.3 (Debian 4.5.3-5) ) #1 SMP Wed Aug 17 04:08:52 UTC 2011
--19021-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--19021-- Page sizes: currently 4096, max supported 4096
--19021-- Valgrind library directory: /usr/lib/valgrind
--19021-- Reading syms from /tmp/simple (0x400000)
--19021-- Reading syms from /lib/x86_64-linux-gnu/ld-2.13.so (0x4000000)
--19021-- Considering /lib/x86_64-linux-gnu/ld-2.13.so ..
--19021-- .. CRC mismatch (computed 4c0b00f5 wanted e1cc78bb)
--19021-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.13.so ..
--19021-- .. CRC is valid
--19021-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000)
--19021-- object doesn't have a symbol table
--19021-- object doesn't have a dynamic symbol table
--19021-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--19021-- Reading suppressions file: /usr/lib/valgrind/default.supp
--19021-- REDIR: 0x40165e0 (strlen) redirected to 0x3805f727 (???)
--19021-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
(0x4a22000)
--19021-- object doesn't have a symbol table
--19021-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
(0x4c23000)
--19021-- object doesn't have a symbol table
==19021== WARNING: new redirection conflicts with existing -- ignoring it
--19021-- new: 0x040165e0 (strlen ) R-> 0x04c280d0 strlen
--19021-- REDIR: 0x4016450 (index) redirected to 0x4c27d30 (index)
--19021-- REDIR: 0x40164d0 (strcmp) redirected to 0x4c28c90 (strcmp)
--19021-- Reading syms from /usr/lib/x86_64-linux-gnu/libconfuse.so.0.0.0
(0x4e2d000)
--19021-- object doesn't have a symbol table
--19021-- Reading syms from /lib/x86_64-linux-gnu/libc-2.13.so (0x5039000)
--19021-- Considering /lib/x86_64-linux-gnu/libc-2.13.so ..
--19021-- .. CRC mismatch (computed 86840265 wanted 311d89e3)
--19021-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.13.so ..
--19021-- .. CRC is valid
--19021-- REDIR: 0x50bb3e0 (strncasecmp) redirected to 0x4a22620
(_vgnU_ifunc_wrapper)
--19021-- REDIR: 0x50b9120 (strcasecmp) redirected to 0x4a22620
(_vgnU_ifunc_wrapper)
--19021-- REDIR: 0x50b7180 (__GI_strrchr) redirected to 0x4c27b50 (__GI_strrchr)
--19021-- REDIR: 0x50b56a0 (__GI_strlen) redirected to 0x4c28090 (__GI_strlen)
--19021-- REDIR: 0x50b03b0 (malloc) redirected to 0x4c27730 (malloc)
--19021-- REDIR: 0x50af940 (calloc) redirected to 0x4c25dc0 (calloc)
--19021-- REDIR: 0x50bdab0 (memcpy) redirected to 0x4a22620
(_vgnU_ifunc_wrapper)
--19021-- REDIR: 0x515b2b0 (__memcpy_ssse3_back) redirected to 0x4c28d90
(memcpy)
--19021-- REDIR: 0x50b3c60 (__GI_strcmp) redirected to 0x4c28c30 (__GI_strcmp)
--19021-- REDIR: 0x50b58d0 (__GI_strncmp) redirected to 0x4c28590 (__GI_strncmp)
--19021-- REDIR: 0x50b3ba0 (__GI_strchr) redirected to 0x4c27c30 (__GI_strchr)
--19021-- REDIR: 0x50beed0 (strchrnul) redirected to 0x4c29dd0 (strchrnul)
--19021-- REDIR: 0x50b02d0 (free) redirected to 0x4c26890 (free)
--19021-- REDIR: 0x50b7880 (memchr) redirected to 0x4c28d50 (memchr)
--19021-- REDIR: 0x50b1400 (realloc) redirected to 0x4c27800 (realloc)
--19021-- REDIR: 0x51480d0 (__strcasecmp_sse42) redirected to 0x4c28610
(strcasecmp)
--19021-- REDIR: 0x50b5780 (strnlen) redirected to 0x4c28010 (strnlen)
--19021-- REDIR: 0x50b8fd0 (__GI_stpcpy) redirected to 0x4c299d0 (__GI_stpcpy)
--19021-- REDIR: 0x50b50e0 (__GI_strcpy) redirected to 0x4c281c0 (__GI_strcpy)
--19021-- REDIR: 0x50bee80 (__GI___rawmemchr) redirected to 0x4c29e20
(__GI___rawmemchr)
--19021-- REDIR: 0x50b3c20 (strcmp) redirected to 0x4a22620
(_vgnU_ifunc_wrapper)
--19021-- REDIR: 0x5145850 (__strcmp_sse42) redirected to 0x4c28bd0 (strcmp)
verbose: true
server: gazonk
username: joe
debug: 17
delay: 1.356E-32
setting username to 'foo'
username: foo
==19021==
==19021== HEAP SUMMARY:
==19021== in use at exit: 8 bytes in 1 blocks
==19021== total heap usage: 93 allocs, 92 frees, 27,591 bytes allocated
==19021==
==19021== Searching for pointers to 1 not-freed blocks
==19021== Checked 77,168 bytes
==19021==
==19021== 8 bytes in 1 blocks are still reachable in loss record 1 of 1
==19021== at 0x4C2779D: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19021== by 0x4E3364F: ??? (in
/usr/lib/x86_64-linux-gnu/libconfuse.so.0.0.0)
==19021== by 0x4E33768: cfg_yy_switch_to_buffer (in
/usr/lib/x86_64-linux-gnu/libconfuse.so.0.0.0)
==19021== by 0x4E32861: cfg_parse_fp (in
/usr/lib/x86_64-linux-gnu/libconfuse.so.0.0.0)
==19021== by 0x4E3292C: cfg_parse (in
/usr/lib/x86_64-linux-gnu/libconfuse.so.0.0.0)
==19021== by 0x400A5C: main (simple.c:37)
==19021==
==19021== LEAK SUMMARY:
==19021== definitely lost: 0 bytes in 0 blocks
==19021== indirectly lost: 0 bytes in 0 blocks
==19021== possibly lost: 0 bytes in 0 blocks
==19021== still reachable: 8 bytes in 1 blocks
==19021== suppressed: 0 bytes in 0 blocks
==19021==
==19021== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
--19021--
--19021-- used_suppression: 4 dl-hack3-cond-1
==19021==
==19021== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
signature.asc
Description: This is a digitally signed message part.
--- End Message ---
--- Begin Message ---
Source: confuse
Source-Version: 3.2+dfsg-1
We believe that the bug you reported is fixed in the latest version of
confuse, which is due to be installed in the Debian FTP archive.
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.
Aurelien Jarno <[email protected]> (supplier of updated confuse 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: SHA512
Format: 1.8
Date: Sun, 04 Jun 2017 14:23:33 +0000
Source: confuse
Binary: libconfuse1 libconfuse-common libconfuse-dev
Architecture: source
Version: 3.2+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Aurelien Jarno <[email protected]>
Changed-By: Aurelien Jarno <[email protected]>
Description:
libconfuse-common - Common files for libConfuse
libconfuse-dev - Development files for libConfuse
libconfuse1 - Library for parsing configuration files
Closes: 639115
Changes:
confuse (3.2+dfsg-1) unstable; urgency=medium
.
* New upstream version.
- Completely free allocated memory in cfg_free() (closes: #639115).
- Update symbols file. Drop cfg_scan_string_{begin,end}, they have
disappeared from the library, but have not been part of the public
API.
* Switch to debhelper 10.
* Bumped Standards-Version to 4.0.1 (no changes).
Checksums-Sha1:
8295b5f96c0df95b6e63bffc9f42321194848e7f 1892 confuse_3.2+dfsg-1.dsc
4dd2c3f9b7e22daacabc818fc8368d2724945579 374512 confuse_3.2+dfsg.orig.tar.xz
0c7bf708a0663baba12e1eca1610efd596764a2f 4136 confuse_3.2+dfsg-1.debian.tar.xz
254dba2479bf92c10844019223523a9215d68e28 5459
confuse_3.2+dfsg-1_source.buildinfo
Checksums-Sha256:
4896028faad0e7c52a181348bdd2e50e42ec13881d4cb7fec0080d9d9677900d 1892
confuse_3.2+dfsg-1.dsc
28ec6b55ce943f2fa86420ed4ab6b52117a699639cacd15ebed551d32a6cebc6 374512
confuse_3.2+dfsg.orig.tar.xz
706f09c13cd337c0c7edaa02e8dba4ec99acc336ca745dca39d0682daf92f909 4136
confuse_3.2+dfsg-1.debian.tar.xz
535e32bc63cae994bd813769090d2298e2c01b5cc7a78464f1074155a91c37ff 5459
confuse_3.2+dfsg-1_source.buildinfo
Files:
10061773c1a5f06a76b96ac1904c1baf 1892 libs optional confuse_3.2+dfsg-1.dsc
e6f58f941edd4508a667f904648607e7 374512 libs optional
confuse_3.2+dfsg.orig.tar.xz
e5df7d0a9300fa58d148840fbad9421c 4136 libs optional
confuse_3.2+dfsg-1.debian.tar.xz
c77359bc2cdd1fb512453c12415a4af6 5459 libs optional
confuse_3.2+dfsg-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEd0YmQqnvlP0Pdxltupx4Bh3djJsFAlmQis4ACgkQupx4Bh3d
jJtmgBAAmCXhcT8IYKy7lJitMkvnjoN62u3QN8vqRtO+J3kmETRaNSo2o1WOdyRK
aUvbwLLcNiGjwaFrhTNh5BtNdsMJTMZIZUzMUPEvyzAHgWJ6gA8NXbvICnszV94+
NAS4qWz8lC9GFxBxjUeq1xnMzSbAiUhGa1YLolkos/AMFrllZmNCe2uWO/iqFqgu
010WmS9C45lHbxSX1FoJAvN3lggKq0vqunNtIswHa3ihpVu0jO759eRTYYKjxo3t
nE7/jd0COFSf/q7dAYIdcER9AL4UyC5TEL2/aLq2UIPMqV4Ha7aAui8ai6MECMUW
PlcMr4TV5Lf9O/o6a2RjhvK7q2Z5tDALneKBCvT03vnQYHvnaRJ+2Fcaz//gm1Ms
sbCa/oKmgN5A5ynHoHZf5zP8c9jcK2V9pp9KyBNsIgZ8qcNQPzT7JLC3QQ12KGXl
hhhGseXhsfAB9evWGnCmV/GVsRv3F2G/TZG4RAKsxz5mfiEK7NpFsFbBEms/WoZh
bk5KLUcXk6wI4X6/io0GfRaLGcRgdiLKzSkfEahQcmHdvX+89EPCJwHl42nBFXZW
sHZxmj5UxgiMyVITla7z84eEhdsDBENxmqc4YqUrlgSUwBd1XcpUNidKPRSpUuaN
wjdoVtXxlXeuAl/mNf5Z0Klk5o8UA93G/FJ5WX5ic2ugKPN2WbM=
=b8gw
-----END PGP SIGNATURE-----
--- End Message ---