<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 --- - segmentation fault of -partial-inliner"
   href="https://llvm.org/bugs/show_bug.cgi?id=26864">26864</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segmentation fault of -partial-inliner
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>Interprocedural Optimizations
          </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=15996" name="attach_15996" title="bug triggering test program">attachment 15996</a> <a href="attachment.cgi?id=15996&action=edit" title="bug triggering test program">[details]</a></span>
bug triggering test program

The attached bc file causes a segmentation fault in -partial-inliner.


$: opt bugpoint-reduced-simplified.bc -partial-inliner -o temp.bc
0  opt             0x0000000001785db5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  opt             0x0000000001783b66 llvm::sys::RunSignalHandlers() + 54
2  opt             0x0000000001783d91
3  libpthread.so.0 0x00007fbf9d5b5340
4  opt             0x00000000017b0d6f llvm::CodeExtractor::splitReturnBlocks()
+ 255
5  opt             0x00000000017b4266 llvm::CodeExtractor::extractCodeRegion()
+ 246
6  opt             0x000000000148344c
7  opt             0x0000000001484472
8  opt             0x00000000013e412f
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 751
9  opt             0x000000000069621d main + 7373
10 libc.so.6       0x00007fbf9c7beec5 __libc_start_main + 245
11 opt             0x00000000006d5f38
Stack dump:
0.      Program arguments: opt bugpoint-reduced-simplified.bc -partial-inliner
-o temp.bc 
1.      Running pass 'Partial Inliner' on module
'bugpoint-reduced-simplified.bc'.
Segmentation fault (core dumped)
$: 
$: clang-trunk -v
clang version 3.9.0 (trunk 262800)
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
$: 
$:</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>