Skip to content

Commit 80e8683

Browse files
committed
docs: raw return addresses need their image list to be symbolicated
1 parent e39184a commit 80e8683

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎docs/error-handling.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ globalThis.addEventListener("error", (e) => {
200200
});
201201
```
202202
203-
`callStackSymbols` names frames inside `NativeScript.framework` by the nearest exported symbol, which is often the wrong function in release builds. Upload the runtime's dSYM to the crash reporter, or send `callStackReturnAddresses` for server-side symbolication; see [Native stack traces](native-stack-traces.md).
203+
`callStackSymbols` names frames inside `NativeScript.framework` by the nearest exported symbol, which is often the wrong function in release builds. For exact names, upload the runtime's dSYM to the crash reporter. `callStackReturnAddresses` on its own is not enough for server-side symbolication: each address also needs its image's load address, architecture and UUID. See [Native stack traces](native-stack-traces.md#crash-reporters).
204204
205205
Native side — for the `NSUncaughtExceptionHandler`/signal layer, read `exception.tns_javascriptStackTrace` (or the `userInfo` keys) to attach the JS stack to crashes that never pass through the JS event layer (escaped exceptions, `uncaughtErrorPolicy: "throw"`).
206206

‎docs/native-stack-traces.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,9 @@ locations above.
115115

116116
`NSException.callStackSymbols` names frames the same way as this log, so it has
117117
the same limitation. `NSException.callStackReturnAddresses` gives the raw
118-
addresses for server-side symbolication. See
118+
addresses, but they cannot be resolved on their own: the framework loads at a
119+
different address on every launch, so each address needs its image's load
120+
address, architecture and UUID, the same data as this log's `Binary images:`
121+
list. Reporter SDKs that capture native crashes collect that list themselves.
122+
If you send raw addresses yourself, send the image list with them. See
119123
[Error handling](error-handling.md#crash-reporter-integration).

0 commit comments

Comments
 (0)