llvm-mingw icon indicating copy to clipboard operation
llvm-mingw copied to clipboard

need help for static linked C++ project.

Open calvin2021y opened this issue 2 years ago • 1 comments

I am not sure is related into llvm mingw project, any idea to fix this is much appreciated

Process 10688 stoppedndexing DWARF for test.exe...
* thread #1, stop reason = Exception 0xc000001d encountered at address 0x7ff771aa5e70
    frame #0: 0x00007ff771aa5e70 test.exe`_GLOBAL__sub_I_MMKV.cpp [inlined] std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t>>::__default_init[abi:v160006](this=<unavailable>) at string:1698:24
Process 10688 launched: 'C:\Users\Administrator\Desktop\test.exe' (x86_64)
(lldb) bt
* thread #1, stop reason = Exception 0xc000001d encountered at address 0x7ff771aa5e70
  * frame #0: 0x00007ff771aa5e70 test.exe`_GLOBAL__sub_I_MMKV.cpp [inlined] std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t>>::__default_init[abi:v160006](this=<unavailable>) at string:1698:24
    frame #1: 0x00007ff771aa5e70 test.exe`_GLOBAL__sub_I_MMKV.cpp [inlined] std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t>>::basic_string[abi:v160006](this=<unavailable>) at string:831:5
    frame #2: 0x00007ff771aa5e70 test.exe`_GLOBAL__sub_I_MMKV.cpp [inlined] __cxx_global_var_init at MMKV.cpp:61:12
    frame #3: 0x00007ff771aa5e70 test.exe`_GLOBAL__sub_I_MMKV.cpp at MMKV.cpp:0
    frame #4: 0x00007ff77193150b test.exe`__main [inlined] __do_global_ctors at gccmain.c:44:7
    frame #5: 0x00007ff7719314bf test.exe`__main at gccmain.c:58:7
    frame #6: 0x00007ff7719312e8 test.exe`__tmainCRTStartup at crtexe.c:261:5
    frame #7: 0x00007ff771931366 test.exe`mainCRTStartup at crtexe.c:188:9
    frame #8: 0x00007ffae2aa7bd4 kernel32.dll`BaseThreadInitThunk + 20
    frame #9: 0x00007ffae302ced1 ntdll.dll`RtlUserThreadStart + 33

calvin2021y avatar Aug 03 '23 09:08 calvin2021y

This cause by use https://github.com/Tencent/MMKV, and only for some old CPU. could be some ASM cause it ?

calvin2021y avatar Aug 03 '23 10:08 calvin2021y