<html>
<head>
<base href="https://bugs.llvm.org/">
</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 frontend command failed due to signal"
href="https://bugs.llvm.org/show_bug.cgi?id=40558">40558</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang frontend command failed due to signal
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gsocshubham@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21416" name="attach_21416" title="Preprocessed code of file named "work16_crash.c"">attachment 21416</a> <a href="attachment.cgi?id=21416&action=edit" title="Preprocessed code of file named "work16_crash.c"">[details]</a></span>
Preprocessed code of file named "work16_crash.c"
Following clang error occurred -
1. Clang frontend command failed due to signal
2. clang: error: unable to execute command: Segmentation fault
CLANG VERSION - 3.8.1
ATTACHMENT FILE NAME - work16_crash.c
COMMAND USED FOR COMPILATION - clang -O1 work16_crash.c -w
---------------------------------------------------------------------------
TERMINAL OUTPUT
clang -O1 work16_crash.c -w
0 libLLVM-3.8.so.1 0x00007f718b8bf725
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 libLLVM-3.8.so.1 0x00007f718b8bda06 llvm::sys::RunSignalHandlers() + 54
2 libLLVM-3.8.so.1 0x00007f718b8bdb43
3 libc.so.6 0x00007f718a69c060
4 libLLVM-3.8.so.1 0x00007f718bc0b288
5 libLLVM-3.8.so.1 0x00007f718bc12d92
6 libLLVM-3.8.so.1 0x00007f718b9ff4c2
llvm::FPPassManager::runOnFunction(llvm::Function&) + 482
7 libLLVM-3.8.so.1 0x00007f718b9ff7db
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
8 libLLVM-3.8.so.1 0x00007f718b9ffaf7
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 759
9 clang 0x000055bafdf37084
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 4452
10 clang 0x000055bafe264b19
11 clang 0x000055bafe38f7aa clang::ParseAST(clang::Sema&, bool,
bool) + 874
12 clang 0x000055bafe1e9946 clang::FrontendAction::Execute() + 262
13 clang 0x000055bafe1bf3a6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 262
14 clang 0x000055bafe2638b3
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2307
15 clang 0x000055bafdefd360 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2432
16 clang 0x000055bafdef9cce main + 6078
17 libc.so.6 0x00007f718a6892e1 __libc_start_main + 241
18 clang 0x000055bafdefb71a _start + 42
Stack dump:
0. Program arguments: /usr/lib/llvm-3.8/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name work16_crash.c -mrelocation-model static -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -debugger-tuning=gdb -resource-dir
/usr/lib/llvm-3.8/bin/../lib/clang/3.8.1 -internal-isystem /usr/local/include
-internal-isystem /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-w -fdebug-compilation-dir /home/extended_csmith/shubham/csmith/runtime
-ferror-limit 19 -fmessage-length 107 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/work16_crash-084f0f.o -x
c work16_crash.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'work16_crash.c'.
4. Running pass 'Merge disjoint stack slots' on function '@func_59'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.1-24 (tags/RELEASE_381/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: 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 script.
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/work16_crash-3c33f9.c
clang: note: diagnostic msg: /tmp/work16_crash-3c33f9.sh
clang: note: diagnostic msg:
********************</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>