Skip to content

feat: Make NDK stack traces more standard#1683

Merged
fuzzybinary merged 3 commits into
developfrom
jward/RUM-1896-ndk-crash-format
Nov 2, 2023
Merged

feat: Make NDK stack traces more standard#1683
fuzzybinary merged 3 commits into
developfrom
jward/RUM-1896-ndk-crash-format

Conversation

@fuzzybinary

Copy link
Copy Markdown
Member

What does this PR do?

This changes the stack frame format to:

#{frame_number}  pc {relative_address}  {module_name} ({symbol_name}+{symbol_offset})

This is a more standard format of stack traces seen in examples and Android tombstones.

Also remove a few extra object creations / memory allocations.

refs: RUM-1896

Motivation

We're looking to start work on NDK crash symbolication and wanted a format that matched with what is in other examples. While the previous format has all the information we needed for symbolication, it wasn't quite right about what was offset by what. This is a more correct format.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

This changes the stack frame format to:

```
#{frame_number}  pc {relative_address}  {module_name} ({symbol_name}+{symbol_offset})
```

This is a more standard format of stack traces seen in examples and Android tombstones.

Also remove a few extra object creations / memory allocations.

refs: RUM-1896
@fuzzybinary
fuzzybinary requested a review from a team as a code owner October 30, 2023 20:11
@codecov-commenter

codecov-commenter commented Oct 30, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.76%. Comparing base (d8f8c22) to head (3bed3cc).
Report is 1949 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1683      +/-   ##
===========================================
+ Coverage    83.73%   83.76%   +0.03%     
===========================================
  Files          462      462              
  Lines        15855    15855              
  Branches      2365     2365              
===========================================
+ Hits         13275    13280       +5     
- Misses        1939     1942       +3     
+ Partials       641      633       -8     

see 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

0xnm
0xnm previously approved these changes Oct 31, 2023
Comment thread features/dd-sdk-android-ndk/src/main/cpp/utils/backtrace-handler.cpp Outdated
xgouchet
xgouchet previously approved these changes Oct 31, 2023
@fuzzybinary
fuzzybinary dismissed stale reviews from xgouchet and 0xnm via 692dd34 October 31, 2023 12:40
xgouchet
xgouchet previously approved these changes Oct 31, 2023
mariusc83
mariusc83 previously approved these changes Oct 31, 2023
Comment thread features/dd-sdk-android-ndk/src/main/cpp/utils/backtrace-handler.cpp Outdated
@fuzzybinary
fuzzybinary dismissed stale reviews from mariusc83 and xgouchet via 3bed3cc October 31, 2023 19:07
@fuzzybinary
fuzzybinary merged commit 62377e5 into develop Nov 2, 2023
@fuzzybinary
fuzzybinary deleted the jward/RUM-1896-ndk-crash-format branch November 2, 2023 12:11
@xgouchet xgouchet added this to the 2.3.0 milestone Dec 13, 2023
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.

5 participants