<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Clang crashes (segfault) on source based coverage compilation"
   href="https://llvm.org/bugs/show_bug.cgi?id=31416">31416</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang crashes (segfault) on source based coverage compilation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>i@liuliu.me
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17767" name="attach_17767" title="Instruction generated by clang for bug reporting.">attachment 17767</a> <a href="attachment.cgi?id=17767&action=edit" title="Instruction generated by clang for bug reporting.">[details]</a></span>
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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>