[Lldb-commits] [lldb] [lldb] Fix nullptr dereference on running x86 binary with x86-disabled llvm (PR #82603)

Daniil Kovalev via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 28 14:22:58 PST 2024


kovdan01 wrote:

> tbh I have no problems with the patch, but I think it's fixing something that I think should be reconsidered altogether, I'm interested to hear more about what the use case looks like that led to this being a problem.

@jasonmolenda The use case is very simple, describing it "as is". I was working on AArch64-specific stuff in lldb in downstream and revealed an x86-related issue while reading the code (see https://github.com/llvm/llvm-project/pull/82364). When working on the latter issue, I tried to run a random x86-64 executable inside lldb and got this error. It occurs literally on the simplest use case:

1. run `lldb /usr/bin/ls`
2. inside lldb, hit `r` to run
3. get the nullptr dereference described

Yes, it's *that* simple.

https://github.com/llvm/llvm-project/pull/82603


More information about the lldb-commits mailing list