<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 - ASAN / check failed / ((__interception::real_memcpy)) != (0) and ((__interception::real_memset)) != (0)"
   href="https://bugs.llvm.org/show_bug.cgi?id=42261">42261</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ASAN / check failed / ((__interception::real_memcpy)) != (0) and ((__interception::real_memset)) != (0)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>asan
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>robert.muench@saphirion.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>* Windows-10
* 32-bit
* DLL project
* debug build
* /force:multiple necessary to get LNK2005 & LNK4006 problems solved

Linker warnings:

ucrt.lib(api-ms-win-crt-heap-l1-1-0.dll) : warning LNK4006: _calloc ist bereits
in "clang_rt.asan-i386.lib(asan_malloc_win.cc.obj)" definiert; zweite
Definition wird ignoriert.
ucrt.lib(api-ms-win-crt-heap-l1-1-0.dll) : warning LNK4006: _realloc ist
bereits in "clang_rt.asan-i386.lib(asan_malloc_win.cc.obj)" definiert; zweite
Definition wird ignoriert.
ucrt.lib(api-ms-win-crt-heap-l1-1-0.dll) : warning LNK4006: _free ist bereits
in "clang_rt.asan-i386.lib(asan_malloc_win.cc.obj)" definiert; zweite
Definition wird ignoriert.
ucrt.lib(api-ms-win-crt-heap-l1-1-0.dll) : warning LNK4006: _malloc ist bereits
in "clang_rt.asan-i386.lib(asan_malloc_win.cc.obj)" definiert; zweite
Definition wird ignoriert.


When starting my app with the compiled DLL the app exits and as debug output I
get:

[3940] ==3940==AddressSanitizer CHECK failed:
C:\src\llvm_package_800-final\llvm\projects\compiler-rt\lib\asan\..\sanitizer_common/sanitizer_common_interceptors.inc:9498
"((__interception::real_memcpy)) != (0)" (0x0, 0x0)

[3940] ==3940==AddressSanitizer CHECK failed:
C:\src\llvm_package_800-final\llvm\projects\compiler-rt\lib\asan\asan_poisoning.cc:40
"((__interception::real_memset)) != (0)" (0x0, 0x0)</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>