lpereira / hardinfo

System profiler and benchmark tool for Linux systems
http://hardinfo.org
GNU General Public License v2.0
765 stars 130 forks source link

Benchmarking does not complete #640

Open Brishen opened 2 years ago

Brishen commented 2 years ago

Built the latest version from master on Manjaro on a Ryzen 5600X.

All benchmarks start a single thread and fail to complete.

Upon exit, I get a number of memory leaks (see below).

Building from commit c6a5a871c2be73338e881eddf550c5433e96148f produces working benchmarks however.

==24807==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 61455 byte(s) in 15 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b50cb0f81 in g_file_get_contents (/usr/lib/libglib-2.0.so.0+0x40f81)
    #2 0x7269762f73656368  (<unknown module>)

Direct leak of 29061 byte(s) in 1007 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b50cccca9 in g_malloc (/usr/lib/libglib-2.0.so.0+0x5cca9)

Direct leak of 16896 byte(s) in 26 object(s) allocated from:
    #0 0x7f6b51afd652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f6b503f930e  (/usr/lib/libfontconfig.so.1+0x2130e)

Direct leak of 1408 byte(s) in 11 object(s) allocated from:
    #0 0x7f6b51afd652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f6b50ccd2b8 in g_realloc (/usr/lib/libglib-2.0.so.0+0x5d2b8)

Direct leak of 1042 byte(s) in 43 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b507fcc5f in __vasprintf_internal (/usr/lib/libc.so.6+0x7dc5f)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b503f9255  (/usr/lib/libfontconfig.so.1+0x21255)

Direct leak of 129 byte(s) in 2 object(s) allocated from:
    #0 0x7f6b51afd652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f6b507fcc1f in __vasprintf_internal (/usr/lib/libc.so.6+0x7dc1f)

Direct leak of 64 byte(s) in 2 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b50ccd191 in g_malloc0 (/usr/lib/libglib-2.0.so.0+0x5d191)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b50cccca9 in g_malloc (/usr/lib/libglib-2.0.so.0+0x5cca9)
    #2 0x7f6b487917ff  (/usr/lib/hardinfo/modules/devices.so+0xaa7ff)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b50cccca9 in g_malloc (/usr/lib/libglib-2.0.so.0+0x5cca9)
    #2 0x555f6e653d535344  (<unknown module>)

Indirect leak of 38080 byte(s) in 1190 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b503e4600  (/usr/lib/libfontconfig.so.1+0xc600)

Indirect leak of 21168 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b4fd772a1 in xcb_connect_to_fd (/usr/lib/libxcb.so.1+0xc2a1)

Indirect leak of 16384 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097bd22 in XOpenDisplay (/usr/lib/libX11.so.6+0x30d22)

Indirect leak of 15584 byte(s) in 487 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b503fd18b  (/usr/lib/libfontconfig.so.1+0x2518b)

Indirect leak of 15092 byte(s) in 1178 object(s) allocated from:
    #0 0x7f6b51aa23f9 in __interceptor_strdup /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:454
    #1 0x7f6b503e3d53  (/usr/lib/libfontconfig.so.1+0xbd53)

Indirect leak of 11328 byte(s) in 354 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b503f8ccc  (/usr/lib/libfontconfig.so.1+0x20ccc)

Indirect leak of 7392 byte(s) in 2 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097c101 in XOpenDisplay (/usr/lib/libX11.so.6+0x31101)

Indirect leak of 4704 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097b98f in XOpenDisplay (/usr/lib/libX11.so.6+0x3098f)
    #2 0x562fb770999d  (/usr/bin/hardinfo+0xaf99d)

Indirect leak of 4045 byte(s) in 308 object(s) allocated from:
    #0 0x7f6b51aa23f9 in __interceptor_strdup /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:454
    #1 0x7f6b503f8b68 in FcValueSave (/usr/lib/libfontconfig.so.1+0x20b68)

Indirect leak of 3380 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f6b4fd77486 in xcb_connect_to_fd (/usr/lib/libxcb.so.1+0xc486)

Indirect leak of 1344 byte(s) in 42 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b504023c0 in FcFontRenderPrepare (/usr/lib/libfontconfig.so.1+0x2a3c0)

Indirect leak of 1344 byte(s) in 42 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5040235e in FcFontRenderPrepare (/usr/lib/libfontconfig.so.1+0x2a35e)

Indirect leak of 672 byte(s) in 14 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b503ef5f4 in FcLangSetCopy (/usr/lib/libfontconfig.so.1+0x175f4)

Indirect leak of 178 byte(s) in 25 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b50cccca9 in g_malloc (/usr/lib/libglib-2.0.so.0+0x5cca9)

Indirect leak of 168 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097bf1d in XOpenDisplay (/usr/lib/libX11.so.6+0x30f1d)

Indirect leak of 160 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b5096a6dc in XCreateGC (/usr/lib/libX11.so.6+0x1f6dc)

Indirect leak of 152 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b509e2a3f in XkbUseExtension (/usr/lib/libX11.so.6+0x97a3f)

Indirect leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097577c in XInitExtension (/usr/lib/libX11.so.6+0x2a77c)

Indirect leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097bf9f in XOpenDisplay (/usr/lib/libX11.so.6+0x30f9f)

Indirect leak of 120 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b5097c597 in XOpenDisplay (/usr/lib/libX11.so.6+0x31597)

Indirect leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097c072 in XOpenDisplay (/usr/lib/libX11.so.6+0x31072)

Indirect leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5098b37f in _XConnectXCB (/usr/lib/libX11.so.6+0x4037f)

Indirect leak of 77 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b4fc4173e in pcre_compile2 (/usr/lib/libpcre.so.1+0xc73e)

Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd459 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f6b5097bd85 in XOpenDisplay (/usr/lib/libX11.so.6+0x30d85)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b5098b495 in _XConnectXCB (/usr/lib/libX11.so.6+0x40495)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b5098b47e in _XConnectXCB (/usr/lib/libX11.so.6+0x4047e)

Indirect leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b5098d63e in _XPollfdCacheInit (/usr/lib/libX11.so.6+0x4263e)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd652 in __interceptor_realloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:164
    #1 0x7f6b4fd7a5ef  (/usr/lib/libxcb.so.1+0xf5ef)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b4fd79b17  (/usr/lib/libxcb.so.1+0xeb17)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b5098ba76  (/usr/lib/libX11.so.6+0x40a76)

Indirect leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51afd279 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f6b4fd7a9be  (/usr/lib/libxcb.so.1+0xf9be)

Indirect leak of 10 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51aa23f9 in __interceptor_strdup /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:454
    #1 0x7f6b5097578d in XInitExtension (/usr/lib/libX11.so.6+0x2a78d)

Indirect leak of 3 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b51aa23f9 in __interceptor_strdup /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:454
    #1 0x7f6b5097b9a4 in XOpenDisplay (/usr/lib/libX11.so.6+0x309a4)

SUMMARY: AddressSanitizer: 252505 byte(s) leaked in 4774 allocation(s).