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

            Bug ID: 43318
           Summary: Compiling simple programs with -fsanitize=address on
                    Windows fails
           Product: new-bugs
           Version: 8.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: daan.j.deme...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to