[Bug dynamic-link/32498] Leaks from call_init (dl-init.c:74)
pjfloyd at wanadoo dot fr
sourceware-bugzilla@sourceware.org
Wed Dec 25 19:14:03 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=32498
--- Comment #4 from Paul Floyd <pjfloyd at wanadoo dot fr> ---
I forgot, you need to comment out asan:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be1ab50..799b278 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ endif()
project(dlopen_test CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -g -O0")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined")
+#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined")
I don't get the same problem with Fedora.v
Better results wiith "valgrind --leak-check=full --keep-debuginfo=yes
./build/dlopen_test"
==6339== 8 bytes in 1 blocks are definitely lost in loss record 1 of 15
==6339== at 0x48447A8: malloc (vg_replace_malloc.c:446)
==6339== by 0x96A0A35: gomp_malloc (alloc.c:38)
==6339== by 0x96B788F: gomp_init_num_threads (proc.c:91)
==6339== by 0x969F1BB: initialize_env (env.c:2218)
==6339== by 0x40045B6: call_init (dl-init.c:74)
==6339== by 0x40045B6: call_init (dl-init.c:26)
==6339== by 0x40046AC: _dl_init (dl-init.c:121)
==6339== by 0x40015C1: _dl_catch_exception (dl-catch.c:215)
==6339== by 0x400B4FB: dl_open_worker (dl-open.c:829)
==6339== by 0x4001522: _dl_catch_exception (dl-catch.c:241)
==6339== by 0x400B903: _dl_open (dl-open.c:905)
==6339== by 0x4CA3F13: dlopen_doit (dlopen.c:56)
==6339== by 0x4001522: _dl_catch_exception (dl-catch.c:241)
==6339==
==6339== 96 bytes in 1 blocks are definitely lost in loss record 10 of 15
==6339== at 0x484BC13: calloc (vg_replace_malloc.c:1675)
==6339== by 0x96A0A6D: gomp_malloc_cleared (alloc.c:47)
==6339== by 0x969F100: add_initial_icv_to_list (env.c:2159)
==6339== by 0x969F1D7: initialize_env (env.c:2224)
==6339== by 0x40045B6: call_init (dl-init.c:74)
==6339== by 0x40045B6: call_init (dl-init.c:26)
==6339== by 0x40046AC: _dl_init (dl-init.c:121)
==6339== by 0x40015C1: _dl_catch_exception (dl-catch.c:215)
==6339== by 0x400B4FB: dl_open_worker (dl-open.c:829)
==6339== by 0x4001522: _dl_catch_exception (dl-catch.c:241)
==6339== by 0x400B903: _dl_open (dl-open.c:905)
==6339== by 0x4CA3F13: dlopen_doit (dlopen.c:56)
==6339== by 0x4001522: _dl_catch_exception (dl-catch.c:241)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list