<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 - opt crashes with "opt -loop-deletion -iv-users""
   href="https://bugs.llvm.org/show_bug.cgi?id=40990">40990</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt crashes with "opt -loop-deletion -iv-users"
          </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>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>Global Analyses
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mikael.holmen@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21573" name="attach_21573" title="reproducer">attachment 21573</a> <a href="attachment.cgi?id=21573&action=edit" title="reproducer">[details]</a></span>
reproducer

opt -loop-deletion -iv-users -S -o - bbi-25433.ll

crashes with

Stack dump:
0.      Program arguments: build-all/bin/opt -loop-deletion -iv-users -S -o -
bbi-25433.ll 
1.      Running pass 'Function Pass Manager' on module 'bbi-25433.ll'.
2.      Running pass 'Loop Pass Manager' on function '@test'
3.      Releasing pass 'Induction Variable Users'
 #0 0x000000000228a2e4 PrintStackTraceSignalHandler(void*)
(build-all/bin/opt+0x228a2e4)
 #1 0x00000000022882d0 llvm::sys::RunSignalHandlers()
(build-all/bin/opt+0x22882d0)
 #2 0x000000000228a648 SignalHandler(int) (build-all/bin/opt+0x228a648)
 #3 0x00007f02c353e330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
 #4 0x000000000168d635 llvm::IVUsersWrapperPass::releaseMemory()
(build-all/bin/opt+0x168d635)
 #5 0x0000000001c96e13 llvm::PMDataManager::freePass(llvm::Pass*,
llvm::StringRef, llvm::PassDebuggingString) (build-all/bin/opt+0x1c96e13)
 #6 0x00000000016fce0a llvm::LPPassManager::runOnFunction(llvm::Function&)
(build-all/bin/opt+0x16fce0a)
 #7 0x0000000001c999dd llvm::FPPassManager::runOnFunction(llvm::Function&)
(build-all/bin/opt+0x1c999dd)
 #8 0x0000000001c99c98 llvm::FPPassManager::runOnModule(llvm::Module&)
(build-all/bin/opt+0x1c99c98)
 #9 0x0000000001c9a0fa llvm::legacy::PassManagerImpl::run(llvm::Module&)
(build-all/bin/opt+0x1c9a0fa)
#10 0x000000000078cd45 main (build-all/bin/opt+0x78cd45)
#11 0x00007f02c2118f45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#12 0x000000000077191d _start (build-all/bin/opt+0x77191d)
Segmentation fault

This seems to be old. I tried with some build from late 2016 and that crashes
too.</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>