[llvm-bugs] [Bug 50626] New: Memory leak for task dependencies

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 8 13:14:41 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50626

            Bug ID: 50626
           Summary: Memory leak for task dependencies
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: protze at itc.rwth-aachen.de
                CC: llvm-bugs at lists.llvm.org

I compiled OpenMP runtime and tests with AddressSanitizer:

-DCMAKE_CXX_FLAGS:STRING=-fsanitize=address
-DCMAKE_C_FLAGS:STRING=-fsanitize=address
-DOPENMP_TEST_FLAGS:STRING="-g -DDEBUG -fsanitize=address"

AddressSanitizer reports 1 memory leak for
llvm-project/openmp/runtime/test/tasking/omp_task_depend_resize_hashmap.c :



Direct leak of 1048576 byte(s) in 1 object(s) allocated from:
    #0 0x49531d in malloc compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
    #1 0x2b4f57e868ac in bget(kmp_info*, long)
llvm-project/openmp/runtime/src/kmp_alloc.cpp:617:17
    #2 0x2b4f57e8fda2 in ___kmp_fast_allocate
llvm-project/openmp/runtime/src/kmp_alloc.cpp:2046:15
    #3 0x2b4f58183028 in __kmpc_omp_task_with_deps
llvm-project/openmp/runtime/src/kmp_taskdeps.cpp:586:26
    #4 0x4c5904 in .omp_outlined._debug__
llvm-project/openmp/runtime/test/tasking/omp_task_depend_resize_hashmap.c:29:7
    #5 0x4c635c in .omp_outlined..4
llvm-project/openmp/runtime/test/tasking/omp_task_depend_resize_hashmap.c:25:3
    #6 0x2b4f581a3682 in __kmp_invoke_microtask
llvm-project/openmp/runtime/src/z_Linux_asm.S:1166
    #7 0x2b4f57f7c481 in __kmp_invoke_task_func
llvm-project/openmp/runtime/src/kmp_runtime.cpp:7302:8
    #8 0x2b4f57f51697 in __kmp_fork_call
llvm-project/openmp/runtime/src/kmp_runtime.cpp:2199:8
    #9 0x2b4f57ef9512 in __kmpc_fork_call
llvm-project/openmp/runtime/src/kmp_csupport.cpp:307:5
    #10 0x4c50d0 in main
llvm-project/openmp/runtime/test/tasking/omp_task_depend_resize_hashmap.c:25:3
    #11 0x2b4f586b0554 in __libc_start_main
/usr/src/debug/glibc-2.17-c758a686/csu/../csu/libc-start.c:266

SUMMARY: AddressSanitizer: 1048576 byte(s) leaked in 1 allocation(s).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210608/bde5ab21/attachment.html>


More information about the llvm-bugs mailing list