Repository navigation
bug-2088928: build java_stack_trace from java_exception for crash pings #7302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cd2afc2
bug-2088928: add java_stack_trace_from_java_exception helper
biancadanforth 2cfce56
bug-2088928: add JavaStackTraceFromJavaExceptionRule to processor
biancadanforth 8e8f6bf
bug-2088928: move shared test fixture to conftest.py
biancadanforth c088e7e
bug-2088928: remove submission_type='ping' condition in new rule pred…
biancadanforth 7dbc1f6
bug-2088928: include a line number if available when there's no filen…
biancadanforth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2718,9 +2718,12 @@ properties: | |
| permissions: ["public"] | ||
| source_annotation: JavaException | ||
| java_stack_trace: | ||
| description: > | ||
| description: | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't update the docs in |
||
| The unstructured `JavaStackTrace` crash annotation without the exception | ||
| value. | ||
|
|
||
| If there's no `JavaStackTrace` annotation (e.g. for crash pings), this is | ||
| built from `java_exception` instead. | ||
| type: string | ||
| permissions: ["public"] | ||
| java_stack_trace_raw: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In implementing this, I realized that our signature generation algorithm for Java crashes uses the outermost exception information (the exception class and the top frame in that exception's stackframe) rather than the innermost exception (often considered the root cause).
In an effort to keep signature generation working as it currently does, I won't change that here. I imagine this is mentioned in one or more of the "improve java crash signatures" tickets Willkg filed ages ago. I'll find it and add it to the optional 7 Milestone, as we likely want to use the innermost exception for signature generation rather than the outermost exception. In the
processed_crash.schema.yamlfile forjava_exception, Willkg added a note that he wasn't sure what the ordering ofvalueswas, so perhaps that's why it ended up this way.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The meta bug for improving Java crash report signatures is bug-1693693.
The bug about the order of the exception chain in
JavaExceptionis bug-1888997.The bug about using the innermost or deepest exception for signature generation for Java crashes rather than the outermost is bug-1698623.
I've added the latter two bugs to Milestone 7.