Skip to content
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

RUMM-1596 Fix issue with truncated stack traces not being displayed in Crash Reporting #641

Merged

Conversation

ncreated
Copy link
Member

What and why?

🐞 This PR fixes a bug with the crash reports containing a very long stack traces not being rendered properly by our frontend. This situation may correspond to crashes due to segmentation fault on infinite recursive call. In such case, we truncate the stack trace SDK-side by inserting ... mark. This is to ensure it doesn't exceed our ingestion limits.

How?

Problem was that our SCI BE was failing to parse the stack trace due to ... truncation mark. In result, RUM Error was displayed, but it had no associated stack:

Screenshot 2021-10-15 at 12 50 20

The fix was discussed with ET team and they will (ET-1602) insert this mark on the frontend-side when displaying the error. A counterpart work on our side is to remove the ... mark from the stack, which is done in this PR.

By removing truncation mark, the stack trace is rendered properly:
Screenshot 2021-10-15 at 12 54 35

As an enhancement, I added "Infinite recursive call" button to our crash debugging tool:

Screenshot 2021-10-15 at 12 13 20

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

@ncreated ncreated self-assigned this Oct 15, 2021
@ncreated ncreated requested a review from a team as a code owner October 15, 2021 10:56
@ncreated ncreated changed the title RUMM-1596 Fix issue with truncated crash reports not being displayed RUMM-1596 Fix issue with truncated stack traces not being displayed in Crash Reporting Oct 15, 2021
Copy link
Member

@maxep maxep left a comment

Choose a reason for hiding this comment

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

👌

@ncreated ncreated merged commit a88103e into master Oct 15, 2021
@ncreated ncreated deleted the ncreated/RUMM-1596-recursive-call-crash-symbolication branch October 15, 2021 14:22
@ncreated ncreated mentioned this pull request Nov 17, 2021
2 tasks
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.

3 participants