<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 - fatal error: error in backend: Stack cannot be empty!"
   href="https://bugs.llvm.org/show_bug.cgi?id=50782">50782</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>fatal error: error in backend: Stack cannot be empty!
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>llvm-bugzilla@jdrake.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24967" name="attach_24967" title="LLVM ERROR: Cannot pop empty stack! - creduced case">attachment 24967</a> <a href="attachment.cgi?id=24967&action=edit" title="LLVM ERROR: Cannot pop empty stack! - creduced case">[details]</a></span>
LLVM ERROR: Cannot pop empty stack! - creduced case

I've actually run into to slightly different but similar issues on
i686-w64-windows-gnu, from
<a href="https://packages.msys2.org/package/mingw-w64-clang-i686-llvm?repo=clang32">https://packages.msys2.org/package/mingw-w64-clang-i686-llvm?repo=clang32</a>:

LLVM ERROR: Stack cannot be empty!
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: C:\\msys64\\clang64\\bin\\llc.exe psy-abba67.bc
1.      Running pass 'Function Pass Manager' on module 'psy-abba67.bc'.
2.      Running pass 'X86 FP Stackifier' on function '@bark_noise_hybridmp'
 #0 0x00007fff85c01d86 HandleAbort (C:\msys64\clang64\bin\libLLVM.dll+0x151d86)
 #1 0x00007fffc2211881 (C:\Windows\System32\ucrtbase.dll+0x71881)
 #2 0x00007fffc2212851 (C:\Windows\System32\ucrtbase.dll+0x72851)
 #3 0x00007fff85b43ebe llvm::report_fatal_error(llvm::Twine const&, bool)
(C:\msys64\clang64\bin\libLLVM.dll+0x93ebe)
 #4 0x00007fff85b43cf5 llvm::report_fatal_error(char const*, bool)
(C:\msys64\clang64\bin\libLLVM.dll+0x93cf5)
 #5 0x00007fff8835681c llvm::createX86FloatingPointStackifierPass()
(C:\msys64\clang64\bin\libLLVM.dll+0x28a681c)
 #6 0x00007fff8835463c llvm::createX86FloatingPointStackifierPass()
(C:\msys64\clang64\bin\libLLVM.dll+0x28a463c)
 #7 0x00007fff85f7df43
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(C:\msys64\clang64\bin\libLLVM.dll+0x4cdf43)
 #8 0x00007fff85d547c8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(C:\msys64\clang64\bin\libLLVM.dll+0x2a47c8)
 #9 0x00007fff85d5a683 llvm::FPPassManager::runOnModule(llvm::Module&)
(C:\msys64\clang64\bin\libLLVM.dll+0x2aa683)
#10 0x00007fff85d54ee3 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(C:\msys64\clang64\bin\libLLVM.dll+0x2a4ee3)
#11 0x00007ff735374e43 main (C:\msys64\clang64\bin\llc.exe+0x4e43)
#12 0x00007ff7353713ea WinMainCRTStartup (C:\msys64\clang64\bin\llc.exe+0x13ea)
#13 0x00007ff735371446 mainCRTStartup (C:\msys64\clang64\bin\llc.exe+0x1446)
#14 0x00007fffc2f37034 (C:\Windows\System32\KERNEL32.DLL+0x17034)
#15 0x00007fffc4642651 (C:\Windows\SYSTEM32\ntdll.dll+0x52651)

LLVM ERROR: Cannot pop empty stack!
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: C:\\msys64\\clang64\\bin\\llc.exe ltp-4ac572.bc
1.      Running pass 'Function Pass Manager' on module 'ltp-4ac572.bc'.
2.      Running pass 'X86 FP Stackifier' on function '@pitch_gain_search_3tap'
 #0 0x00007fff85c01d86 HandleAbort (C:\msys64\clang64\bin\libLLVM.dll+0x151d86)
 #1 0x00007fffc2211881 (C:\Windows\System32\ucrtbase.dll+0x71881)
 #2 0x00007fffc2212851 (C:\Windows\System32\ucrtbase.dll+0x72851)
 #3 0x00007fff85b43ebe llvm::report_fatal_error(llvm::Twine const&, bool)
(C:\msys64\clang64\bin\libLLVM.dll+0x93ebe)
 #4 0x00007fff85b43cf5 llvm::report_fatal_error(char const*, bool)
(C:\msys64\clang64\bin\libLLVM.dll+0x93cf5)
 #5 0x00007fff88356d03 llvm::createX86FloatingPointStackifierPass()
(C:\msys64\clang64\bin\libLLVM.dll+0x28a6d03)
 #6 0x00007fff88355baf llvm::createX86FloatingPointStackifierPass()
(C:\msys64\clang64\bin\libLLVM.dll+0x28a5baf)
 #7 0x00007fff8835463c llvm::createX86FloatingPointStackifierPass()
(C:\msys64\clang64\bin\libLLVM.dll+0x28a463c)
 #8 0x00007fff85f7df43
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)(C:\msys64\clang64\bin\libLLVM.dll+0x4cdf43)
 #9 0x00007fff85d547c8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(C:\msys64\clang64\bin\libLLVM.dll+0x2a47c8)
#10 0x00007fff85d5a683 llvm::FPPassManager::runOnModule(llvm::Module&)
(C:\msys64\clang64\bin\libLLVM.dll+0x2aa683)
#11 0x00007fff85d54ee3 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(C:\msys64\clang64\bin\libLLVM.dll+0x2a4ee3)
#12 0x00007ff735374e43 main (C:\msys64\clang64\bin\llc.exe+0x4e43)
#13 0x00007ff7353713ea WinMainCRTStartup (C:\msys64\clang64\bin\llc.exe+0x13ea)
#14 0x00007ff735371446 mainCRTStartup (C:\msys64\clang64\bin\llc.exe+0x1446)
#15 0x00007fffc2f37034 (C:\Windows\System32\KERNEL32.DLL+0x17034)
#16 0x00007fffc4642651 (C:\Windows\SYSTEM32\ntdll.dll+0x52651)


Unfortunately, bugpoint was not helpful, and failed with the message:
Checking for crash with changing conditionals to always jump to true:         
... <34 total>: C:/msys64/clang64/bin/opt.exe: bugpoint-input-260ba01.bc:
error: Could not open input file: Permission denied
verify failed!

But creduce was able to make a reduced (if nonsensical) case for each of them.</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>