Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

LLVM ERROR: out of memory #45897

Open Quuxplusone opened 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR46928
Status NEW
Importance P enhancement
Reported by Julian Smith (jules@op59.net)
Reported on 2020-07-31 02:27:25 -0700
Last modified on 2020-08-06 18:20:44 -0700
Version 8.0
Hardware PC OpenBSD
CC blitzrakete@gmail.com, brad@comstyle.com, dgregor@apple.com, erik.pilkington@gmail.com, florian_hahn@apple.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments NasalCanvas-574994.sh (5831 bytes, application/x-shellscript)
Blocks
Blocked by
See also
Created attachment 23798
/tmp/NasalCanvas-574994.sh

LLVM ERROR: out of memory
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: amd64-unknown-openbsd6.7
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/
and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/NasalCanvas-574994.cpp
c++: note: diagnostic msg: /tmp/NasalCanvas-574994.sh
c++: note: diagnostic msg:

********************
Quuxplusone commented 4 years ago

Attached NasalCanvas-574994.sh (5831 bytes, application/x-shellscript): /tmp/NasalCanvas-574994.sh

Quuxplusone commented 4 years ago
/tmp/NasalCanvas-574994.cpp is too big to be attached here. It is available at:

    http://op59.net/NasalCanvas-574994.cpp
Quuxplusone commented 4 years ago

I am not sure if there will be another Clang 8 bug fix release. Does the issue also reproduce with a more recent version (e.g. Clang 10/Clang 11 release candidate/trunk)?

Quuxplusone commented 4 years ago
Thanks for responding.

I've git cloned the latest clang but the build fails on OpenBSD with :

    llvm-project/libcxxabi/../libcxx/include/__config:1150:6: error: "No thread API"

I can get past this with a modification to a #if, but then i get llvm-
project/build/include/c++/v1/locale:739:26: error: use of undeclared identifier
'strtoll_l'.

I'll ask openbsd.misc whether there's a set of patches that might get past
these issues.

In the meantime a workaround for the problem is to do "ulimit -d 4194304".
Quuxplusone commented 4 years ago

Julian,

Please try out a -current snapshot. -current was just upgraded from 8 to 10. Let us know if there was any improvement.