Skip to content

sentry_set_user() crashes when called after sentry_init() #96

@matok

Description

@matok

Important details

  • Saas (sentry.io)
  • mac (10.15)
  • built from release 0.1.2
  • sentry with crashpad backend

Description

Invoking sentry_set_user() before sentry_init() works fine, all following events are tagged with provided user details, but when it's called after sentry_init, it crashes on BAD_ACCESS because of NULL FILE* pointer writer->context in mpack_file_writer_flush.

I don't know whether this is an expected behaviour, but it would be nice if we could change user details after initialization.

sentry_crash_vars
sentry_crash_stack
sentry_crash_code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions