Assertion `t->regs().original_syscallno() == syscallno' failed to hold

Open
#1,186 1 comment 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, linux

Research direction

Reproduce the failure by editing condvar_stress so RECORD_ARGS uses -c40, then inspect the assertion involving original_syscallno() and the reported gettid/munmap mismatch. Compare the behavior with issue #1182 and determine what must change so this stress case no longer triggers the assertion.

Written by the indexing model from the issue text.

Description

On my machine, if I edit condvar_stress to have -c40 in RECORD_ARGS, I get this assertion (plus "Should be entering munmap, but instead at gettid"). I'll try debugging this locally since it may be relevant to issue #1182 and fixing it will probably help debugging of #1182 at least.

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.