[Bug 34532] New: A few rough corners related to post-mortem debugging (core/minidump)

Bug ID 34532
Summary A few rough corners related to post-mortem debugging (core/minidump)
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter mosescu@google.com
CC llvm-bugs@lists.llvm.org

1. attempting to resume execution on a core/minidump target (process continue)
reports an error (good) but it still changes the process state to running (bad)
resulting in a inconsistent debugger overall state:

(lldb) target create --core "core"
Core file '/usr/local/google/home/mosescu/work/crash/lldb/linux-joshua/core'
(x86_64) was loaded.
(lldb) c
error: Failed to resume process: error: elf-core does not support resuming
processes.
(lldb) bt
error: invalid thread

2. "thread info" hits an access violation:

(lldb) thread info
Stack dump:
0.      HandleCommand(command = "thread info")
Segmentation fault (core dumped)

3. step commands silently fail on core/minidumps

4. quit will incorrectly warn when debugging core dumps (minidumps ok in this
case)

(lldb) target create --core "core"
Core file '/usr/local/google/home/mosescu/work/crash/lldb/linux-joshua/core'
(x86_64) was loaded.
(lldb) q
Quitting LLDB will kill one or more processes. Do you really want to proceed:
[Y/n] y

Leonard Mosescu changed bug 34532