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

Fix crash in sentrycrashjson_addFloatingPointElement #4580

Open
philipphofmann opened this issue Nov 27, 2024 · 0 comments
Open

Fix crash in sentrycrashjson_addFloatingPointElement #4580

philipphofmann opened this issue Nov 27, 2024 · 0 comments

Comments

@philipphofmann
Copy link
Member

Description

The SDK sometimes crashes with SIGPIPE or SIGABRT in sentrycrashjson_addFloatingPointElement

Exception Type: Unknown (SIGPIPE)

Thread 0 Crashed:
0   libsystem_c.dylib               0x1c6ac5f1c         __vfprintf
1   libsystem_c.dylib               0x1c6ac5ba4         _vsnprintf
2   libsystem_c.dylib               0x1c6aca818         snprintf
3   Sentry.framework                0x101810a5c         sentrycrashjson_addFloatingPointElement (Sentry.framework:324)
4   Sentry.framework                0x101812f90         encodeObject (Sentry.framework:342)
5   Sentry.framework                0x1018133dc         [inlined] encodeObject (Sentry.framework:384)
6   Sentry.framework                0x1018133dc         encodeObject (Sentry.framework:384)
7   Sentry.framework                0x101812d80         +[SentryCrashJSONCodec encode:options:error:] (Sentry.framework:427)
8   Sentry.framework                0x101824870         -[SentryCrashScopeObserver toJSONEncodedCString:] (Sentry.framework:149)
9   Sentry.framework                0x10182465c         -[SentryCrashScopeObserver addSerializedBreadcrumb:] (Sentry.framework:90)
10  Sentry.framework                0x10185fdf0         -[SentryScope addBreadcrumb:] (Sentry.framework:138)
11  Sentry.framework                0x10183db08         -[SentryHub configureScope:] (Sentry.framework:555)
12  Sentry.framework                0x101864e88         +[SentrySDK configureScope:] (Sentry.framework:406)

We see this also in our internal SDK crash detection.

Originally reported here: #4579.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

1 participant