New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llvm-tblgen crashes in x86 windows debug builds #44290
Comments
MSVC 19.24 is known to miscompile llvm, and the cmake step should error about it, see 5f94022 Does it still reproduce if you use another MSVC version? |
I've tested with MSVC 19.16.27035.0. The same problem: FAILED: lib/Target/AMDGPU/R600GenDFAPacketizer.inc Information about compilers from CMake log: |
Can you share the full cmake invocation and build command? |
Build log @echo off set VSDEVCMD=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat set "VSCMD_START_DIR=%CD%" set CC= cmake -G "Ninja" ^ echo. cmake --build . --config Debug --target install -- -v |
Thank you! Using VS 2017 (19.12.25834) for x86, I can reproduce the crash like this: cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS="llvm" ..\llvm && ninja lib/Target/AMDGPU/R600GenDFAPacketizer.inc (When targeting x64, it doesn't crash. It also doesn't crash for Release builds.) I also tried 19.23.28105.4 (VS 2019) for x86, and 19.25.28610.4 (VS 2019 preview) and they both crash. |
Bisection points to this: commit 12092a9
|
mentioned in issue llvm/llvm-bugzilla-archive#49097 |
Extended Description
I compile LLVM 10.0.0-rc2 but llvm-tblgen crashes with this stack dump:
0x7B6AB020 (0x0178F020 0x00000001 0x6703EAAE 0x0178EFF0), _calloc_base() + 0x7A0 bytes(s)
0x7B6ADB3C (0x0178F020 0x00000001 0x00000000 0x00000000), _free_dbg() + 0x7C bytes(s)
0x7B6AE110 (0x0178F020 0x0000054B 0x0178EE10 0x0178EE04), free() + 0x20 bytes(s)
0x004A879F (0x0178EE10 0x0178EFF0 0x00494AFE 0x0178F098), llvm::SmallVectorImpl::~SmallVectorImpl() + 0x2F bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\include\llvm\ADT\SmallVector.h, line 336 + 0x11 byte(s)
0x004A86F0 (0x0178F098 0x0178F020 0x00000001 0x00000004), llvm::SmallVector<unsigned __int64,4>::~SmallVector<unsigned __int64,4>() + 0x30 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\include\llvm\ADT\SmallVector.h, line 844 + 0x8 byte(s)
0x00494AFE (0x0178EE10 0x0178F13C 0xCCCCCCCC 0x00000001), llvm::DfaEmitter::visitDfaState() + 0x37E bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\DFAEmitter.cpp, line 85 + 0x8 byte(s)
0x00494729 (0x0178F38C 0x0000054B 0xCCCCCCCC 0xCCCCCCCC), llvm::DfaEmitter::constructDfa() + 0xB9 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\DFAEmitter.cpp, line 94 + 0x3F byte(s)
0x0049411A (0x0178F1DC 0x00000007 0x0178F970 0x0178F65C), llvm::DfaEmitter::emit() + 0x2A bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\DFAEmitter.cpp, line 100
0x004B884D (0x0178F970 0x04D40994 0x04FBBC30 0xCCCCCC00),
anonymous namespace'::DFAPacketizerEmitter::emitForItineraries() + 0x5DD bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\DFAPacketizerEmitter.cpp, line 336 0x004B8DA5 (0x0178F970 0x0178F7C4 0xCCCCCCCC 0x04620AC8),
anonymous namespace'::DFAPacketizerEmitter::run() + 0x205 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\DFAPacketizerEmitter.cpp, line 227 + 0x27 byte(s)0x004B8EF2 (0x0178FB34 0x0178F970 0x0178FB74 0x0178F7D4), llvm::EmitDFAPacketizer() + 0x52 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\DFAPacketizerEmitter.cpp, line 360 + 0x17 byte(s)
0x0069E9E5 (0x0178F970 0x0178FB34 0x0178FBB8 0x0020BC76), `anonymous namespace'::LLVMTableGenMain() + 0x165 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\TableGen.cpp, line 179 + 0xD byte(s)
0x00834E67 (0x01808BB4 0x0069E880 0x0020BC76 0xCCCCCCCC), llvm::TableGenMain() + 0x237 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\lib\TableGen\Main.cpp, line 108 + 0x10 byte(s)
0x0069EEF7 (0x0000000E 0x01808B78 0x01809458 0x0000000E), main() + 0x87 bytes(s), D:\libs\vcpkg\buildtrees\llvm\src\c8aac023bc-a535e33c48\llvm\utils\TableGen\TableGen.cpp, line 263 + 0x19 byte(s)
0x008A0E93 (0x37EB8D13 0x0020BC76 0x0020BC76 0x00C9A000), invoke_main() + 0x33 bytes(s), d:\agent_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 78 + 0x2D byte(s)
0x008A0D17 (0x0178FC44 0x008A0F18 0x0178FC54 0x747C6359), __scrt_common_main_seh() + 0x157 bytes(s), d:\agent_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 288 + 0x5 byte(s)
0x008A0BAD (0x0178FC54 0x747C6359 0x00C9A000 0x747C6340), __scrt_common_main() + 0xD bytes(s), d:\agent_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 331
0x008A0F18 (0x00C9A000 0x747C6340 0x0178FCB0 0x76F27B74), mainCRTStartup() + 0x8 bytes(s), d:\agent_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp, line 17
0x747C6359 (0x00C9A000 0x0C3C8E3F 0x00000000 0x00000000), BaseThreadInitThunk() + 0x19 bytes(s)
0x76F27B74 (0xFFFFFFFF 0x76F48EFD 0x00000000 0x00000000), RtlGetAppContainerNamedObjectPath() + 0xE4 bytes(s)
0x76F27B44 (0x0020BC76 0x00C9A000 0x00000000 0x00000000), RtlGetAppContainerNamedObjectPath() + 0xB4 bytes(s)
I'm using MSVC 19.24.28316.0 compiler.
The text was updated successfully, but these errors were encountered: