rr-debugger / rr-debugger/rr

Assertion `ticks_now == trace_ticks' failed to hold. ticks mismatch for 'SYSCALL: munmap'; expected 106734163, got 106734145

Open
#2,417 41 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Description

I get the following when trying to replay a recording of Firefox on Ubuntu 19.10

FATAL /build/rr-Stwazj/rr-5.2.0/src/ReplaySession.cc:1023:check_ticks_consistency()] 
 (task 20251 (rec:18138) at time 5571)
 -> Assertion `ticks_now == trace_ticks' failed to hold. ticks mismatch for 'SYSCALL: munmap'; expected 106734163, got 106734145
=== Start rr backtrace:
rr(_ZN2rr13dump_rr_stackEv+0x41)[0x55cc30ebb581]
rr(_ZN2rr9GdbServer15emergency_debugEPNS_4TaskE+0x605)[0x55cc30debdd5]
rr(_ZN2rr21EmergencyDebugOstreamD2Ev+0x122)[0x55cc30dfbe82]
rr(_ZN2rr13ReplaySession23check_ticks_consistencyEPNS_10ReplayTaskERKNS_5EventE+0xaa)[0x55cc30e65f2a]
rr(_ZN2rr13ReplaySession11replay_stepERKNS0_15StepConstraintsE+0x84e)[0x55cc30e6bf1e]
rr(_ZN2rr14ReplayTimeline19replay_step_forwardENS_10RunCommandEl+0xce)[0x55cc30e828de]
rr(_ZN2rr9GdbServer12serve_replayERKNS0_15ConnectionFlagsE+0x85)[0x55cc30deec25]
rr(+0x10c7a7)[0x55cc30e627a7]
rr(_ZN2rr13ReplayCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0x750)[0x55cc30e63310]
rr(main+0x282)[0x55cc30da6992]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f205f1bfb6b]
rr(_start+0x2a)[0x55cc30da6aaa]
=== End rr backtrace
Launch gdb with
  gdb '-l' '10000' '-ex' 'set sysroot /' '-ex' 'target extended-remote 127.0.0.1:20251' /home/jrmuizel/.rr/firefox-0/mmap_hardlink_3_firefox

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/ReplaySession.cc:1023 and the check_ticks_consistency() call in replay_step(). Reproduce the Firefox recording on Ubuntu 19.10 using the provided gdb launch command, then inspect the SYSCALL: munmap event and the reported tick values. Done means identifying and correcting the cause of the replay tick mismatch, with a regression test if the repository provides a suitable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
devtools, operating-systems, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.