<html>
<head>
<base href="http://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 --- - possible stack overflow and segmentation fault ?"
href="http://llvm.org/bugs/show_bug.cgi?id=20797">20797</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>possible stack overflow and segmentation fault ?
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dcb314@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=12949" name="attach_12949" title="C source code">attachment 12949</a> <a href="attachment.cgi?id=12949&action=edit" title="C source code">[details]</a></span>
C source code
The attached code, on trunk 20140827, crashes
$ ~/llvm/results/bin/clang -O2 -c /tmp/q.i
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (trunk 216525)
Target: x86_64-unknown-linux-gnu
Thread model: posix
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: Error generating preprocessed source(s) - no
preprocessable inputs.
$
Here is some valgrind output
==5694== Stack overflow in thread 1: can't grow stack to 0xffe801ff8
==5694== Can't extend stack to 0xffe8010a8 during signal delivery for thread 1:
==5694== no stack segment
==5694==
==5694== Process terminating with default action of signal 11 (SIGSEGV)
==5694== Access not within mapped region at address 0xFFE8010A8
==5694== at 0x21CE685: llvm::ConstantExpr::getICmp(unsigned short,
llvm::Constant*, llvm::Constant*, bool) (in /home/dcb/llvm/results/bin/clang)
==5694== If you believe this happened as a result of a stack
==5694== overflow in your program's main thread (unlikely but
==5694== possible), you can try to increase the size of the
==5694== main thread stack using the --main-stacksize= flag.
==5694== The main thread stack size used in this run was 8388608.
==5694== Stack overflow in thread 1: can't grow stack to 0xffe801f71</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>