[Lldb-commits] [PATCH] D137983: [lldb] Disable looking at pointee types to find synthetic value for non-ObjC
Arthur Eubanks via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 14 14:00:55 PST 2022
aeubanks added a comment.
Herald added a subscriber: JDevlieghere.
lldb crash repro
$ cat /tmp/a.cc
#include <vector>
void f(std::vector<int>& v) {
*(volatile int*) nullptr = 0;
}
$ cat /tmp/main.cc
#include <vector>
void f(std::vector<int>& v);
int main() {
std::vector<int> v ;
f(v);
}
$ ./build/bin/clang++ -g /tmp/a.cc -o /tmp/a.so -shared -stdlib=libc++ -fuse-ld=lld -Wl,-rpath,$PWD/build/rel/lib
$ ./build/bin/clang++ -g /tmp/main.cc /tmp/a.so -o /tmp/a -stdlib=libc++ -fuse-ld=lld -Wl,-rpath,$PWD/build/rel/lib
$ ./build/bin/lldb /tmp/a -b -o run
# crash
any help with adding a test case for this would be appreciated, I'm not sure if there's any testing for shared libraries in lldb?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137983/new/
https://reviews.llvm.org/D137983
More information about the lldb-commits
mailing list