Skip to content

fix(native): Omit outermost nullish frames - #2041

Open
Dav1dde wants to merge 1 commit into
masterfrom
dav1d/remove-4k-frames
Open

fix(native): Omit outermost nullish frames#2041
Dav1dde wants to merge 1 commit into
masterfrom
dav1d/remove-4k-frames

Conversation

@Dav1dde

@Dav1dde Dav1dde commented Sep 2, 2026

Copy link
Copy Markdown
Member

This is very similar to #2040 and addresses the same stack trace:

image

But it has a slightly different behaviour which catches cases of bogus frames even if the previous frame isn't a well known glibc frame.

Applies Rust Minidump's stack walking behaviour also to client side unwound frames:

if the instruction is within the first ~page of memory, it's basically
null, and we can assume unwinding is complete.

@Dav1dde
Dav1dde requested a review from a team as a code owner September 2, 2026 21:53
@Dav1dde
Dav1dde force-pushed the dav1d/remove-4k-frames branch from 68d73ad to f938d87 Compare September 2, 2026 21:55

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f938d87. Configure here.

frame.addr_mode == AddrMode::Abs && frame.instruction_addr.0 < 4096;
if status == FrameStatus::UnknownImage && is_outermost_frame && is_nullish {
continue;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lone null-IP crash frame dropped

Medium Severity

The new filter drops an outermost UnknownImage frame when instruction_addr is below 4096, even if it is the only frame. rust-minidump uses that check only to stop walking callers and still keeps the context frame, so a null-IP crash with no further unwind can lose its entire stack.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f938d87. Configure here.

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.

2 participants