Open Bug 1573884 Opened 5 years ago Updated 1 year ago

Include Java stack with native crashes for assertion failures and MOZ_CRASH

Categories

(GeckoView :: General, enhancement, P3)

Unspecified
All
enhancement

Tracking

(Not tracked)

People

(Reporter: rbarker, Unassigned)

References

(Blocks 1 open bug)

Details

Currently in GeckoView, a native crash report only includes the native stack. However sometimes it would be beneficial to know the Java stack that was responsible for calling the native code. If the Java stack for the crashing thread were included in the crash report, it would probably help in diagnosing and fixing some issues.

For an actual native crash, we can't do this, because it's not safe to touch the VM. For assertions or other abort-like cases, though, we should be able to do this.

We need to change the assertion macro to capture the Java stack. The Java stack may include PII, so we need to ensure that the Java stack is private on crash-stats.

Priority: -- → P3
Summary: Include Java stack with native crashes. → Include Java stack with native crashes for assertion failures and MOZ_CRASH

The Java stack may include PII, so we need to ensure that the Java stack is private on crash-stats.

Is it actually necessary to hide the complete stack trace? For Fennec crashes, AFAIK only the full exception message is hidden because that can indeed possibly contain some PII like file paths, other (user-entered) strings, etc.

Rank: 3
Rank: 3 → 8
Severity: normal → S3
Rank: 8 → 333

Tasks and enhancements should have severity N/A.

Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.