[llvm-bugs] [Bug 31416] New: Clang crashes (segfault) on source based coverage compilation

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 17 17:10:45 PST 2016


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

            Bug ID: 31416
           Summary: Clang crashes (segfault) on source based coverage
                    compilation
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: i at liuliu.me
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17767
  --> https://llvm.org/bugs/attachment.cgi?id=17767&action=edit
Instruction generated by clang for bug reporting.

clang 3rdparty/kissfft/kiss_fft.c -o 3rdparty/kissfft/kiss_fft.o -c -O3 -Wall
-I"." -I/usr/local/cuda/include  -fopenmp -fblocks -msse2 -D HAVE_CBLAS -D
HAVE_LIB
PNG -D HAVE_LIBJPEG -D HAVE_FFTW3 -D HAVE_LIBLINEAR -D HAVE_TESSERACT -D
HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_AVUTIL -D HAVE_SWSCALE -D USE_OPENMP -D
USE_DISPAT
CH -D HAVE_SSE2 -D HAVE_GSL -D HAVE_CUDA -D HAVE_CUDNN -I/usr/local/include -g
-fno-omit-frame-pointer -O0 -fprofile-instr-generate -fcoverage-mapping
#0 0x00000000019e5c88 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/clang-3.9+0x19e5c88)
#1 0x00000000019e3c5e llvm::sys::RunSignalHandlers()
(/usr/local/bin/clang-3.9+0x19e3c5e)
#2 0x00000000019e3dac SignalHandler(int) (/usr/local/bin/clang-3.9+0x19e3dac)
#3 0x00007f6028467390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x0000000001bed42f
clang::CodeGen::CoverageMappingGen::emitCounterMapping(clang::Decl const*,
llvm::raw_ostream&) (/usr/local/bin/clang-3.9+0x1bed42f)
#5 0x0000000001bc96b8
clang::CodeGen::CodeGenPGO::emitCounterRegionMapping(clang::Decl const*)
(/usr/local/bin/clang-3.9+0x1bc96b8)
#6 0x0000000001bd57eb
clang::CodeGen::CodeGenPGO::assignRegionCounters(clang::GlobalDecl,
llvm::Function*) (/usr/local/bin/clang-3.9+0x1bd57eb)
#7 0x0000000001ba09ab
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/usr/local/bin/cl
ang-3.9+0x1ba09ab)
#8 0x0000000001bbae83
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/clang-3.9+0x1bbae83)
#9 0x0000000001bc78de
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/clang-3.9+0x1bc78de)
#10 0x0000000001bc7ac2 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/bin/clang-3.9+0x1bc7ac2)
#11 0x0000000001bc7b94 clang::CodeGen::CodeGenModule::Release()
(/usr/local/bin/clang-3.9+0x1bc7b94)
#12 0x00000000020eef47 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/bin/clang-3.9+0x20eef47)
#13 0x00000000020ea89e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/bin/clang-3.9+0x20ea89e)
#14 0x00000000023c7f2a clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/bin/clang-3.9+0x23c7f2a)
#15 0x0000000001e3be3e clang::FrontendAction::Execute()
(/usr/local/bin/clang-3.9+0x1e3be3e)
#16 0x0000000001e0d4d6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/clang-3.9+0x1e0d4d6)
#17 0x0000000001ebc073
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/clang-3.9+0x1ebc073)
#18 0x0000000000927088 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-3.9+0x927088)
#19 0x00000000008c31ba main (/usr/local/bin/clang-3.9+0x8c31ba)
#20 0x00007f60271c5830 __libc_start_main
/build/glibc-t3gR2i/glibc-2.23/csu/../csu/libc-start.c:325:0
#21 0x0000000000925079 _start (/usr/local/bin/clang-3.9+0x925079)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-3.9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-val
ue-names -main-file-name kiss_fft.c -mrelocation-model static -mthread-model
posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-ta
bles -fuse-init-array -target-cpu x86-64 -target-feature +sse2
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -fprofile-instru
ment=clang -fcoverage-mapping -coverage-file
/home/liu/Dropbox/workspace/ccv/lib/3rdparty/kissfft/kiss_fft.o -resource-dir
/usr/local/bin/../lib/clang/3.9.0 -I .
 -I /usr/local/cuda/include -D HAVE_CBLAS -D HAVE_LIBPNG -D HAVE_LIBJPEG -D
HAVE_FFTW3 -D HAVE_LIBLINEAR -D HAVE_TESSERACT -D HAVE_AVCODEC -D HAVE_AVFORMAT
-D HA
VE_AVUTIL -D HAVE_SWSCALE -D USE_OPENMP -D USE_DISPATCH -D HAVE_SSE2 -D
HAVE_GSL -D HAVE_CUDA -D HAVE_CUDNN -I /usr/local/include -internal-isystem
/usr/local/in
clude -internal-isystem /usr/local/bin/../lib/clang/3.9.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -int
ernal-externc-isystem /usr/include -O0 -Wall -fdebug-compilation-dir
/home/liu/Dropbox/workspace/ccv/lib -ferror-limit 19 -fmessage-length 161
-fopenmp -fblocks 
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o
3rdparty/kissfft/kiss_fft.o -x c 3rdparty/kissfft/kiss_fft.c 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      3rdparty/kissfft/kiss_fft.c:238:6: Generating code for declaration
'kf_work'
clang-3.9: error: unable to execute command: Segmentation fault (core dumped)
clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run scr
ipt.
clang-3.9: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.9: note: diagnostic msg: /tmp/kiss_fft-59aad5.c
clang-3.9: note: diagnostic msg: /tmp/kiss_fft-59aad5.sh
clang-3.9: note: diagnostic msg: 

********************
makefile:39: recipe for target '3rdparty/kissfft/kiss_fft.o' failed
make[1]: *** [3rdparty/kissfft/kiss_fft.o] Error 254
make[1]: Leaving directory '/home/liu/Dropbox/workspace/ccv/lib'
makefile:29: recipe for target 'libccv.a' failed
make: *** [libccv.a] Error 2

-- 
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/20161218/e3cc301f/attachment.html>


More information about the llvm-bugs mailing list