-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
logcat.log is not attached to unhandled event (SIGSEGV Segfault) #3461
Comments
This is one of many of these cases logged to Sentry Cloud. I've redacted it, but left the important bits. {
"exception": {
"values": [
{
"mechanism": {
"handled": false,
"meta": {
"signal": {
"name": "SIGSEGV",
"number": 11
}
},
"synthetic": true,
"type": "signalhandler"
},
"raw_stacktrace": {
"frames": [
{
"data": {
"orig_in_app": -1
},
"in_app": false,
"instruction_addr": "0x7270b58418"
}
],
"registers": {
"fp": "0x7213c09750",
"lr": "0x7324b4c84c",
"pc": "0x7270b58418",
"sp": "0x7213c09750",
"x0": "0x7242390a90",
"x1": "0x72423908b0",
"x10": "0x1",
"x11": "0x1",
"x12": "0xd61f0200",
"x13": "0xb",
"x14": "0xb4000074ca2cbf88",
"x15": "0xb4000074cc6bb5d8",
"x16": "0x7270b58418",
"x17": "0x0",
"x18": "0x721351c000",
"x19": "0x0",
"x2": "0x12",
"x20": "0x72bc7f6bb0",
"x21": "0x0",
"x22": "0x0",
"x23": "0x72bc437d78",
"x24": "0x7242390a90",
"x25": "0x72bc491108",
"x26": "0x72bc437550",
"x27": "0x7213c0a350",
"x28": "0x7213c09c50",
"x3": "0x10",
"x4": "0x0",
"x5": "0xb40000735a5785e0",
"x6": "0xb4000074ca3ffc50",
"x7": "0x110000",
"x8": "0x1",
"x9": "0x0"
}
},
"stacktrace": {
"frames": [
{
"data": {
"orig_in_app": -1,
"symbolicator_status": "unknown_image"
},
"in_app": false,
"instruction_addr": "0x7270b58418"
}
],
"instruction_addr_adjustment": "none",
"registers": {
"fp": "0x7213c09750",
"lr": "0x7324b4c84c",
"pc": "0x7270b58418",
"sp": "0x7213c09750",
"x0": "0x7242390a90",
"x1": "0x72423908b0",
"x10": "0x1",
"x11": "0x1",
"x12": "0xd61f0200",
"x13": "0xb",
"x14": "0xb4000074ca2cbf88",
"x15": "0xb4000074cc6bb5d8",
"x16": "0x7270b58418",
"x17": "0x0",
"x18": "0x721351c000",
"x19": "0x0",
"x2": "0x12",
"x20": "0x72bc7f6bb0",
"x21": "0x0",
"x22": "0x0",
"x23": "0x72bc437d78",
"x24": "0x7242390a90",
"x25": "0x72bc491108",
"x26": "0x72bc437550",
"x27": "0x7213c0a350",
"x28": "0x7213c09c50",
"x3": "0x10",
"x4": "0x0",
"x5": "0xb40000735a5785e0",
"x6": "0xb4000074ca3ffc50",
"x7": "0x110000",
"x8": "0x1",
"x9": "0x0"
}
},
"type": "SIGSEGV",
"value": "Segfault"
}
]
},
"level": "fatal",
"location": null,
"logger": "",
"message": "",
"metadata": {
"display_title_with_tree_label": true,
"in_app_frame_mix": "system-only",
"value": "Segfault"
},
"platform": "native",
"sdk": {
"integrations": [
"inproc"
],
"name": "sentry.native.dotnet",
"packages": [
{
"name": "github:getsentry/sentry-native",
"version": "0.7.0"
}
],
"version": "0.7.0"
},
"tags": [
[
"handled",
"no"
],
[
"installerStore",
"com.android.vending"
],
[
"isSideLoaded",
"false"
],
[
"level",
"fatal"
],
[
"mechanism",
"signalhandler"
],
[
"os",
"Android 12"
],
[
"os.name",
"Android"
],
[
"os.rooted",
"no"
]
],
"title": "<unknown>",
"type": "error",
"version": "7"
} |
It's important to note that some unhandled events do get |
Interesting! thanks @espenrl for reaching out! So the |
@bitsandfoxes It may simply be the fact that when Mono enters https://github.com/dotnet/runtime/blob/main/src/mono/mono/mini/mini-exceptions.c#L2921 On a side note: stacktraces in those native crashes aren't easily symbolicated. Only Mono has sufficient information how to unwind it. Meaning it is best to capture the crash report printed by Mono to |
Thanks for the additional context! |
Very interesting read. That would mean that those issues that gets logged to Sentry aren't necessarily native crashes at all. Good to know. |
Indeed - and I think the team that maintains sentry-native will be looking into a fix for this (so that only the managed warning is raised in these cases). |
Should be addressed by getsentry/sentry-native#1026 once this is released (and we bump to whatever version it's released in). |
Looks like for us to be able to move forward with: We need to have that And with that make a @bricefriha could you please give this a shot once you're back from the conference? |
sure thing! |
@espenrl sorry I realise it's been a while, but prerelease version 4.12.1-segv1 (which you can get from nuget.org) should fix this. Is there any chance you could try this out to ensure it resolves the problem for you, before we GA these changes across the various SDKs involved? |
I'll look into it one of the next days. Our app has been locked at |
I've tested it by forcing a native crash using
|
@jamescrosswell See my comment above, and please tell me if there is something specific you want me to test for. |
@bricefriha I've tested CauseCrash with both CrashType |
I'm happy to help :) And most of all I'm impressed how seriously you guys are taking these issues around logcat attachments and double logging native crashes. It makes me feel even more safe and sure about using Sentry. I also like the technical aspect of the solution how it is needed to replace the program exception handler at the native side of things. Interesting to follow :) |
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
8.0.6
OS
Android
SDK Version
4.7.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
I don't know how to provoke
SIGSEGV Segfault
.Expected Result
It is expected that the error event has an attachment
logcat.log
.Actual Result
There are no attachments to the event.
The text was updated successfully, but these errors were encountered: