<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 - segfault in llvm::DAGTypeLegalizer::DisintegrateMERGE_VALUES"
   href="https://bugs.llvm.org/show_bug.cgi?id=38730">38730</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segfault in llvm::DAGTypeLegalizer::DisintegrateMERGE_VALUES
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>enhancement
          </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>ndesaulniers@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When compiling drivers/android/binder.o in the Linux kernel targeting 32b x86,
I see the following crash in clang:

1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'drivers/android/binder.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@binder_ioctl_write_read'
#0 0x000055d0eec53c8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/android1/llvm/build/bin/clang-7+0x2166c8a)
#1 0x000055d0eec522d4 llvm::sys::RunSignalHandlers()
(/android1/llvm/build/bin/clang-7+0x21652d4)
#2 0x000055d0eec52402 SignalHandler(int)
(/android1/llvm/build/bin/clang-7+0x2165402)
#3 0x00007f20a9f140c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x000055d0ef5926b2
llvm::DAGTypeLegalizer::DisintegrateMERGE_VALUES(llvm::SDNode*, unsigned int)
(/android1/llvm/build/bin/clang-7+0x2aa56b2)
#5 0x000055d0ef608f58
llvm::DAGTypeLegalizer::ExpandRes_MERGE_VALUES(llvm::SDNode*, unsigned int,
llvm::SDValue&, llvm::SDValue&) (/android1/llvm/build/bin/clang-7+0x2b1bf58)
#6 0x00007ffda33f3006
clang-7: error: unable to execute command: Segmentation fault

Reported: <a href="https://github.com/ClangBuiltLinux/linux/issues/22">https://github.com/ClangBuiltLinux/linux/issues/22</a></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>