LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 49678 - SymbolFile/DWARF/dwarf5-debug_line-file-index.s crash lldb on arm linux
Summary: SymbolFile/DWARF/dwarf5-debug_line-file-index.s crash lldb on arm linux
Status: RESOLVED FIXED
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC Linux
: P enhancement
Assignee: labath
URL:
Keywords:
Depends on:
Blocks: release-12.0.1
  Show dependency tree
 
Reported: 2021-03-22 05:06 PDT by Omair Javaid
Modified: 2021-06-14 16:57 PDT (History)
5 users (show)

See Also:
Fixed By Commit(s): 2ecf928153fc56dcb6bb0bd910584eac86bc23bd


Attachments
coredump thread back trace (7.42 KB, text/plain)
2021-03-22 06:30 PDT, Omair Javaid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Omair Javaid 2021-03-22 05:06:17 PDT
/home/omair.javaid/work/lldb/build/armhf/bin/lldb --no-lldbinit -S /home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/Shell/lit-lldb-init /home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/SymbolFile/DWARF/Output/dwarf5-debug_line-file-index.s.tmp -o "image lookup -f hello.c -l 1"   
(lldb) command source -s 0 '/home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/Shell/lit-lldb-init'
Executing commands in '/home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/Shell/lit-lldb-init'.
(lldb) # LLDB init file for the LIT tests.
(lldb) settings set symbols.enable-external-lookup false
(lldb) settings set plugin.process.gdb-remote.packet-timeout 60
(lldb) settings set interpreter.echo-comment-commands false
(lldb) settings set symbols.clang-modules-cache-path "/home/omair.javaid/work/lldb/build/armhf/lldb-test-build.noindex/module-cache-lldb"
(lldb) settings set target.auto-apply-fixits false
(lldb) settings set target.inherit-tcc true
(lldb) settings set target.detach-on-error false
(lldb) target create "/home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/SymbolFile/DWARF/Output/dwarf5-debug_line-file-index.s.tmp"
Current executable set to '/home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/SymbolFile/DWARF/Output/dwarf5-debug_line-file-index.s.tmp' (x86_64).
(lldb) image lookup -f hello.c -l 1
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/omair.javaid/work/lldb/build/armhf/bin/lldb --no-lldbinit -S /home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/Shell/lit-lldb-init /home/omair.javaid/work/lldb/build/armhf/tools/lldb/test/SymbolFile/DWARF/Output/dwarf5-debug_line-file-index.s.tmp -o "image lookup -f hello.c -l 1"
Segmentation fault (core dumped)
Comment 1 Omair Javaid 2021-03-22 06:30:26 PDT
Created attachment 24674 [details]
coredump thread back trace
Comment 2 labath 2021-03-22 07:38:56 PDT
I believe 10d54e2f8d will fix this. Or, more like, work around the problem, since the invalid input should not cause a crash. Lets not close this bug until we understand what's happening there...
Comment 3 labath 2021-04-08 07:54:32 PDT
The underlying issue fixed by 2ecf928153fc56dcb6bb0bd910584eac86bc23bd.
Comment 4 labath 2021-06-11 10:22:12 PDT
OK for 12.0.1 backport.
Comment 5 Tom Stellard 2021-06-14 16:57:28 PDT
The fix does not apply cleanly, could someone backport this and push a branch to their local github fork?