vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.43k stars 237 forks source link

VSCode call stack doesn't work when instruction pointer is invalid #954

Closed russelltg closed 10 months ago

russelltg commented 1 year ago

OS: Ubuntu 20.04 in docker VSCode version: 1.79.2 CodeLLDB version: 1.9.2 Compiler: Clang 16.0.6 Debuggee: x86_64-linux-gnu

I have this binary that when I debug, it crashes and LLDB catches that. But I can't see the stacktrace in the vscode window, just from the debug console with bt. In the vscode window, it shows "Can't read instructions at that address":

image

Verbose log

I'm happy to provide more info if useful. I can email binaries as well, but would prefer to keep those private.

Edit: this seems to happy whenever the instruction pointer is invalid. This program repro's it:

int main()
{
    using call_t = void(*)();

    call_t call = nullptr;
    call();
}
swadcfgggghfhfhgfh commented 8 months ago

int main() { using call_t = void(*)();

call_t call = nullptr;
call();

}

swadcfgggghfhfhgfh commented 8 months ago

call_t call = nullptr; call();