[Bug 49678] New: SymbolFile/DWARF/dwarf5-debug_line-file-index.s crash lldb on arm linux

Bug ID 49678
Summary SymbolFile/DWARF/dwarf5-debug_line-file-index.s crash lldb on arm linux
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter omair.javaid@linaro.org
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

/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/](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)

labath@google.com changed bug 49678

Comment # 2 on bug 49678 from labath@google.com

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...