Skip to content

sentry_options_set_handler_strategy for native backend #1903

Description

@Thomas-Vos

My app is a Kotlin (JVM) app, which also loads a Kotlin/Native .so library for easy native interop. I use sentry-java, however, as that does not pick up native crashes I also need sentry-native in the Kotlin/Native module.

It seems that on Linux, the JVM sends some (non fatal) signal events, which it normally picks up and handles. But with sentry-native installed, the sentry-native signal handling picks it up instead, which gets reported and now crashes the app. I figured out for the inproc backend I can use this to fix the issue:

sentry_options_set_handler_strategy(options, SENTRY_HANDLER_STRATEGY_CHAIN_AT_START)

I would like to use the native backend, so could this feature please be supported for native, too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions