[llvm-bugs] [Bug 45187] New: LLVM ERROR: out of memory on --target=unknown-unknown-solaris-eabihf
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 12 12:51:00 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45187
Bug ID: 45187
Summary: LLVM ERROR: out of memory on
--target=unknown-unknown-solaris-eabihf
Product: clang
Version: 9.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: jynelson at email.sc.edu
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
See https://godbolt.org/z/55BYcY for full reproduction. This happens even
before it starts parsing the file, even if no file has been passed.
This is not unique to unknown-unknown-solaris-eabihf, the same error occurs for
at least the following targets (I gave up after ~10):
- unknown-unknown-solaris-unknown
- unknown-unknown-solaris-amdgiz
- unknown-unknown-solaris-android
- unknown-unknown-solaris-androideabi
- unknown-unknown-solaris-eabi
- unknown-unknown-solaris-eabihf
- unknown-unknown-solaris-gnu
- unknown-unknown-solaris-gnuabi64
- unknown-unknown-solaris-gnueabi
- unknown-unknown-solaris-gnueabihf
- unknown-unknown-solaris-musl
Version: clang version 9.0.0-2~ubuntu18.04.2 (tags/RELEASE_900/final)
Originally reported at
https://github.com/bytecodealliance/target-lexicon/issues/47#issuecomment-598373992
Stack trace on my machine:
$ clang --target=unknown-unknown-solaris-eabihf
LLVM ERROR: out of memory
Stack dump:
0. Program arguments: clang --target=unknown-unknown-solaris-eabihf -x -c
-
1. Compilation construction
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f6dfa75935f]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f6dfa757780]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(+0xa38761)[0x7f6dfa759761]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f6e003de890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f6df902fe97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f6df9031801]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm22report_bad_alloc_errorEPKcb+0x93)[0x7f6dfa6be0a3]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm15SmallVectorBase8grow_podEPvmm+0x2f)[0x7f6dfa6fcaef]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm19raw_svector_ostream10write_implEPKcm+0x31)[0x7f6dfa73ddd1]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm11raw_ostream5writeEPKcm+0x1ad)[0x7f6dfa73c8ad]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZNK4llvm5Twine13printOneChildERNS_11raw_ostreamENS0_5ChildENS0_8NodeKindE+0x93)[0x7f6dfa71a043]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZNK4llvm5Twine25toNullTerminatedStringRefERNS_15SmallVectorImplIcEE+0x9e)[0x7f6dfa719f4e]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys2fs6statusERKNS_5TwineERNS1_11file_statusEb+0x35)[0x7f6dfa74ebe5]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(+0xa01dc6)[0x7f6dfa722dc6]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3vfs10FileSystem6existsERKNS_5TwineE+0x14)[0x7f6dfa71bcf4]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(_ZN5clang6driver5tools15addPathIfExistsERKNS0_6DriverERKN4llvm5TwineERNS5_11SmallVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELj16EEE+0x16)[0x7f6dff6d6f56]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(+0x17ceb4d)[0x7f6dff755b4d]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x248)[0x7f6dff66a358]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x1493)[0x7f6dff66e3e3]
clang(main+0x22e2)[0x496782]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f6df9012b97]
clang(_start+0x2a)[0x4941ea]
Aborted (core dumped)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200312/f7dd1cbe/attachment.html>
More information about the llvm-bugs
mailing list