<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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/Win] __asan_unregister_globals is not called when using -MD runtimes"
   href="http://llvm.org/bugs/show_bug.cgi?id=22545">22545</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ASan/Win] __asan_unregister_globals is not called when using -MD runtimes
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>timurrrr@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>=== test.cpp ===
#include <windows.h>

int main() {
  LoadLibrary("string literal");
}
================

$ clang-cl -fsanitize=address -MT test.cpp && test.exe 2>&1 | grep
"Added\|Removed"
==10124==Added Global[0x0122b000]: beg=0x0121b240 size=15/64 name=<string
literal> module=test.cpp dyn_init=0
==10124==Removed Global[0x0122b000]: beg=0x0121b240 size=15/64 name=<string
literal> module=test.cpp dyn_init=0
---> OK

$ clang-cl -fsanitize=address -MD test.cpp && test.exe 2>&1 | grep
"Added\|Removed"
==10764==Added Global[0x00153000]: beg=0x00152120 size=15/64 name=<string
literal> module=test.cpp dyn_init=0
---> "Remove" is missing</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>