'threads' fails checksum validation

Open
#1,794 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start at src/util.cc:312 in iterate_checksums() and reproduce with --checksum=after-syscalls, focusing on the shutdown path involving pthreads. Use the provided gdb command and trace details to investigate the mapping change; done means the checksum validation no longer fails for this case.

Written by the indexing model from the issue text.

Description

With --checksum=after-syscalls:

[FATAL /home/khuey/dev/rr/src/util.cc:312:iterate_checksums() errno: SUCCESS](task 19090 %28rec:19063%29 at time 228)
-> Assertion `rec_start_addr == m.map.start() && rec_end_addr == m.map.end()' failed to hold. Segment 0x7fa741e71000-0x7fa741f71000 changed to 0x7fa742171000-0x7fa742172000 ---p 00000000 00:00 0 ??
Launch gdb with
gdb '-l' '-1' '-ex' 'target extended-remote :19090' /home/khuey/.local/share/rr/latest-trace/mmap_hardlink_2_threads

It's at shutdown and seems to be related to pthreads somehow. Filing so I don't forget.

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

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.

More from rr-debugger/rr

All issues in rr-debugger/rr

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.