Skip to content

Crash: SIGSEGV in NRMAHarvestController shouldCollectTraces #566

@BaoLeTimo

Description

@BaoLeTimo

Description

We are experiencing a recurring production crash that occurs inside the New Relic iOS agent.

The crash happens in NRMAHarvestController at shouldCollectTraces and results in a SIGSEGV (segmentation fault).
Based on the stack trace, the crash originates from New Relic internal code and not from our application logic.

This issue impacts production users and occurs intermittently during the New Relic harvest / trace collection cycle.

Steps to Reproduce

At this time, the crash is not consistently reproducible locally.

Observed behavior:

  1. App runs normally in production
  2. New Relic performs background harvest / trace collection
  3. App crashes with SIGSEGV inside NRMAHarvestController

The crash has been observed multiple times in production and is grouped under the same crash fingerprint.

Expected Behavior

New Relic iOS agent should safely handle harvest / trace collection without causing a crash, even in edge cases such as:

  • app background / foreground transitions
  • app lifecycle changes
  • memory pressure

Relevant Logs / Console output

Crash excerpt (symbolicated):

Exception Type:  SIGSEGV

Thread 0 Crashed:
0   NewRelic                      NRMAHarvestController.m:226
    -[NRMAHarvestController shouldCollectTraces]
1   NewRelic                      NRMAHarvestController
2   CoreFoundation                __CFRunLoopRun
3   CoreFoundation                CFRunLoopRunSpecific
4   UIKitCore                     UIApplicationMain

crashreport-12-23-2025_0731+0700.crash.zip

Your Environment

  • Platform: iOS
  • Devices observed: iPhone 12 Pro Max (possibly others)
  • New Relic iOS agent version: 7.5.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions