[Bug 212703] Clang segmentation fault

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Sep 15 13:16:25 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212703

            Bug ID: 212703
           Summary: Clang segmentation fault
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: bacon4000 at gmail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Looks like this project is a bit overzealous with the compiler flags, so I can
probably work around this.

Same error occurs using CXX=clang++37.

[  3%] Building CXX object
third_party/vectorGraphics/CMakeFiles/main_svgSample.dir/main.cpp.o             
cd /usr/wip/graphics/openmvg/work/.build/third_party/vectorGraphics &&
/usr/bin/c++   -DHAVE_CXX11_CHRONO -DHAVE_CXX11_THREAD -DOPENMVG_USE_CXX11
-I/usr/local/include/eigen3 -O2 -pipe -fstack-protector -fno-strict-aliasing
-mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx
-mno-xop -mno-fma4 -mno-avx2 --std=c++11 -fPIC -O3 -o
CMakeFiles/main_svgSample.dir/main.cpp.o -c
/usr/wip/graphics/openmvg/work/openmvg-2016.09.06/src/third_party/vectorGraphics/main.cpp
Stack dump:
0.      Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd10.3
-emit-obj -disable-free -disable-llvm-verifier -main-file-name main.cpp
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-feature -sse2 -target-feature -sse3 -target-feature -ssse3
-target-feature -sse4.1 -target-feature -sse4.2 -target-feature -sse4a
-target-feature -avx -target-feature -xop -target-feature -fma4 -target-feature
-avx2 -coverage-file
/usr/wip/graphics/openmvg/work/.build/third_party/vectorGraphics/CMakeFiles/main_svgSample.dir/main.cpp.o
-resource-dir /usr/bin/../lib/clang/3.4.1 -D HAVE_CXX11_CHRONO -D
HAVE_CXX11_THREAD -D OPENMVG_USE_CXX11 -I /usr/local/include/eigen3
-internal-isystem /usr/include/c++/v1 -O3 --std=c++11 -fdeprecated-macro
-fdebug-compilation-dir
/usr/wip/graphics/openmvg/work/.build/third_party/vectorGraphics -ferror-limit
19 -fmessage-length 81 -stack-protector 1 -mstackrealign -fobjc-runtime=gnustep
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o CMakeFiles/main_svgSample.dir/main.cpp.o -x
c++
/usr/wip/graphics/openmvg/work/openmvg-2016.09.06/src/third_party/vectorGraphics/main.cpp 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/usr/wip/graphics/openmvg/work/openmvg-2016.09.06/src/third_party/vectorGraphics/main.cpp'.
4.      Running pass 'X86 Assembly / Object Emitter' on function '@main'
c++: error: unable to execute command: Segmentation fault (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.3
Thread model: posix
c++: 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.
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/main-d0045f.cpp
c++: note: diagnostic msg: /tmp/main-d0045f.sh
c++: note: diagnostic msg: 

********************
*** Error code 254

Stop.
make[3]: stopped in /usr/wip/graphics/openmvg/work/.build
*** Error code 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list