bug-gnulib
[Top][All Lists]
Advanced

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

results of gnulib tests with -fsanitize=leak


From: Bruno Haible
Subject: results of gnulib tests with -fsanitize=leak
Date: Fri, 19 May 2017 09:43:17 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-75-generic; KDE/5.18.0; x86_64; ; )

Results of a gnulib testdir configured with
CFLAGS="-O -ggdb -fsanitize=leak": 32 tests failed (see below).

I'm not interested in spending time to make the gnulib tests return all their
allocated memory. I think such tests should better be done in packages that
use gnulib (e.g. coreutils, wget, gettext, etc.).

Other than that, the failures of test-*printf-posix2.sh are apparently due
to the out-of-memory conditions imposed by the test.
Don't know about the failure of test-fprintf-posix3.sh.


FAIL: test-astrxfrm
===================


=================================================================
==22498==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 156 byte(s) in 4 object(s) allocated from:
    #0 0x7fd1edd60795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x4015a6 in astrxfrm ../../gllib/astrxfrm.c:135

SUMMARY: LeakSanitizer: 156 byte(s) leaked in 4 allocation(s).
FAIL test-astrxfrm (exit status: 23)

FAIL: test-c-strcasestr
=======================


=================================================================
==22733==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 189 byte(s) in 1 object(s) allocated from:
    #0 0x7fa5f03ae795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x40142d in main ../../gltests/test-c-strcasestr.c:226

SUMMARY: LeakSanitizer: 189 byte(s) leaked in 1 allocation(s).
FAIL test-c-strcasestr (exit status: 23)

FAIL: test-gc-arcfour
=====================


=================================================================
==23739==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1824 byte(s) in 1 object(s) allocated from:
    #0 0x7f56413ddcdd in __interceptor_calloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xccdd)
    #1 0x401186 in gc_cipher_open ../../gllib/gc-gnulib.c:252

SUMMARY: LeakSanitizer: 1824 byte(s) leaked in 1 allocation(s).
FAIL test-gc-arcfour (exit status: 23)

FAIL: test-gc-des
=================


=================================================================
==23760==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 116736 byte(s) in 64 object(s) allocated from:
    #0 0x7f62305fecdd in __interceptor_calloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xccdd)
    #1 0x4010fa in gc_cipher_open ../../gllib/gc-gnulib.c:252

SUMMARY: LeakSanitizer: 116736 byte(s) leaked in 64 allocation(s).
FAIL test-gc-des (exit status: 23)

FAIL: test-di-set
=================


=================================================================
==24101==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 80 byte(s) in 1 object(s) allocated from:
    #0 0x7faa2fba2795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x401b0a in hash_initialize ../../gllib/hash.c:605

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7faa2fba2795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x4023b2 in ino_map_insert ../../gllib/ino-map.c:133

SUMMARY: LeakSanitizer: 96 byte(s) leaked in 2 allocation(s).
FAIL test-di-set (exit status: 23)

FAIL: test-dprintf-posix2.sh
============================

FAIL test-dprintf-posix2.sh (exit status: 1)

FAIL: test-duplocale
====================

Skipping test: Spanish Unicode locale is not installed

=================================================================
==24216==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 376 byte(s) in 1 object(s) allocated from:
    #0 0x7f11dc049795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f11db9986cf in __duplocale (/lib/x86_64-linux-gnu/libc.so.6+0x2d6cf)

SUMMARY: LeakSanitizer: 376 byte(s) leaked in 1 allocation(s).
FAIL test-duplocale (exit status: 23)

FAIL: test-filenamecat
======================


=================================================================
==25201==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 35 byte(s) in 10 object(s) allocated from:
    #0 0x7fef2daa3795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400e08 in mfile_name_concat ../../gllib/filenamecat-lgpl.c:71

SUMMARY: LeakSanitizer: 35 byte(s) leaked in 10 allocation(s).
FAIL test-filenamecat (exit status: 23)

FAIL: test-fprintf-posix2.sh
============================

==25579==ERROR: LeakSanitizer failed to allocate 0x1000 (4096) bytes of 
ReadFileToBuffer (errno: 12)
ERROR: Failed to mmap
FAIL test-fprintf-posix2.sh (exit status: 1)

FAIL: test-fprintf-posix3.sh
============================

FAIL test-fprintf-posix3.sh (exit status: 1)

FAIL: test-freadahead.sh
========================


=================================================================
==25644==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 5 byte(s) in 1 object(s) allocated from:
    #0 0x7fcffd881795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400e64 in main ../../gltests/test-freadahead.c:34

SUMMARY: LeakSanitizer: 5 byte(s) leaked in 1 allocation(s).
FAIL test-freadahead.sh (exit status: 1)

FAIL: test-freadptr.sh
======================


=================================================================
==25660==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 5 byte(s) in 1 object(s) allocated from:
    #0 0x7fd999958795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400eb2 in main ../../gltests/test-freadptr.c:33

SUMMARY: LeakSanitizer: 5 byte(s) leaked in 1 allocation(s).
FAIL test-freadptr.sh (exit status: 1)

FAIL: test-freadptr2.sh
=======================


=================================================================
==25674==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 5 byte(s) in 1 object(s) allocated from:
    #0 0x7fac5eb11795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400de0 in main ../../gltests/test-freadptr2.c:44

SUMMARY: LeakSanitizer: 5 byte(s) leaked in 1 allocation(s).
FAIL test-freadptr2.sh (exit status: 1)

FAIL: test-freadseek.sh
=======================


=================================================================
==25682==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 19 byte(s) in 1 object(s) allocated from:
    #0 0x7ff37068c795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x40100d in main ../../gltests/test-freadseek.c:45

Direct leak of 18 byte(s) in 1 object(s) allocated from:
    #0 0x7ff37068c795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400ffd in main ../../gltests/test-freadseek.c:44

Direct leak of 6 byte(s) in 1 object(s) allocated from:
    #0 0x7ff37068c795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400fef in main ../../gltests/test-freadseek.c:43

Direct leak of 5 byte(s) in 1 object(s) allocated from:
    #0 0x7ff37068c795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400fe1 in main ../../gltests/test-freadseek.c:42

SUMMARY: LeakSanitizer: 48 byte(s) leaked in 4 allocation(s).
FAIL test-freadseek.sh (exit status: 1)

FAIL: test-getndelim2
=====================


=================================================================
==26285==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 12380 byte(s) in 1 object(s) allocated from:
    #0 0x7fc932697e63 in __interceptor_realloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xce63)
    #1 0x401eef in getndelim2 ../../gllib/getndelim2.c:173

SUMMARY: LeakSanitizer: 12380 byte(s) leaked in 1 allocation(s).
FAIL test-getndelim2 (exit status: 23)

FAIL: test-memmem
=================


=================================================================
==23953==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 189 byte(s) in 1 object(s) allocated from:
    #0 0x7fc39775a795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x401956 in main ../../gltests/test-memmem.c:277

SUMMARY: LeakSanitizer: 189 byte(s) leaked in 1 allocation(s).
FAIL test-memmem (exit status: 23)

FAIL: test-pipe-filter-gi1.sh
=============================


=================================================================
==24503==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 571 byte(s) in 1 object(s) allocated from:
    #0 0x7fdcb973b795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x402324 in fread_file ../../gllib/read-file.c:73

SUMMARY: LeakSanitizer: 571 byte(s) leaked in 1 allocation(s).
FAIL test-pipe-filter-gi1.sh (exit status: 1)

FAIL: test-pipe-filter-ii1.sh
=============================


=================================================================
==24631==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 571 byte(s) in 1 object(s) allocated from:
    #0 0x7f25a74e2795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x4021c6 in fread_file ../../gllib/read-file.c:73

SUMMARY: LeakSanitizer: 571 byte(s) leaked in 1 allocation(s).
FAIL test-pipe-filter-ii1.sh (exit status: 1)

FAIL: test-printf-posix2.sh
===========================

==24987==ERROR: LeakSanitizer failed to allocate 0x1000 (4096) bytes of 
ReadFileToBuffer (errno: 12)
ERROR: Failed to mmap
FAIL test-printf-posix2.sh (exit status: 1)

FAIL: test-readtokens.sh
========================


=================================================================
==25622==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7f87cae05e63 in __interceptor_realloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xce63)
    #1 0x403900 in xrealloc ../../gllib/xmalloc.c:61

SUMMARY: LeakSanitizer: 128 byte(s) leaked in 1 allocation(s).
FAIL test-readtokens.sh (exit status: 1)

FAIL: test-striconveh
=====================


=================================================================
==29120==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c923c3e0  (/lib/x86_64-linux-gnu/libc.so.6+0x213e0)
    #2 0x7f45c923be29 in iconv_open (/lib/x86_64-linux-gnu/libc.so.6+0x20e29)
    #3 0x400fd0 in main ../../gltests/test-striconveh.c:65

Direct leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c923c3e0  (/lib/x86_64-linux-gnu/libc.so.6+0x213e0)
    #2 0x7f45c923be29 in iconv_open (/lib/x86_64-linux-gnu/libc.so.6+0x20e29)
    #3 0x400f34 in main ../../gltests/test-striconveh.c:57

Direct leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c923c3e0  (/lib/x86_64-linux-gnu/libc.so.6+0x213e0)
    #2 0x7f45c923be29 in iconv_open (/lib/x86_64-linux-gnu/libc.so.6+0x20e29)
    #3 0x400f6e in main ../../gltests/test-striconveh.c:60

Indirect leak of 32640 byte(s) in 1 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c923c44b  (/lib/x86_64-linux-gnu/libc.so.6+0x2144b)
    #2 0x7f45c923be29 in iconv_open (/lib/x86_64-linux-gnu/libc.so.6+0x20e29)
    #3 0x400fd0 in main ../../gltests/test-striconveh.c:65

Indirect leak of 8160 byte(s) in 1 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c923c44b  (/lib/x86_64-linux-gnu/libc.so.6+0x2144b)
    #2 0x7f45c923be29 in iconv_open (/lib/x86_64-linux-gnu/libc.so.6+0x20e29)
    #3 0x400f34 in main ../../gltests/test-striconveh.c:57

Indirect leak of 8160 byte(s) in 1 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c923c44b  (/lib/x86_64-linux-gnu/libc.so.6+0x2144b)
    #2 0x7f45c923be29 in iconv_open (/lib/x86_64-linux-gnu/libc.so.6+0x20e29)
    #3 0x400f6e in main ../../gltests/test-striconveh.c:60

Indirect leak of 624 byte(s) in 3 object(s) allocated from:
    #0 0x7f45c98f9795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x7f45c9245314  (/lib/x86_64-linux-gnu/libc.so.6+0x2a314)

SUMMARY: LeakSanitizer: 49920 byte(s) leaked in 9 allocation(s).
FAIL test-striconveh (exit status: 23)

FAIL: test-u16-conv-to-enc
==========================


=================================================================
==30085==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 136 byte(s) in 1 object(s) allocated from:
    #0 0x7ff9f8036795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x401154 in new_offsets ../../gltests/uniconv/test-u16-conv-to-enc.c:35
    #2 0x401154 in main ../../gltests/uniconv/test-u16-conv-to-enc.c:97

SUMMARY: LeakSanitizer: 136 byte(s) leaked in 1 allocation(s).
FAIL test-u16-conv-to-enc (exit status: 23)

FAIL: test-u32-conv-to-enc
==========================


=================================================================
==30113==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 136 byte(s) in 1 object(s) allocated from:
    #0 0x7fdc7bb68795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x40114b in new_offsets ../../gltests/uniconv/test-u32-conv-to-enc.c:35
    #2 0x40114b in main ../../gltests/uniconv/test-u32-conv-to-enc.c:97

SUMMARY: LeakSanitizer: 136 byte(s) leaked in 1 allocation(s).
FAIL test-u32-conv-to-enc (exit status: 23)

FAIL: test-u8-conv-to-enc
=========================


=================================================================
==30141==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 144 byte(s) in 1 object(s) allocated from:
    #0 0x7f0e0f83c795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400ef6 in new_offsets ../../gltests/uniconv/test-u8-conv-to-enc.c:36

SUMMARY: LeakSanitizer: 144 byte(s) leaked in 1 allocation(s).
FAIL test-u8-conv-to-enc (exit status: 23)

SKIP: unigbrk/test-ulc-grapheme-breaks.sh
=========================================

Skipping test: no traditional Arabic locale is installed
SKIP unigbrk/test-ulc-grapheme-breaks.sh (exit status: 77)

FAIL: uninorm/test-u32-nfc-big.sh
=================================


=================================================================
==32746==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4380680 byte(s) in 1095170 object(s) allocated from:
    #0 0x7f3714116e63 in __interceptor_realloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xce63)
    #1 0x401fc9 in u32_normalize ../../gllib/uninorm/u-normalize-internal.h:357

[many more]

SUMMARY: LeakSanitizer: 6346692 byte(s) leaked in 1187148 allocation(s).
FAIL uninorm/test-u32-nfc-big.sh (exit status: 23)

FAIL: uninorm/test-u32-nfd-big.sh
=================================


=================================================================
==1835==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4380680 byte(s) in 1095170 object(s) allocated from:
    #0 0x7f36a0360e63 in __interceptor_realloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xce63)
    #1 0x401f7e in u32_normalize ../../gllib/uninorm/u-normalize-internal.h:357

[many more]

SUMMARY: LeakSanitizer: 6346692 byte(s) leaked in 1187148 allocation(s).
FAIL uninorm/test-u32-nfd-big.sh (exit status: 23)

FAIL: uninorm/test-u32-nfkc-big.sh
==================================


=================================================================
==2859==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4380684 byte(s) in 1095171 object(s) allocated from:
    #0 0x7efcb95b9e63 in __interceptor_realloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xce63)
    #1 0x401fbb in u32_normalize ../../gllib/uninorm/u-normalize-internal.h:357

[many more]

SUMMARY: LeakSanitizer: 6346696 byte(s) leaked in 1187149 allocation(s).
FAIL uninorm/test-u32-nfkc-big.sh (exit status: 23)

FAIL: uninorm/test-u32-nfkd-big.sh
==================================


=================================================================
==4031==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4380680 byte(s) in 1095170 object(s) allocated from:
    #0 0x7fe9597fce63 in __interceptor_realloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xce63)
    #1 0x401f7b in u32_normalize ../../gllib/uninorm/u-normalize-internal.h:357

[many more]

SUMMARY: LeakSanitizer: 6346692 byte(s) leaked in 1187148 allocation(s).
FAIL uninorm/test-u32-nfkd-big.sh (exit status: 23)

FAIL: test-u16-chr
==================


=================================================================
==4766==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4194304 byte(s) in 1 object(s) allocated from:
    #0 0x7ff730942795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400e8c in main ../../gltests/unistr/test-chr.h:26

SUMMARY: LeakSanitizer: 4194304 byte(s) leaked in 1 allocation(s).
FAIL test-u16-chr (exit status: 23)

FAIL: test-u16-strchr
=====================


=================================================================
==4875==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4194308 byte(s) in 1 object(s) allocated from:
    #0 0x7f7d78507795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400e2d in test_strchr ../../gltests/unistr/test-strchr.h:27
    #2 0x400e2d in main ../../gltests/unistr/test-u16-strchr.c:39

SUMMARY: LeakSanitizer: 4194308 byte(s) leaked in 1 allocation(s).
FAIL test-u16-strchr (exit status: 23)

FAIL: test-u8-chr
=================


=================================================================
==5295==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4194304 byte(s) in 1 object(s) allocated from:
    #0 0x7f1d3d22d795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400f1c in main ../../gltests/unistr/test-chr.h:26

SUMMARY: LeakSanitizer: 4194304 byte(s) leaked in 1 allocation(s).
FAIL test-u8-chr (exit status: 23)

FAIL: test-u8-strchr
====================


=================================================================
==5509==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4194308 byte(s) in 1 object(s) allocated from:
    #0 0x7f32ff875795 in __interceptor_malloc 
(/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xc795)
    #1 0x400f1c in test_strchr ../../gltests/unistr/test-strchr.h:27
    #2 0x400f1c in main ../../gltests/unistr/test-u8-strchr.c:39

SUMMARY: LeakSanitizer: 4194308 byte(s) leaked in 1 allocation(s).
FAIL test-u8-strchr (exit status: 23)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]