<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 - Segmentation fault in opt with -x86-codegen switch"
   href="https://bugs.llvm.org/show_bug.cgi?id=43277">43277</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segmentation fault in opt with -x86-codegen switch
          </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>Windows NT
          </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>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22485" name="attach_22485" title="a.ll">attachment 22485</a> <a href="attachment.cgi?id=22485&action=edit" title="a.ll">[details]</a></span>
a.ll

Reported here:
<a href="https://lists.llvm.org/pipermail/llvm-dev/2019-September/135045.html">https://lists.llvm.org/pipermail/llvm-dev/2019-September/135045.html</a>

opt -S -o a.out.ll a.ll -x86-codegen

The traces of the error is as follows.

Stack dump:
0.      Program arguments: /home/raghesh/code/mirror/llvm-project/build/bin/opt
-S -o a.out.ll a.ll -x86-codegen
 #0 0x00007ff5339d728a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0x76528a)
 #1 0x00007ff5339d4f64 llvm::sys::RunSignalHandlers()
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0x762f64)
 #2 0x00007ff5339d50a2 SignalHandler(int)
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0x7630a2)
 #3 0x00007ff53291ef20 (/lib/x86_64-linux-gnu/libc.so.6+0x3ef20)
 #4 0x00007ff533d86080
llvm::MachineModuleInfo::MachineModuleInfo(llvm::LLVMTargetMachine const*)
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0xb14080)
 #5 0x00007ff533d86178 llvm::Pass*
llvm::callDefaultCtor<llvm::MachineModuleInfo>()
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0xb14178)
 #6 0x00007ff533b0c83d llvm::PMTopLevelManager::schedulePass(llvm::Pass*)
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0x89a83d)
 #7 0x00007ff533b0c9a3 llvm::PMTopLevelManager::schedulePass(llvm::Pass*)
(/home/raghesh/code/mirror/llvm-project/build/bin/../lib/libLLVM-10svn.so+0x89a9a3)
 #8 0x0000557729456ac4 main
(/home/raghesh/code/mirror/llvm-project/build/bin/opt+0x1dac4)
 #9 0x00007ff532901b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#10 0x000055772945795a _start
(/home/raghesh/code/mirror/llvm-project/build/bin/opt+0x1e95a)
Segmentation fault (core dumped)</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>