Bug 247440 - unable to build world: clang++: error: unable to execute command: Segmentation fault (core dumped)
Summary: unable to build world: clang++: error: unable to execute command: Segmentatio...
Status: Closed DUPLICATE of bug 250388
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2020-06-20 17:06 UTC by igor.polovykh
Modified: 2021-02-26 06:18 UTC (History)
1 user (show)

See Also:


Attachments
log and temp fiiles (640.57 KB, application/x-zip-compressed)
2020-08-21 05:23 UTC, igor.polovykh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description igor.polovykh 2020-06-20 17:06:36 UTC
clang++  -O2 -pipe -I/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm -I/usr/src/contrib/llvm/lib/Target/AArch64 -I/usr/src/contrib/llvm/lib/Targe$
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed sour$
clang++: note: diagnostic msg:
********************

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

********************
*** [Target/Mips/MipsSERegisterInfo.o] Error code 254

make[6]: stopped in /usr/src/lib/clang/libllvm
1 error

make[6]: stopped in /usr/src/lib/clang/libllvm
*** [all_subdir_lib/clang/libllvm] Error code 2

make[5]: stopped in /usr/src/lib/clang
1 error

make[5]: stopped in /usr/src/lib/clang
*** [all_subdir_lib/clang] Error code 2

make[4]: stopped in /usr/src/lib
1 error
Comment 1 igor.polovykh 2020-08-21 05:23:28 UTC
Created attachment 217406 [details]
log and temp fiiles
Comment 2 igor.polovykh 2020-08-21 05:25:23 UTC
make buildworld -j4 >> buildworld.log 2>&1


--- all_subdir_lib/libsysdecode ---
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
--- all_subdir_lib/ncurses ---
--- fld_current.o ---
clang  -O2 -pipe -I. -I/usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/contrib/ncurses/include -I/usr/src/contrib/ncurses/ncurses -Wall$
--- all_subdir_lib/libxo ---
--- libxo.a ---
building static xo library
ar -crD libxo.a `NM='nm' NMFLAGS=''  lorder libxo.o xo_encoder.o xo_syslog.o  | tsort -q`
--- all_subdir_lib/ncurses ---
--- fld_def.o ---
clang  -O2 -pipe -I. -I/usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/contrib/ncurses/include -I/usr/src/contrib/ncurses/ncurses -Wall$
--- all_subdir_lib/libxo ---
ranlib -D libxo.a
--- libxo.so.0.full ---
building shared library libxo.so.0
clang   -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel  -o libxo.so.0.full -Wl,-soname,libxo.so.0  `NM='nm' NMFLAGS='' lorder libxo.pico xo_encoder.pico xo_syslog.pico |$
--- all_subdir_lib/libsysdecode ---
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/ioctl-3faa5b.c
clang: note: diagnostic msg: /tmp/ioctl-3faa5b.sh
clang: note: diagnostic msg:
Comment 3 igor.polovykh 2021-02-26 06:18:25 UTC
I've found cause of clang crashes and rebooting while compilation. It just was overheating of CPU when temperature of all cores raised above 70°C. Short time compilations didn't give such behaviour. Sorry. It's my fault but I think this case will be useful for someone with similar situation. Perhaps it's possible to make special exception when clang crashes by similar cause and write appropriate message to log.

*** This bug has been marked as a duplicate of bug 250388 ***