AddressSanitizer: access-violation on unknown address

Calvin P cloudlessapp at gmail.com
Sun Dec 20 02:57:55 UTC 2020


I know mingw64 is not support, but I need it for my projects 
because my projects not work with MSVC.

So I ask here if any member can help.

simple code without import package cause access-violation, build 
with: ldmd2 -g -gc -O0 -fsanitize=address -frame-pointer=all 
-mtriple=x86_64-w64-mingw32  --relocation-model=static -c

extern(C) int main(int argc, char** argv, char** evp) @nogc 
nothrow {
         string s = "a";
         return 0;
}

Details here: https://github.com/mstorsjo/llvm-mingw/issues/175



More information about the digitalmars-d-ldc mailing list