[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 09:30:23 PDT 2024


medismailben wrote:

> > I suggest @medismailben (or an Apple colleague he nominates), runs this test locally and does their best to narrow down the problem.
> > @rocallahan does `rr` work on Mac? Because one cross check here would be to connect lldb to actual `rr` and see if that works. If it does then the test infrastructure is the problem.
> > I can do the same for process Arm Linux, but I will wait and see what turns up on Mac so we aren't duplicating the work.
> > We can skip on some platforms but I'd really like to avoid that unless it's something fundamental about the way the test itself works. Apart from anything else, it means you don't have to tell `rr` users "it works here but -maybe- not here".
> 
> Starting a build / test for this branch right now! I'll give an update when its done running.

```
/Users/mib/Developer/open-source/llvm.org/build/rr/venv/bin/python3.12 /Users/mib/Developer/open-source/llvm.org/lldb/test/API/dotest.py --arch arm64 --build-dir /Users/mib/Developer/open-source/llvm.org/build/rr/lldb-test-build.noindex --executable /Users/mib/Developer/open-source/llvm.org/build/rr/./bin/lldb --compiler /Users/mib/Developer/open-source/llvm.org/build/rr/./bin/clang --dsymutil /Users/mib/Developer/open-source/llvm.org/build/rr/./bin/dsymutil --make /usr/bin/make --lldb-libs-dir /Users/mib/Developer/open-source/llvm.org/build/rr/./lib --llvm-tools-dir /Users/mib/Developer/open-source/llvm.org/build/rr/./bin --libcxx-include-dir /Users/mib/Developer/open-source/llvm.org/build/rr/include/c++/v1 --libcxx-library-dir /Users/mib/Developer/open-source/llvm.org/build/rr/lib --lldb-obj-root /Users/mib/Developer/open-source/llvm.org/build/rr/tools/lldb -p TestReverseContinueBreakpoints.py
lldb version 20.0.0git (git at github.com:llvm/llvm-project.git revision c373425ab4be848bb376d2710e13efafb6058d11)
  clang revision c373425ab4be848bb376d2710e13efafb6058d11
  llvm revision c373425ab4be848bb376d2710e13efafb6058d11
Skipping the following test categories: ['libstdcxx', 'dwo', 'llgs', 'fork']
Not implemented
UNREACHABLE executed at /Users/mib/Developer/open-source/llvm.org/lldb/tools/lldb-server/lldb-gdbserver.cpp:83!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server gdbserver --reverse-connect [::1]:50892 /Users/mib/Developer/open-source/llvm.org/build/rr/lldb-test-build.noindex/functionalities/reverse-execution/TestReverseContinueBreakpoints.test_reverse_continue/a.out
 #0 0x00000001028a3ea8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x10029fea8)
 #1 0x00000001028a448c PrintStackTraceSignalHandler(void*) (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x1002a048c)
 #2 0x00000001028a2020 llvm::sys::RunSignalHandlers() (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x10029e020)
 #3 0x00000001028a5570 SignalHandler(int) (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x1002a1570)
 #4 0x000000018fcad6e4 (/usr/lib/system/libsystem_platform.dylib+0x1804996e4)
 #5 0x000000018fc76a48 (/usr/lib/system/libsystem_pthread.dylib+0x180462a48)
 #6 0x000000018fb7fbf4 (/usr/lib/system/libsystem_c.dylib+0x18036bbf4)
 #7 0x000000010274379c llvm::install_out_of_memory_new_handler() (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x10013f79c)
 #8 0x00000001026136f0 (anonymous namespace)::NativeProcessManager::Attach(unsigned long long, lldb_private::NativeProcessProtocol::NativeDelegate&) (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x10000f6f0)
 #9 0x00000001029eb348 lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::LaunchProcess() (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x1003e7348)
#10 0x0000000102608d80 handle_launch(lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS&, llvm::ArrayRef<llvm::StringRef>) (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x100004d80)
#11 0x000000010260a90c main_gdbserver(int, char**) (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x10000690c)
#12 0x00000001026325f0 main (/Users/mib/Developer/open-source/llvm.org/build/rr/bin/lldb-server+0x10002e5f0)
#13 0x000000018f8e5f40 
```

Looks like the test is still trying to run `lldb-server` on macOS and crashes ... I'll try to take a look a it later today

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


More information about the lldb-commits mailing list