Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SymbolFile/DWARF/dwarf5-debug_line-file-index.s crash lldb on arm linux #49022

Closed
llvmbot opened this issue Mar 22, 2021 · 5 comments
Closed
Assignees
Labels
bugzilla Issues migrated from bugzilla lldb

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Mar 22, 2021

Bugzilla Link 49678
Resolution FIXED
Resolved on Jun 14, 2021 16:57
Version unspecified
OS Linux
Blocks #48661
Attachments coredump thread back trace
Reporter LLVM Bugzilla Contributor
CC @dwblaikie,@JDevlieghere,@labath,@tstellar
Fixed by commit(s) 2ecf928

Extended Description

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

@llvmbot
Copy link
Collaborator Author

llvmbot commented Mar 22, 2021

assigned to @labath

@labath
Copy link
Collaborator

labath commented Mar 22, 2021

I believe 10d54e2 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...

@labath
Copy link
Collaborator

labath commented Apr 8, 2021

The underlying issue fixed by 2ecf928.

@labath
Copy link
Collaborator

labath commented Jun 11, 2021

OK for 12.0.1 backport.

@tstellar
Copy link
Collaborator

The fix does not apply cleanly, could someone backport this and push a branch to their local github fork?

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lldb
Projects
None yet
Development

No branches or pull requests

3 participants