Skip to content

Debug sentry-kotlin-multiplatform issue 341 and sentry-cocoa #440

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

buenaflor
Copy link
Contributor

📜 Description

Adds a detailed analysis document (issue-341-analysis.md) for issue #341, which describes the problem of incorrect stack traces being captured on iOS when using captureException.

💡 Motivation and Context

This document provides a deep dive into the root cause of why captureException on iOS captures the current thread's stack trace instead of the original NSException's stack trace. It analyzes both the Sentry Kotlin Multiplatform and Sentry Cocoa SDKs, identifies the specific points of failure, and proposes a clear solution to ensure proper stack trace capture for Kotlin/Native exceptions on iOS.

💚 How did you test it?

This PR introduces a documentation/analysis file. The analysis itself serves as the verification of the problem and the proposed solution, based on code examination and understanding of both SDKs. No new code tests were added as this is not a code change.

📝 Checklist

You have to check all boxes before merging:

  • I reviewed the submitted code.
  • I added tests to verify the changes. (N/A - documentation)
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled. (N/A - documentation)
  • I updated the docs if needed. (This PR is the documentation)
  • Review from the native team if needed. (Potentially, as it discusses Sentry Cocoa SDK behavior)
  • No breaking change or entry added to the changelog. (N/A - documentation)

🔮 Next steps

The next step is to implement the proposed fix within the Sentry Cocoa SDK to ensure NSException.callStackReturnAddresses are correctly utilized when capturing exceptions on iOS.


Open in Cursor Open in Web

Learn more about Cursor Agents

Copy link
Contributor

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Debug sentry-kotlin-multiplatform issue 341 and sentry-cocoa ([#440](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/440))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 8fa1083

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