Skip to content

rr hits a fatal assert and prevents further replay #4060

@aravind2612krishna

Description

@aravind2612krishna

First of all, thanks for this amazing tool.
Secondly, I'd like to debug and help understand the root cause of my issue, but I'm not very familiar with the internals, so I'll post an issue here in case I get some help.
When I replay a recording of my code, rr encounters a fatal error with the following message to stdout:

[FATAL src/Task.cc:1446:compute_trap_reasons()]
 (task 23212 (rec:22828) at time 29708)
 -> Assertion `as->is_breakpoint_instruction(this, ip_at_breakpoint)' failed to hold.  expected breakpoint at 0x7f9455b9a421, got siginfo {signo:SIGTRAP,errno:SUCCESS,code:TRAP_BRKPT,addr:0x7f9455b9a422}

This happens only on the specific application I'm debugging and not in any simple hello world application.
Additionally, some replays go through and work well. This happens in around 90% of the replays.

Any help on how I can go about debugging it would be appreciated, since I cannot reveal details about the application I'm debugging.

Edit : I'm on Fedora 42 with rr version 5.9.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions