Assertion `!syscallbuf_child' failed to hold. Should not already have syscallbuf initialized!
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.7k
- Forks
- 662
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 2
Description
I'm just starting to try rr. When running rr record on an integration test, it hits the following error: "Assertion `!syscallbuf_child' failed to hold. Should not already have syscallbuf initialized!". From my test's logs, it looks like this happens when my test is trying to start a subprocess.
I can avoid this error by giving rr record the -n (--no-syscall-buffer) option, but then my test fails--it starts a subprocess and tries to read from it with recvmsg, but isn't getting anything (though the subprocess is still alive). I don't know whether this is a consequence of the -n option, or just the next issue triggered by running under rr. (The test runs successfully without rr.)
Ubuntu 14.04 LTS
Intel® Xeon(R) CPU E5-1650 0 @ 3.20GHz × 12
rr version 4.4.0 installed following the rr site's Ubuntu instructions.
What information can I provide to help debug this issue (or these two issues)?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the integration test with rr record on the reported Ubuntu environment, first with syscall buffering and then with -n. Capture the subprocess and recvmsg behavior alongside the syscallbuf_child assertion. Done means isolating whether these are one bug or two and documenting a reproducible failure with the relevant test details.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100