<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 --- - bugpoint crashes when reducing the attached bitcode program"
href="https://llvm.org/bugs/show_bug.cgi?id=26909">26909</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>bugpoint crashes when reducing the attached bitcode program
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</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>bugpoint
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chengniansun@gmail.com
</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=16021" name="attach_16021" title="bug triggering bitcode file.">attachment 16021</a> <a href="attachment.cgi?id=16021&action=edit" title="bug triggering bitcode file.">[details]</a></span>
bug triggering bitcode file.
The trunk of bugpoint crashes when reducing the attached bitcode file.
$: bugpoint-trunk -safe-run-llc -structurizecfg t.c-262.bc
....................................
*** The following function is being miscompiled: main_for.inc595.5
Extracted a loop from the breaking portion of the program.
<llc><CC><program>bugpoint-trunk:
/tmp/llvm-builder/llvm-source-trunk/include/llvm/Support/Casting.h:81: static
bool llvm::isa_impl_cl<To, From*>::doit(const From*) [with To = llvm::Function;
>From = llvm::Value]: Assertion `Val && "isa<> used on a null pointer"' failed.
0 bugpoint-trunk 0x0000000000c48f25
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 bugpoint-trunk 0x0000000000c46eb6 llvm::sys::RunSignalHandlers() + 54
2 bugpoint-trunk 0x0000000000c470d4
3 libpthread.so.0 0x00007f5f6c022340
4 libc.so.6 0x00007f5f6b240cc9 gsignal + 57
5 libc.so.6 0x00007f5f6b2440d8 abort + 328
6 libc.so.6 0x00007f5f6b239b86
7 libc.so.6 0x00007f5f6b239c32
8 bugpoint-trunk 0x0000000000506830
9 bugpoint-trunk 0x00000000005d1e8e
10 bugpoint-trunk 0x00000000005d21ee
llvm::BugDriver::debugMiscompilation(std::string*) + 510
11 bugpoint-trunk 0x00000000005b21b5 llvm::BugDriver::run(std::string&) + 1957
12 bugpoint-trunk 0x000000000059c944 main + 916
13 libc.so.6 0x00007f5f6b22bec5 __libc_start_main + 245
14 bugpoint-trunk 0x00000000005aff38
Stack dump:
0. Program arguments: bugpoint-trunk -safe-run-llc -structurizecfg
t.c-262.bc
Aborted (core dumped)
$: clang-trunk -v
clang version 3.9.0 (trunk 262768)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9.3
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$: bugpoint-trunk --version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
LLVM version 3.9.0svn
Optimized build with assertions.
Built Mar 4 2016 (22:44:51).
Default target: x86_64-unknown-linux-gnu
Host CPU: sandybridge
$:</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>