Skip to content

Conversation

@ivankyluk
Copy link
Contributor

@ivankyluk ivankyluk commented Dec 3, 2025

There is a bug in drsyscall_iterate_records() where it stops to process syscall record if a record ends exactly at the end of its buffer. This bug affects both drsyscall_record_trimmer and drsyscall_record_viewer.

The root cause of this failure is not in the syscall record collection but rather in the iteration logic used by drsyscall_iterate_records() during subsequent processing.

Add a unit test which has a syscall record which ends exactly at the end of the buffer. Without the fix, the syscall record DRSYS_RECORD_END_TIMESTAMP will not be read.

Issue: #7588

Copy link
Contributor

@derekbruening derekbruening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch tests to all-in-one to avoid potential flakiness from magic constants?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants