Skip to content

LLVM ERROR: out of memory #130190

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

Open
CerLioX17 opened this issue Mar 6, 2025 · 1 comment
Open

LLVM ERROR: out of memory #130190

CerLioX17 opened this issue Mar 6, 2025 · 1 comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] tablegen

Comments

@CerLioX17
Copy link

CerLioX17 commented Mar 6, 2025

I have an i7 13700k with a 4080 and 32 GB. I have 100 GB of free space in my SSD m.2, and I already put 16gb of virtual memory with a maximum of 32 GB. I don't understand why I always getting this message, I already tried to start the command with ninja j-4 and j-2, and still nothing. I'm sharing the log here.

Stack dump:

0.      Program arguments: C:\\Users\\aless_u6oxdvy\\llvm-project\\build\\bin\\llvm-tblgen.exe -gen-dag-isel -I C:/Users/aless_u6oxdvy/llvm-project/llvm/lib/Target/RISCV -IC:/Users/aless_u6oxdvy/llvm-project/build/include -IC:/Users/aless_u6oxdvy/llvm-project/llvm/include -I C:/Users/aless_u6oxdvy/llvm-project/llvm/lib/Target --long-string-literals=0 C:/Users/aless_u6oxdvy/llvm-project/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o lib/Target/RISCV/RISCVGenDAGISel.inc -d lib/Target/RISCV/RISCVGenDAGISel.inc.d
Exception Code: 0x80000003
 #0 0x00a77df9 HandleAbort C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\Support\Windows\Signals.inc:429:0
 #1 0x63b428b4 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xc28b4)
 #2 0x63b43ed2 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xc3ed2)
 #3 0x009a9151 llvm::report_bad_alloc_error(char const *, bool) C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\Support\ErrorHandling.cpp:177:0
 #4 0x009a9aff out_of_memory_new_handler C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\Support\ErrorHandling.cpp:190:0
 #5 0x63c56608 (C:\WINDOWS\SYSTEM32\MSVCP140D.dll+0x26608)
 #6 0x63b2fb72 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xafb72)
 #7 0x00bd9c67 operator new(unsigned int) D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp:41:0
 #8 0x0037665c std::_Default_allocate_traits::_Allocate(unsigned int) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xmemory:136:0
 #9 0x0036c68c std::_Allocate_manually_vector_aligned<struct std::_Default_allocate_traits>(unsigned int) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xmemory:189:0
#10 0x0036c54f std::_Allocate<8, struct std::_Default_allocate_traits>(unsigned int) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xmemory:253:0
#11 0x003789f0 std::allocator<char>::allocate(unsigned int) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xmemory:986:0
#12 0x0036c591 std::_Allocate_at_least_helper<class std::allocator<char>>(class std::allocator<char> &, unsigned int &) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xmemory:2268:0
#13 0x0036c60c std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::_Allocate_for_capacity<0>(class std::allocator<char> &, unsigned int &) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xstring:805:0
#14 0x0036fb39 std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::_Reallocate_grow_by<class `public: class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> & __thiscall std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::append(char const *const, unsigned int)'::`2'::<lambda_1>, char const *, unsigned int>(unsigned int, class `public: class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> & __thiscall std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::append(char const *const, unsigned int)'::`2'::<lambda_1>, char const *, unsigned int) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xstring:3001:0
#15 0x00378c6c std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>::append(char const *const, unsigned int) C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\xstring:1507:0
#16 0x0099f7a0 llvm::raw_string_ostream::write_impl(char const *, unsigned int) C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\Support\raw_ostream.cpp:961:0
#17 0x0099d793 llvm::raw_ostream::write(char const *, unsigned int) C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\Support\raw_ostream.cpp:250:0
#18 0x00374e58 llvm::raw_ostream::operator<<(class llvm::StringRef) C:\Users\aless_u6oxdvy\llvm-project\llvm\include\llvm\Support\raw_ostream.h:230:0
#19 0x00374de9 llvm::raw_ostream::operator<<(char const *) C:\Users\aless_u6oxdvy\llvm-project\llvm\include\llvm\Support\raw_ostream.h:258:0
#20 0x006f35ec `anonymous namespace'::MatcherTableEmitter::EmitMatcher C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:681:0
#21 0x006f0eda `anonymous namespace'::MatcherTableEmitter::EmitMatcherList C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:1098:0
#22 0x006f23f1 `anonymous namespace'::MatcherTableEmitter::EmitMatcher C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:455:0
#23 0x006f0eda `anonymous namespace'::MatcherTableEmitter::EmitMatcherList C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:1098:0
#24 0x006f23f1 `anonymous namespace'::MatcherTableEmitter::EmitMatcher C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:455:0
#25 0x006f0eda `anonymous namespace'::MatcherTableEmitter::EmitMatcherList C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:1098:0
#26 0x006f23f1 `anonymous namespace'::MatcherTableEmitter::EmitMatcher C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:455:0
#27 0x006f0eda `anonymous namespace'::MatcherTableEmitter::EmitMatcherList C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:1098:0
#28 0x006f31a5 `anonymous namespace'::MatcherTableEmitter::EmitMatcher C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:633:0
#29 0x006f0eda `anonymous namespace'::MatcherTableEmitter::EmitMatcherList C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:1098:0
#30 0x006f0344 llvm::EmitMatcherTable(class llvm::Matcher *, class llvm::CodeGenDAGPatterns const &, class llvm::raw_ostream &) C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelMatcherEmitter.cpp:1404:0
#31 0x006e9192 `anonymous namespace'::DAGISelEmitter::run C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\DAGISelEmitter.cpp:198:0
#32 0x006e989a llvm::TableGen::Emitter::OptClass<`anonymous namespace'::DAGISelEmitter>::run C:\Users\aless_u6oxdvy\llvm-project\llvm\include\llvm\TableGen\TableGenBackend.h:40:0
#33 0x003707cf llvm::function_ref<(class llvm::RecordKeeper const &, class llvm::raw_ostream &)>::callback_fn<(class llvm::RecordKeeper const &, class llvm::raw_ostream &)>(int, class llvm::RecordKeeper const &, class llvm::raw_ostream &) C:\Users\aless_u6oxdvy\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:46:0
#34 0x00b3f204 llvm::function_ref<(class llvm::RecordKeeper const &, class llvm::raw_ostream &)>::operator()(class llvm::RecordKeeper const &, class llvm::raw_ostream &) const C:\Users\aless_u6oxdvy\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:69:0
#35 0x00b3d3b9 llvm::TableGen::Emitter::ApplyCallback(class llvm::RecordKeeper const &, class llvm::raw_ostream &) C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\TableGen\TableGenBackend.cpp:69:0
#36 0x00b40b2f llvm::TableGenMain(char const *, class std::function<(class llvm::raw_ostream &, class llvm::RecordKeeper const &)>) C:\Users\aless_u6oxdvy\llvm-project\llvm\lib\TableGen\Main.cpp:143:0
#37 0x003e7f5d tblgen_main(int, char **) C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\Basic\TableGen.cpp:83:0
#38 0x008850d0 main C:\Users\aless_u6oxdvy\llvm-project\llvm\utils\TableGen\llvm-tblgen.cpp:18:0
#39 0x00bdb6c3 invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78:0
#40 0x00bdb53a _scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
#41 0x00bdb3cd _scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
#42 0x00bdb748 mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
#43 0x76405d49 (C:\WINDOWS\System32\KERNEL32.DLL+0x15d49)
#44 0x7707ce3b (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ce3b)
#45 0x7707cdc1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6cdc1)
ninja: build stopped: subcommand failed.
@topperc
Copy link
Collaborator

topperc commented Mar 6, 2025

Do you have any our code own code in the RISCV tablegen files? Is this a release build or debug build? What llvm revision?

@frederick-vs-ja frederick-vs-ja added tablegen crash Prefer [crash-on-valid] or [crash-on-invalid] and removed new issue labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] tablegen
Projects
None yet
Development

No branches or pull requests

4 participants