| Issue |
123509
|
| Summary |
[BUG] LLVM ERROR: out of memory on WSL
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
kraudy
|
Hi, i'm trying to implement a simple autograd in mojo, but i get this LLVM error.
```bash
LLVM ERROR: out of memory
Allocation failed
[187884:187884:20250118,172648.512482:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[187884:187884:20250118,172648.512585:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0. Program arguments: mojo engine.mojo --debug-level = full
#0 0x000055add47e26bb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) Signals.cpp:0:0
#1 0x000055add47e0619 llvm::sys::RunSignalHandlers() Signals.cpp:0:0
#2 0x000055add47e2d3d SignalHandler(int) Signals.cpp:0:0
#3 0x00007f961c717520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f961c76b9fc __pthread_kill_implementation ./nptl/./nptl/pthread_kill.c:44:76
#5 0x00007f961c76b9fc __pthread_kill_internal ./nptl/./nptl/pthread_kill.c:78:10
#6 0x00007f961c76b9fc pthread_kill ./nptl/./nptl/pthread_kill.c:89:10
#7 0x00007f961c717476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007f961c6fd7f3 abort ./stdlib/./stdlib/abort.c:81:7
#9 0x000055add47b2da9 llvm::report_bad_alloc_error(char const*, bool) ErrorHandling.cpp:0:0
#10 0x000055add47b2df5 (/home/kraudy/Mojo/mojo-grad/.magic/envs/default/bin/mojo+0x5715df5)
#11 0x00007f961cbff3e3 (anonymous namespace)::handle_oom(void* (*)(void*), void*, bool, bool) tcmalloc.cc:0:0
#12 0x00007f961cc0e1a4 tcmalloc::allocate_full_cpp_throw_oom(unsigned long) tcmalloc.cc:0:0
#13 0x00007f95a80063b5
mojo crashed!
````
The system
```bash
Linux Ubuntu 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
mojo version
```
More specific error
```bash
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted
```
This is the mojo issue: https://github.com/modular/mojo/issues/3958
Thanks.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs