rr-debugger / rr

Record and Replay Framework
http://rr-project.org/
Other
9.17k stars 586 forks source link

Assertion !syscall_bp_vm failed to hold during replay #2389

Open peterwaller-arm opened 5 years ago

peterwaller-arm commented 5 years ago

Similarly to #2286 and #2292.

I can hit this reliably running llvm/llvm-project clang @ master, but unfortunately I'm going away for a few weeks now. I've run out of time but trying to put as much information here as I can. Notably, gdb has a problem with what I'm doing too.

I'm invoking the clang frontend and trying to put a breakpoint on clang::ExecuteCompilerInvocation, then single step into it.

LLVM/Clang is built with -DBUILD_SHARED_LIBS -DLLVM_USE_SPLIT_DWARF=On CMAKE_EXE_LINKER_FLAGS:STRING='-Wl,-gdb-index -fuse-ld=lld '.

Interestingly, gdb also crashes if I try to step through this call. The call itself shows up as clang::ExecuteCompilerInvocation@plt during the breakpoint.

If I get time I'll try and add more information, but no promises! I hope there is something useful in what I have written above.

khuey commented 5 years ago

Does rr successfully replay through without gdb (i.e. does rr replay -a work?)

Can you rr pack the trace and put it somewhere for us to download?

peterwaller-arm commented 5 years ago

Yes, rr replay -a works.

I'm afraid I can't rr pack it in situ and send that to you, since it's a work machine. If I can get a moment I'll see if I can reproduce cleanly from a private machine.