<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - New leak in OpenMP library"
   href="https://bugs.llvm.org/show_bug.cgi?id=41494">41494</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>New leak in OpenMP library
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Runtime Library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lebedev.ri@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is with git master / svn trunk of openmp runtime.
The backtrace is:
=================================================================
==31833==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 120 byte(s) in 1 object(s) allocated from:
    #0 0x5ad35d in malloc
(/home/lebedevri/rawspeed/build-Clang-SANITIZE/src/utilities/rstest/rstest+0x5ad35d)
    #1 0xbf620f in ___kmp_allocate_align(unsigned long, unsigned long)
/usr/src/openmp/runtime/src/kmp_alloc.cpp:1687:25
    #2 0xbf0572 in ___kmp_allocate
/usr/src/openmp/runtime/src/kmp_alloc.cpp:1739:9
    #3 0xc1faac in __kmp_register_root
/usr/src/openmp/runtime/src/kmp_runtime.cpp:3859:41
    #4 0xc1b8dc in __kmp_do_serial_initialize()
/usr/src/openmp/runtime/src/kmp_runtime.cpp:6792:10
    #5 0xc19058 in __kmp_get_global_thread_id_reg
/usr/src/openmp/runtime/src/kmp_runtime.cpp:245:7
    #6 0xba3f08 in __kmpc_global_thread_num
/usr/src/openmp/runtime/src/kmp_csupport.cpp:102:20
    #7 0x5ec089 in main
/home/lebedevri/rawspeed/build-Clang-SANITIZE/../src/utilities/rstest/rstest.cpp
    #8 0x7f8c9135409a in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2409a)

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


It first appeared roughly a month ago, but i only now looked into it..
It's very unfortunate, as this is the only leak from the library,
AND for it to be detected the openmp library itself doesn't need to be built
with asan/lsan,
only the program that uses -fopenmp needs to be built with asan/lsan.
Meaning it's really noisy.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>