<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 - Compiling simple programs with -fsanitize=address on Windows fails"
   href="https://bugs.llvm.org/show_bug.cgi?id=43318">43318</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiling simple programs with -fsanitize=address on Windows fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>daan.j.demeyer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Reproduce:

main.cpp: int main(int argc, char *argv[]) { return 0; }

command: clang++ -fsanitize=address main.cpp

Compilation was done from a regular cmd command prompt (not a visual studio
developer prompt, although doing that gives the same result)

output: 

==10448==AddressSanitizer CHECK failed:
C:\src\llvm_package_801-final\llvm\projects\compiler-rt\lib\asan\asan_rtl.cc:402
"((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)     
                                       ==10448==AddressSanitizer CHECK failed:
C:\src\llvm_package_801-final\llvm\projects\compiler-rt\lib\asan\asan_poisoning.cc:37
"((AddrIsInMem(addr))) != (0)" (0x0, 0x0)

Platform: Windows 10
Version: 1903
OS build: 18362.356

clang++ --version: 

clang version 8.0.1 (tags/RELEASE_801/final)                                   
                                    Target: x86_64-pc-windows-msvc             
                                                                        Thread
model: posix                                                                   
                             InstalledDir:
C:\Users\daan\scoop\apps\llvm\current\bin

Visual Studio: Visual Studio Build Tools 2019
Version: 16.2.4</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>