[llvm-bugs] [Bug 48882] New: Assertion failure if llvm-symbolizer GNU output style with --no-inlines and missing input file

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 26 03:38:06 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48882

            Bug ID: 48882
           Summary: Assertion failure if llvm-symbolizer GNU output style
                    with --no-inlines and missing input file
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-symbolizer
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

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 https://bugs.llvm.org/ 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210126/ec0e9b69/attachment.html>


More information about the llvm-bugs mailing list