Skip to content

KSCrash enableSwapCxaThrow crashes app when a C++ exception is handled #2659

@generalpf

Description

@generalpf

Stack trace

N/A

Reproduction steps

It's hard to explain, we use a C++ library called Linphone, and sometimes it throws C++ exceptions which we handle. When the exception is caught by KSCrash, and enableSwapCxaThrow is enabled, the crash handler itself crashes.

Volume

100

Affected SDK versions

3.5.0

Latest working SDK version

3.1.0

Does the crash manifest in the latest SDK version?

Yes

Deployment Target

iOS 15+

Device Information

Any iOS device.

Other relevant information

I know this is the reason because we used to use Embrace's SDK, and when they updated to the version of KSCrash with the experimental enableSwapCxaThrow feature, it started causing problems, and they actually turned it off for everyone.

Please turn this off, or allow the person calling CrashReporting.enable() to supply an argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashSDK crashes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions