Skip to content

sentry_deepCopyValue crash #7861

@sindresorhus

Description

@sindresorhus

Platform

macOS

Environment

Production

Installed

Swift Package Manager

Other Error Monitoring Solution

No

Other Error Monitoring Solution Name

No response

Version

9.11.0

Xcode Version

26.4.1

Did it work on previous versions?

No response

Steps to Reproduce

It's from anonymous user report, so cannot reproduce.

Expected Result

Sentry should never crash my app.

Actual Result

It often does.


Error:

EXC_BAD_ACCESS
methodSignatureForSelector: > KERN_MEMORY_ERROR at 0x1a5aad010.

Stack trace:

EXC_BAD_ACCESS: 🤯 > methodSignatureForSelector: >
KERN_MEMORY_ERROR at 0x1a5aad010.
  libobjc.A           0x187152bbc  getMethodNoSuper_nolock
  libobjc.A           0x18715600c  lookUpImpOrForward
  libobjc.A           0x18715b718  class_getMethodImplementation
  libswiftCore        0x19ac52014  swift::tryDynamicCastNSErrorObjectToValue
  libswiftCore        0x19ac97c80  _bridgeNonVerbatimFromObjectiveCConditional<T>
  libswiftCore        0x19ac57ae0  _conditionallyBridgeFromObjectiveC<T>
  libswiftCore        0x19ac57810  _SwiftDeferredNSDictionary.object
  libswiftCore        0x19af40980  _SwiftDeferredNSDictionary.object
  Supercharge         0x100f9dde8  sentry_deepCopyValue
  Supercharge         0x100f9dca8  -[SentryBreadcrumb setData:]
  Supercharge         0x101038d24  SentryBreadcrumb.data.setter
  Supercharge         0x101038b90  SentryBreadcrumbTracker.connectivityChanged
  Supercharge         0x101038c2c  SentryBreadcrumbTracker.connectivityChanged
  Supercharge         0x100fd125c  SentryReachability.connectivityCallback
  Supercharge         0x100fd0dbc  SentryReachability.pathUpdateHandler
  Supercharge         0x100fd4ce0  closure in SentryReachability.add
  Network             0x18faab128  objectdestroy.122Tm
  Network             0x18f99936c  __swift_memcpy44_8
  libdispatch         0x1873f4a24  _dispatch_call_block_and_release
  libdispatch         0x18740e4ac  _dispatch_client_callout
  libdispatch         0x1873fd02c  _dispatch_lane_serial_drain
  libdispatch         0x1873fdb28  _dispatch_lane_invoke
  libdispatch         0x187407e30  _dispatch_root_queue_drain_deferred_wlh
  libdispatch         0x187407730  _dispatch_workloop_worker_thread
  libsystem_pthread   0x1875abebc  _pthread_wqthread

  libobjc.A           0x187152bbc  getMethodNoSuper_nolock
  libobjc.A           0x18715600c  lookUpImpOrForward
  libobjc.A           0x18715b718  class_getMethodImplementation
  libswiftCore        0x19ac52014  swift::tryDynamicCastNSErrorObjectToValue
  libswiftCore        0x19ac97c80  _bridgeNonVerbatimFromObjectiveCConditional<T>
  libswiftCore        0x19ac57ae0  _conditionallyBridgeFromObjectiveC<T>
  libswiftCore        0x19ac57810  _SwiftDeferredNSDictionary.object
  libswiftCore        0x19af40980  _SwiftDeferredNSDictionary.object
  Supercharge         0x100f9dde8  sentry_deepCopyValue
  Supercharge         0x100f9dca8  -[SentryBreadcrumb setData:]
  Supercharge         0x101038d24  SentryBreadcrumb.data.setter
  Supercharge         0x101038b90  SentryBreadcrumbTracker.connectivityChanged
  Supercharge         0x101038c2c  SentryBreadcrumbTracker.connectivityChanged
  Supercharge         0x100fd125c  SentryReachability.connectivityCallback
  Supercharge         0x100fd0dbc  SentryReachability.pathUpdateHandler
  Supercharge         0x100fd4ce0  closure in SentryReachability.add
  Network             0x18faab128  objectdestroy.122Tm
  Network             0x18f99936c  __swift_memcpy44_8
  libdispatch         0x1873f4a24  _dispatch_call_block_and_release
  libdispatch         0x18740e4ac  _dispatch_client_callout
  libdispatch         0x1873fd02c  _dispatch_lane_serial_drain
  libdispatch         0x1873fdb28  _dispatch_lane_invoke
  libdispatch         0x187407e30  _dispatch_root_queue_drain_deferred_wlh
  libdispatch         0x187407730  _dispatch_workloop_worker_thread
  libsystem_pthread   0x1875abebc  _pthread_wqthread

https://sindresorhus.sentry.io/share/issue/27fa956a8da24171a46536f11685329f/

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions