[llvm-bugs] [Bug 46553] New: out of memory / unable to execute command: / clang frontend command failed due to signal

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 2 05:06:56 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46553

            Bug ID: 46553
           Summary: out of memory / unable to execute command: / clang
                    frontend command failed due to signal
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kinichiro.inoguchi at gmail.com
                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

I had encountered this while building JUCE
(https://github.com/juce-framework/JUCE).

* Clang version 
--------------------------------------------------------------------------------
$ c++ --version
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
--------------------------------------------------------------------------------

* Error message
--------------------------------------------------------------------------------
...
  [ 37%] Building CXX object
 
extras/Build/juceaide/CMakeFiles/juceaide.dir/__/__/__/modules/juce_gui_basics/juce_gui_basics.cpp.o


  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/juce_gui_basics-511356.cpp

  c++: note: diagnostic msg: /tmp/juce_gui_basics-511356.sh

  c++: note: diagnostic msg:



  ********************

  *** Error 254 in .
  (extras/Build/juceaide/CMakeFiles/juceaide.dir/build.make:109
 
'extras/Build/juceaide/CMakeFiles/juceaide.dir/__/__/__/modules/juce_gui_basics/juce_gui_basics.cpp.o')


  *** Error 2 in .  (CMakeFiles/Makefile2:153
  'extras/Build/juceaide/CMakeFiles/juceaide.dir/all': /usr/bin/make -s -f
  extras/Build/juceaide/CM...)

  *** Error 2 in /usr/obj/work2/juce/JUCE/cmake-build/tools (Makefile:150
  'all': /usr/bin/make -s -f CMakeFiles/Makefile2 all)



-- Configuring incomplete, errors occurred!
See also "/usr/obj/work2/juce/JUCE/cmake-build/CMakeFiles/CMakeOutput.log".
--------------------------------------------------------------------------------

* gdb bt info
--------------------------------------------------------------------------------
$ gdb /usr/bin/c++ ./cmake-build/tools/extras/Build/juceaide/c++.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.7"...
(no debugging symbols found)

Core was generated by `c++'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libpthread.so.26.1...done.
Loaded symbols for /usr/lib/libpthread.so.26.1
Reading symbols from /usr/lib/libc++.so.4.0...done.
Loaded symbols for /usr/lib/libc++.so.4.0
Reading symbols from /usr/lib/libc++abi.so.2.1...done.
Loaded symbols for /usr/lib/libc++abi.so.2.1
Symbols already loaded for /usr/lib/libpthread.so.26.1
Reading symbols from /usr/lib/libm.so.10.1...done.
Loaded symbols for /usr/lib/libm.so.10.1
Reading symbols from /usr/lib/libc.so.96.0...done.
Loaded symbols for /usr/lib/libc.so.96.0
Reading symbols from /usr/libexec/ld.so...Error while reading shared library
symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in
module /usr/libexec/ld.so]
#0  thrkill () at -:3
3       -: No such file or directory.
        in -
(gdb) bt
#0  thrkill () at -:3
#1  0x00000002f589f49e in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:61
#2  0x00000000013caadb in __register_frame_info ()
#3  0x00000000013cab33 in __register_frame_info ()
Die: DW_TAG_unspecified_type (abbrev = 36, offset = 1157166)
        has children: FALSE
        attributes:
                DW_AT_name (DW_FORM_strp) string: "decltype(nullptr)"
Dwarf Error: Cannot find type of die [in module /usr/lib/libc++.so.4.0]
(gdb)
--------------------------------------------------------------------------------

-- 
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/20200702/64b52277/attachment.html>


More information about the llvm-bugs mailing list