<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 - Assertion failure if llvm-symbolizer GNU output style with --no-inlines and missing input file"
   href="https://bugs.llvm.org/show_bug.cgi?id=48882">48882</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure if llvm-symbolizer GNU output style with --no-inlines and missing input file
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-symbolizer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jh7370.2008@my.bristol.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I ran into the following crash when running llvm-symbolizer with
--output-style=GNU and --no-inlines when the input file wasn't present. The
crash shouldn't happen - just the error message about no input file, and
possibly other related output.

PS C:\Work\TempWork> c:\llvm\build\debug\bin\llvm-symbolizer.exe
"--output-style=GNU" "--obj=blargle.elf" "0x130" "0x120" "-p" --no-inlines
LLVMSymbolizer: error reading file: no such file or directory
?? at ??:0
Assertion failed: Index < Frames.size(), file
C:\llvm\llvm-project\llvm\include\llvm/DebugInfo/DIContext.h, line 95
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:\\llvm\\build\\debug\\bin\\llvm-symbolizer.exe
--output-style=GNU --obj=blargle.elf 0x130 0x120 -p --no-inlines
0x00007FF6F329E6BC (0x000000FB00000016 0x0000000000000000 0x00007FF6F30F29CD
0x0000000000000000), HandleAbort() + 0xC bytes(s),
c:\llvm\llvm-project\llvm\lib\support\windows\signals.inc, line 408
0x00007FFC1158C3E1 (0x00007FFC00000016 0x000000FB53F8D4F0 0x0000000801000006
0xFFFFFF01000000E8), raise() + 0x441 bytes(s)
0x00007FFC1158E039 (0x000000FB53F8D4F0 0x0000000000000240 0x00007FFC1168A4E0
0x00007FF6F4315678), abort() + 0x39 bytes(s)
0x00007FFC11593C65 (0x00007FF6F4315678 0x00007FF6F43155E0 0xCCCCCCCC0000005F
0xCCCCCCCCCCCCCCCC), _get_wide_winmain_command_line() + 0x2515 bytes(s)
0x00007FFC115937D7 (0x00007FF6F4315678 0x00007FF6F43155E0 0x000000FB0000005F
0xCCCCCCCCCCCCCCCC), _get_wide_winmain_command_line() + 0x2087 bytes(s)
0x00007FFC11591841 (0x00007FF6F4315678 0x00007FF6F43155E0 0xCCCCCCCC0000005F
0x00007FF6F31EDB39), _get_wide_winmain_command_line() + 0xF1 bytes(s)
0x00007FFC115941CF (0x00007FF6F4315678 0x00007FF6F43155E0 0xCCCCCCCC0000005F
0xCCCCCCCCCCCCCCCC), _wassert() + 0x2F bytes(s)
0x00007FF6F31EDB39 (0x000000FB53F8E548 0x000000FB00000000 0x000000FB53F8DAF8
0x000000FB53F8EC90), llvm::DIInliningInfo::getFrame() + 0x59 bytes(s),
c:\llvm\llvm-project\llvm\include\llvm\debuginfo\dicontext.h, line 95 + 0x37
byte(s)
0x00007FF6F31C8C91 (0x000000FB53F8EF98 0x0000000000000000 0x000000FB00000000
0x000000FB00000001), symbolizeInput() + 0x7E1 bytes(s),
c:\llvm\llvm-project\llvm\tools\llvm-symbolizer\llvm-symbolizer.cpp, line 184 +
0x4A byte(s)
0x00007FF6F31CA35E (0x00007FF600000007 0x00000200267F6970 0x0000000000000000
0x00007FF6F430E1D8), main() + 0xBFE bytes(s),
c:\llvm\llvm-project\llvm\tools\llvm-symbolizer\llvm-symbolizer.cpp, line 341
0x00007FF6F33F5324 (0x00007FF6F430D000 0x00007FF6F430DC88 0x0000000000000000
0x0000000000000000), invoke_main() + 0x34 bytes(s),
d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line
79
0x00007FF6F33F520E (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), __scrt_common_main_seh() + 0x12E bytes(s),
d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line
288 + 0x5 byte(s)
0x00007FF6F33F50CE (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), __scrt_common_main() + 0xE bytes(s),
d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line
331
0x00007FF6F33F53B9 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), mainCRTStartup() + 0x9 bytes(s),
d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp, line 17
0x00007FFC4D2F7C24 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFC4D56D4D1 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)

The crash also occurs when using llvm-addr2line in the same manner, unless
--inlines is specified.</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>