Repository: rust
Issue: llvm-tblgen Segmentation fault in CI on dist-aarch64-apple
Labels: A-LLVM,T-compiler,A-spurious,O-apple,C-external-bug

Two independent PRs have recently failed with a segmentation fault in llvm-tblgen on dist-aarch64-apple.

* Mar 20, 2023, 5:37am PDT https://github.com/rust-lang/rust/pull/109383#issuecomment-1476152601
* Mar 25, 2023, 9:26pm PDT https://github.com/rust-lang/rust/pull/106428#issuecomment-1483991513

```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
[ 16%] Building WebAssemblyGenDisassemblerTables.inc...
Stack dump:
0.	Program arguments: ../../../bin/llvm-tblgen -gen-emitter -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenMCCodeEmitter.inc
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen              0x000000010eac46ca llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1  llvm-tblgen              0x000000010eac3868 llvm::sys::RunSignalHandlers() + 248
2  llvm-tblgen              0x000000010eac4d50 SignalHandler(int) + 288
3  libsystem_platform.dylib 0x00007ff801d59dfd _sigtramp + 29
4  libsystem_platform.dylib 0x00007f8bd57055c0 _sigtramp + 18446743609108248544
5  llvm-tblgen              0x000000010ead7e0c llvm::TypedInit::getCastTo(llvm::RecTy*) const + 28
6  llvm-tblgen              0x000000010eadbcf2 llvm::RecordVal::setValue(llvm::Init*) + 66
[ 16%] Building WebAssemblyGenFastISel.inc...
7  llvm-tblgen              0x000000010ead98d3 llvm::Record::resolveReferences(llvm::Resolver&, llvm::RecordVal const*) + 147
8  llvm-tblgen              0x000000010ead9ccf llvm::Record::resolveReferences(llvm::Init*) + 95
9  llvm-tblgen              0x000000010eaf0a67 llvm::TGParser::addDefOne(std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>) + 199
10 llvm-tblgen              0x000000010eaf01d2 llvm::TGParser::addEntry(llvm::RecordsEntry) + 290
11 llvm-tblgen              0x000000010eaff8dd llvm::TGParser::ParseDefm(llvm::MultiClass*) + 3997
12 llvm-tblgen              0x000000010eafde27 llvm::TGParser::ParseTopLevelLet(llvm::MultiClass*) + 1111
13 llvm-tblgen              0x000000010eafde27 llvm::TGParser::ParseTopLevelLet(llvm::MultiClass*) + 1111
14 llvm-tblgen              0x000000010eafde27 llvm::TGParser::ParseTopLevelLet(llvm::MultiClass*) + 1111
15 llvm-tblgen              0x000000010eaffb02 llvm::TGParser::ParseFile() + 82
16 llvm-tblgen              0x000000010eaca221 llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) + 721
17 llvm-tblgen              0x000000010ea61d19 main + 137
18 dyld                     0x00000001184be52e start + 462
/bin/sh: line 1: 92162 Segmentation fault: 11  ../../../bin/llvm-tblgen -gen-emitter -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenMCCodeEmitter.inc
make[2]: *** [lib/Target/RISCV/RISCVGenMCCodeEmitter.inc] Error 139
make[2]: *** Waiting for unfinished jobs....
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: ../../../bin/llvm-tblgen -gen-exegesis -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/AArch64 -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/AArch64/AArch64GenExegesis.inc
[ 16%] Building WebAssemblyGenInstrInfo.inc...
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen              0x000000010c6c46ca llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1  llvm-tblgen              0x000000010c6c3868 llvm::sys::RunSignalHandlers() + 248
2  llvm-tblgen              0x000000010c6c4d50 SignalHandler(int) + 288
3  libsystem_platform.dylib 0x00007ff801d59dfd _sigtramp + 29
4  libsystem_platform.dylib 0x00007fc4d8b09010 _sigtramp + 18446743853975925296
5  libsystem_c.dylib        0x00007ff801c8fd24 abort + 123
[ 16%] Building SystemZGenMCCodeEmitter.inc...
6  libsystem_malloc.dylib   0x00007ff801b6d357 has_default_zone0 + 0
7  libsystem_malloc.dylib   0x00007ff801b7052b malloc_report + 151
8  llvm-tblgen              0x000000010c4f3da9 llvm::Record::~Record() + 121
9  llvm-tblgen              0x000000010c6e5e9f std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 63
10 llvm-tblgen              0x000000010c6e5e86 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 38
11 llvm-tblgen              0x000000010c6e5e86 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 38
12 llvm-tblgen              0x000000010c6e5e86 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 38
13 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
14 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
[ 16%] Building SystemZGenRegisterInfo.inc...
15 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
16 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
17 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
18 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
19 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
20 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
21 llvm-tblgen              0x000000010c6e5e86 std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 38
22 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
23 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
24 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
25 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
26 llvm-tblgen              0x000000010c6e5e7a std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, std::__1::less<void>, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>>>::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<llvm::Record, std::__1::default_delete<llvm::Record>>>, void*>*) + 26
27 llvm-tblgen              0x000000010c6de66e llvm::RecordKeeper::~RecordKeeper() + 190
28 llvm-tblgen              0x000000010c6cad63 llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) + 3603
29 llvm-tblgen              0x000000010c661d19 main + 137
30 dyld                     0x000000011857852e start + 462
/bin/sh: line 1: 92183 Abort trap: 6           ../../../bin/llvm-tblgen -gen-exegesis -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/AArch64 -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/AArch64/AArch64GenExegesis.inc
make[2]: *** [lib/Target/AArch64/AArch64GenExegesis.inc] Error 134
make[2]: *** Deleting file `lib/Target/AArch64/AArch64GenExegesis.inc'
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [lib/Target/AArch64/CMakeFiles/AArch64CommonTableGen.dir/all] Error 2
[ 16%] Building SystemZGenSubtargetInfo.inc...
make[1]: *** Waiting for unfinished jobs....
[ 16%] Building ARMGenSystemRegister.inc...
[ 16%] Building WebAssemblyGenMCCodeEmitter.inc...
[ 16%] Building WebAssemblyGenRegisterInfo.inc...
[ 16%] Building WebAssemblyGenSubtargetInfo.inc...
[ 16%] Built target WebAssemblyCommonTableGen
[ 16%] Built target ARMCommonTableGen
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: ../../../bin/llvm-tblgen -gen-instr-info -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenInstrInfo.inc
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen              0x00000001038106ca llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1  llvm-tblgen              0x000000010380f868 llvm::sys::RunSignalHandlers() + 248
2  llvm-tblgen              0x0000000103810d50 SignalHandler(int) + 288
3  libsystem_platform.dylib 0x00007ff801d59dfd _sigtramp + 29
4  libsystem_platform.dylib 0x0000000000000048 _sigtramp + 18446603370550157928
5  llvm-tblgen              0x00000001035f278c llvm::TypeInfer::MergeInTypeInfo(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode const&) + 44
6  llvm-tblgen              0x00000001035fe3a5 llvm::TreePatternNode::UpdateNodeType(unsigned int, llvm::ValueTypeByHwMode, llvm::TreePattern&) + 405
7  llvm-tblgen              0x00000001035fe82a llvm::TreePatternNode::UpdateNodeTypeFromInst(unsigned int, llvm::Record*, llvm::TreePattern&) + 186
8  llvm-tblgen              0x0000000103603e28 llvm::TreePatternNode::ApplyTypeConstraints(llvm::TreePattern&, bool) + 6696
9  llvm-tblgen              0x0000000103606cde llvm::TreePattern::InferAllTypes(llvm::StringMap<llvm::SmallVector<llvm::TreePatternNode*, 1u>, llvm::MallocAllocator> const*) + 142
10 llvm-tblgen              0x00000001036103bd llvm::CodeGenDAGPatterns::ParseOnePattern(llvm::Record*, llvm::TreePattern&, llvm::TreePattern&, std::__1::vector<llvm::Record*, std::__1::allocator<llvm::Record*>> const&) + 237
11 llvm-tblgen              0x000000010360a964 llvm::CodeGenDAGPatterns::ParsePatterns() + 964
12 llvm-tblgen              0x0000000103607b8d llvm::CodeGenDAGPatterns::CodeGenDAGPatterns(llvm::RecordKeeper&, std::__1::function<void (llvm::TreePattern*)>) + 909
13 llvm-tblgen              0x00000001037226cf llvm::EmitInstrInfo(llvm::RecordKeeper&, llvm::raw_ostream&) + 95
14 llvm-tblgen              0x00000001037adde2 (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) + 146
15 llvm-tblgen              0x00000001038162dc llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) + 908
16 llvm-tblgen              0x00000001037add19 main + 137
17 dyld                     0x000000011184652e start + 462
/bin/sh: line 1: 92142 Segmentation fault: 11  ../../../bin/llvm-tblgen -gen-instr-info -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenInstrInfo.inc
make[2]: *** [lib/Target/RISCV/RISCVGenInstrInfo.inc] Error 139
[ 16%] Built target SystemZCommonTableGen
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: ../../../bin/llvm-tblgen -gen-global-isel -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenGlobalISel.inc
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen              0x0000000103fb06ca llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1  llvm-tblgen              0x0000000103faf868 llvm::sys::RunSignalHandlers() + 248
2  llvm-tblgen              0x0000000103fb0d50 SignalHandler(int) + 288
3  libsystem_platform.dylib 0x00007ff801d59dfd _sigtramp + 29
4  libsystem_platform.dylib 0x00007fe197240008 _sigtramp + 18446743977430245928
5  llvm-tblgen              0x0000000103da22d7 llvm::TreePatternNode::NodeHasProperty(llvm::SDNP, llvm::CodeGenDAGPatterns const&) const + 311
6  llvm-tblgen              0x0000000103db5f2d InstAnalyzer::AnalyzeNode(llvm::TreePatternNode const*) + 317
7  llvm-tblgen              0x0000000103db5ee2 InstAnalyzer::AnalyzeNode(llvm::TreePatternNode const*) + 242
8  llvm-tblgen              0x0000000103dabeba llvm::CodeGenDAGPatterns::InferInstructionFlags() + 442
9  llvm-tblgen              0x0000000103da7ba5 llvm::CodeGenDAGPatterns::CodeGenDAGPatterns(llvm::RecordKeeper&, std::__1::function<void (llvm::TreePattern*)>) + 933
10 llvm-tblgen              0x0000000103e822a9 llvm::EmitGlobalISel(llvm::RecordKeeper&, llvm::raw_ostream&) + 73
11 llvm-tblgen              0x0000000103f4e11e (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) + 974
12 llvm-tblgen              0x0000000103fb62dc llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) + 908
13 llvm-tblgen              0x0000000103f4dd19 main + 137
14 dyld                     0x0000000112b3252e start + 462
/bin/sh: line 1: 92140 Segmentation fault: 11  ../../../bin/llvm-tblgen -gen-global-isel -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenGlobalISel.inc
make[2]: *** [lib/Target/RISCV/RISCVGenGlobalISel.inc] Error 139
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: ../../../bin/llvm-tblgen -gen-dag-isel -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -omit-comments -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenDAGISel.inc
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen              0x00000001017e96ca llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1  llvm-tblgen              0x00000001017e8868 llvm::sys::RunSignalHandlers() + 248
2  llvm-tblgen              0x00000001017e9d50 SignalHandler(int) + 288
3  libsystem_platform.dylib 0x00007ff801d59dfd _sigtramp + 29
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603370550157856
5  llvm-tblgen              0x00000001015f28f6 std::__1::enable_if<__is_cpp17_forward_iterator<llvm::TypeSetByHwMode*>::value && is_constructible<llvm::TypeSetByHwMode, std::__1::iterator_traits<llvm::TypeSetByHwMode*>::reference>::value, void>::type std::__1::vector<llvm::TypeSetByHwMode, std::__1::allocator<llvm::TypeSetByHwMode>>::assign<llvm::TypeSetByHwMode*>(llvm::TypeSetByHwMode*, llvm::TypeSetByHwMode*) + 534
6  llvm-tblgen              0x00000001015d90c8 llvm::TreePatternNode::clone() const + 1416
7  llvm-tblgen              0x00000001015d8cac llvm::TreePatternNode::clone() const + 364
8  llvm-tblgen              0x0000000101653921 llvm::ConvertPatternToMatcher(llvm::PatternToMatch const&, unsigned int, llvm::CodeGenDAGPatterns const&) + 209
9  llvm-tblgen              0x0000000101647273 llvm::EmitDAGISel(llvm::RecordKeeper&, llvm::raw_ostream&) + 1555
10 llvm-tblgen              0x0000000101786e62 (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) + 274
11 llvm-tblgen              0x00000001017ef2dc llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) + 908
12 llvm-tblgen              0x0000000101786d19 main + 137
13 dyld                     0x00000001036b552e start + 462
/bin/sh: line 1: 91837 Segmentation fault: 11  ../../../bin/llvm-tblgen -gen-dag-isel -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV -I/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/include -I/Users/runner/work/rust/rust/src/llvm-project/llvm/include -I /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target -omit-comments -no-warn-on-unused-template-args /Users/runner/work/rust/rust/src/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o /Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build/lib/Target/RISCV/RISCVGenDAGISel.inc
make[2]: *** [lib/Target/RISCV/RISCVGenDAGISel.inc] Error 139
make[1]: *** [lib/Target/RISCV/CMakeFiles/RISCVCommonTableGen.dir/all] Error 2
make: *** [all] Error 2
thread 'main' panicked at '
```