[FATAL /builddir/build/BUILD/rr-5.4.0/src/ReplaySession.cc:1306:flush_syscallbuf()]
(task 9973 (rec:9596) at time 1037)
-> Assertion `t->stop_sig() == SIGSEGV && r.ip() == t->vm()->do_breakpoint_fault_addr()' failed to hold. Replay got unexpected signal (or none) 11
Tail of trace dump:
{
real_time:3649183.888775 global_time:1017, event:`SYSCALL: brk' (state:EXITING_SYSCALL) tid:9596, ticks:3759581
rax:0x257f000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x0 rsi:0x0 rdi:0x257f000 rbp:0xffffffffffffc000 rsp:0x681ffde0 r8:0x255efd0 r9:0x3 r10:0x2561000 r11:0x246 r12:0x7f9c7380b620 r13:0x7f9c73809438 r14:0x0 r15:0x7f9c73808ba0 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0xc fs_base:0x7f9c74b2ab80 gs_base:0x0
{ map_file:"<ZERO>", addr:0x257f000, length:0x4000, prot_flags:"---p", file_offset:0x0, device:0, inode:0, data_file:"", data_offset:0x0, file_size:0x4000 }
}
{
real_time:3649183.888822 global_time:1018, event:`SYSCALL: brk' (state:ENTERING_SYSCALL) tid:9596, ticks:3759596
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x0 rsi:0x0 rdi:0x0 rbp:0x0 rsp:0x681ffde0 r8:0x255efd0 r9:0x3 r10:0x2561000 r11:0x246 r12:0x7f9c7380b620 r13:0x7f9c73809438 r14:0x0 r15:0x7f9c73808ba0 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0xc fs_base:0x7f9c74b2ab80 gs_base:0x0
}
{
real_time:3649183.888850 global_time:1019, event:`SYSCALL: brk' (state:EXITING_SYSCALL) tid:9596, ticks:3759596
rax:0x257f000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x0 rsi:0x0 rdi:0x0 rbp:0x0 rsp:0x681ffde0 r8:0x255efd0 r9:0x3 r10:0x2561000 r11:0x246 r12:0x7f9c7380b620 r13:0x7f9c73809438 r14:0x0 r15:0x7f9c73808ba0 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0xc fs_base:0x7f9c74b2ab80 gs_base:0x0
{ map_file:"<ZERO>", addr:0x257f000, length:(nil), prot_flags:"---p", file_offset:0x0, device:0, inode:0, data_file:"", data_offset:0x0, file_size:0x0 }
}
{
real_time:3649183.888924 global_time:1020, event:`SYSCALLBUF_FLUSH' tid:9596, ticks:3761234
{ syscall:'access', ret:0xfffffffffffffffe, size:0x10 }
{ syscall:'access', ret:0x0, size:0x10 }
}
{
real_time:3649183.888927 global_time:1021, event:`SYSCALL: sched_yield' (state:ENTERING_SYSCALL) tid:9596, ticks:3761234
rax:0xffffffffffffffda rbx:0x7f9c7380f240 rcx:0xffffffffffffffff rdx:0x7f9c74b3c908 rsi:0x0 rdi:0x7f9c74b3c908 rbp:0x2550150 rsp:0x7ffca763e9c8 r8:0x0 r9:0x7f9c7380e698 r10:0x26 r11:0x246 r12:0x101 r13:0x7ffca763ed90 r14:0x0 r15:0x0 rip:0x7f9c7470900b eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x18 fs_base:0x7f9c74b2ab80 gs_base:0x0
}
{
real_time:3649183.888929 global_time:1022, event:`SYSCALLBUF_RESET' tid:9596, ticks:3761234
}
{
real_time:3649183.888946 global_time:1023, event:`SYSCALL: sched_yield' (state:EXITING_SYSCALL) tid:9596, ticks:3761234
rax:0x0 rbx:0x7f9c7380f240 rcx:0xffffffffffffffff rdx:0x7f9c74b3c908 rsi:0x0 rdi:0x7f9c74b3c908 rbp:0x2550150 rsp:0x7ffca763e9c8 r8:0x0 r9:0x7f9c7380e698 r10:0x26 r11:0x246 r12:0x101 r13:0x7ffca763ed90 r14:0x0 r15:0x0 rip:0x7f9c7470900b eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x18 fs_base:0x7f9c74b2ab80 gs_base:0x0
}
{
real_time:3649183.889035 global_time:1024, event:`SYSCALLBUF_FLUSH' tid:9596, ticks:3762684
{ syscall:'openat', ret:0x3, size:0x10, desched:1 }
{ syscall:'readlinkat', ret:0x15, size:0x25 }
{ syscall:'read', ret:0x340, size:0x350, desched:1 }
{ syscall:'fstat', ret:0x0, size:0xa0 }
}
{
real_time:3649183.889038 global_time:1025, event:`SYSCALL: mmap' (state:ENTERING_SYSCALL) tid:9596, ticks:3762684
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x5 rsi:0x7e4d28 rdi:0x0 rbp:0x0 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x802 r11:0x246 r12:0x5 r13:0x7e4d28 r14:0x802 r15:0x3 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f9c74b2ab80 gs_base:0x0
}
{
real_time:3649183.889039 global_time:1026, event:`SYSCALLBUF_RESET' tid:9596, ticks:3762684
}
{
real_time:3649183.890963 global_time:1027, event:`SYSCALL: mmap' (state:EXITING_SYSCALL) tid:9596, ticks:3762684
rax:0x7f9c6a607000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x5 rsi:0x7e4d28 rdi:0x0 rbp:0x0 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x802 r11:0x246 r12:0x5 r13:0x7e4d28 r14:0x802 r15:0x3 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f9c74b2ab80 gs_base:0x0
{ map_file:"/tmp/test.so", addr:0x7f9c6a607000, length:0x7e5000, prot_flags:"r-xp", file_offset:0x0, device:64768, inode:33567816, data_file:"/tmp/test.so", data_offset:0x0, file_size:0x2abe80 }
}
{
real_time:3649183.891042 global_time:1028, event:`SYSCALLBUF_FLUSH' tid:9596, ticks:3762727
{ syscall:'mprotect', ret:0x0, size:0x10 }
}
{
real_time:3649183.891049 global_time:1029, event:`SYSCALL: mmap' (state:ENTERING_SYSCALL) tid:9596, ticks:3762727
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x3 rsi:0xa5000 rdi:0x7f9c6a9e6000 rbp:0x7f9c6a9e6000 rsp:0x681ffde0 r8:0x3 r9:0x1df000 r10:0x812 r11:0x246 r12:0x3 r13:0xa5000 r14:0x812 r15:0x3 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f9c74b2ab80 gs_base:0x0
}
{
real_time:3649183.891051 global_time:1030, event:`SYSCALLBUF_RESET' tid:9596, ticks:3762727
}
{
real_time:3649183.891094 global_time:1031, event:`SYSCALL: mmap' (state:EXITING_SYSCALL) tid:9596, ticks:3762727
rax:0x7f9c6a9e6000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x3 rsi:0xa5000 rdi:0x7f9c6a9e6000 rbp:0x7f9c6a9e6000 rsp:0x681ffde0 r8:0x3 r9:0x1df000 r10:0x812 r11:0x246 r12:0x3 r13:0xa5000 r14:0x812 r15:0x3 rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f9c74b2ab80 gs_base:0x0
{ map_file:"/tmp/test.so", addr:0x7f9c6a9e6000, length:0xa5000, prot_flags:"rw-p", file_offset:0x1df000, device:64768, inode:33567816, data_file:"/tmp/test.so", data_offset:0x1df000, file_size:0x2abe80 }
}
{
real_time:3649183.891206 global_time:1032, event:`SYSCALL: mmap' (state:ENTERING_SYSCALL) tid:9596, ticks:3762811
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x3 rsi:0x360d28 rdi:0x7f9c6aa8b000 rbp:0x7f9c6aa8b000 rsp:0x681ffde0 r8:0xffffffff r9:0x0 r10:0x32 r11:0x246 r12:0x3 r13:0x360d28 r14:0x32 r15:0xffffffff rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f9c74b2ab80 gs_base:0x0
}
{
real_time:3649183.891231 global_time:1033, event:`SYSCALL: mmap' (state:EXITING_SYSCALL) tid:9596, ticks:3762811
rax:0x7f9c6aa8b000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x3 rsi:0x360d28 rdi:0x7f9c6aa8b000 rbp:0x7f9c6aa8b000 rsp:0x681ffde0 r8:0xffffffff r9:0x0 r10:0x32 r11:0x246 r12:0x3 r13:0x360d28 r14:0x32 r15:0xffffffff rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f9c74b2ab80 gs_base:0x0
{ map_file:"<ZERO>", addr:0x7f9c6aa8b000, length:0x361000, prot_flags:"rw-p", file_offset:0x0, device:0, inode:0, data_file:"", data_offset:0x0, file_size:0x361000 }
}
{
real_time:3649183.891394 global_time:1034, event:`SYSCALLBUF_FLUSH' tid:9596, ticks:3771993
{ syscall:'close', ret:0x0, size:0x10 }
{ syscall:'mprotect', ret:0x0, size:0x10 }
}
{
real_time:3649183.891427 global_time:1035, event:`PATCH_SYSCALL' tid:9596, ticks:3771993
rax:0x6 rbx:0x2560680 rcx:0xffffffffffffffff rdx:0x7ffca763e8c0 rsi:0x7ffca763e8c0 rdi:0x255f680 rbp:0x7ffca763e990 rsp:0x7ffca763e878 r8:0x2550153 r9:0x3 r10:0x0 r11:0x246 r12:0x255f680 r13:0x2550154 r14:0x2550151 r15:0x255f684 rip:0x7f9c73537d87 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0xffffffffffffffff fs_base:0x7f9c74b2ab80 gs_base:0x0
{ tid:9596, addr:0x7f9c7493d773, length:0x4f }
{ tid:9596, addr:0x7f9c73537d87, length:0x5 }
{ tid:9596, addr:0x7f9c73537d8c, length:0x3 }
}
{
real_time:3649183.891429 global_time:1036, event:`SYSCALLBUF_RESET' tid:9596, ticks:3771993
}
{
real_time:3649183.893855 global_time:1037, event:`SYSCALLBUF_FLUSH' tid:9596, ticks:3828174
{ syscall:'lstat', ret:0x0, size:0xa0 }
{ syscall:'lstat', ret:0x0, size:0xa0 }
{ syscall:'lstat', ret:0x0, size:0xa0 }
{ syscall:'lstat', ret:0x0, size:0xa0 }
{ syscall:'access', ret:0xfffffffffffffffe, size:0x10 }
{ syscall:'access', ret:0x0, size:0x10 }
}
{
real_time:3649183.893861 global_time:1038, event:`SYSCALL: sched_yield' (state:ENTERING_SYSCALL) tid:9596, ticks:3828174
rax:0xffffffffffffffda rbx:0x7f9c7380f240 rcx:0xffffffffffffffff rdx:0x7f9c74b3c908 rsi:0x0 rdi:0x7f9c74b3c908 rbp:0x2550150 rsp:0x7ffca763d468 r8:0x0 r9:0x7f9c7380e698 r10:0x27 r11:0x246 r12:0x101 r13:0x7ffca763ed90 r14:0x0 r15:0x0 rip:0x7f9c7470900b eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x18 fs_base:0x7f9c74b2ab80 gs_base:0x0
}
=== Start rr backtrace:
rr(_ZN2rr13dump_rr_stackEv+0x5a)[0x55ef8181ffea]
rr(_ZN2rr9GdbServer15emergency_debugEPNS_4TaskE+0x645)[0x55ef8190bce5]
rr(+0x128e70)[0x55ef818f8e70]
rr(_ZN2rr21EmergencyDebugOstreamD1Ev+0x73)[0x55ef818f8fd3]
rr(_ZN2rr13ReplaySession16flush_syscallbufEPNS_10ReplayTaskERKNS0_15StepConstraintsE+0xc24)[0x55ef81880f24]
rr(_ZN2rr13ReplaySession18try_one_trace_stepEPNS_10ReplayTaskERKNS0_15StepConstraintsE+0x18e)[0x55ef8188569e]
rr(_ZN2rr13ReplaySession11replay_stepERKNS0_15StepConstraintsE+0x134)[0x55ef81886054]
rr(_ZN2rr14ReplayTimeline19replay_step_forwardENS_10RunCommandEl+0xd2)[0x55ef81864002]
rr(_ZN2rr9GdbServer14debug_one_stepERNS_10GdbRequestE+0xb66)[0x55ef8190d9e6]
rr(_ZN2rr9GdbServer12serve_replayERKNS0_15ConnectionFlagsE+0x72b)[0x55ef8190e53b]
rr(+0xbf9be)[0x55ef8188f9be]
rr(_ZN2rr13ReplayCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0x4f3)[0x55ef818901d3]
rr(main+0x2a2)[0x55ef81811032]
/lib64/libc.so.6(__libc_start_main+0xf3)[0x7f5f2b7c27b3]
rr(_start+0x2e)[0x55ef8181118e]
=== End rr backtrace
Produced by a run of
rr replay
(gdb) break myfunc_
(gdb) continue
(gdb) step
If I do the same on gdb --args
(adding run
after the break
) I just step into the function called (which is in a library already loaded).