EXC_BAD_ACCESS (SIGSEGV) crash

We're experiencing some crashes that we think that are related to Operation or DispatchQueue, I thought it was connected to NSZombie but now I'm not sure.


I'm facing with crash:


Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Subtype: KERN_INVALID_ADDRESS at 0x00000003b5251e20

VM Region Info: 0x3b5251e20 is not in any region. Bytes after previous region: 4649721377

REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL

MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV

--->

UNUSED SPACE AT END


Termination Signal: Segmentation fault: 11

Termination Reason: Namespace SIGNAL, Code 0xb

Terminating Process: exc handler [419]

Triggered by Thread: 15


Thread 15 name:

Thread 15 Crashed:

0 libobjc.A.dylib 0x000000018f397030 objc_retain + 16 (objc-object.h:459)

1 libswiftDispatch.dylib 0x00000001c418b608 $sSo17OS_dispatch_queueC8DispatchE5async5group3qos5flags7executeySo0a1_b1_F0CSg_AC0D3QoSVAC0D13Wo... + 808 (Queue.swift:0)

2 MyApp 0x000000010709d5f4 Loader.fExecutionSuccess(fData:) + 1588

3 MyApp 0x00000001070999bc closure #1 in closure #1 in Executor.execute(shouldDownloadFile:) + 124

4 MyApp 0x0000000107081360 partial apply for closure #1 in closure #1 in Database.resetDatabase(success:failure:) + 28

5 MyApp 0x0000000107089a20 thunk for @escaping @callee_guaranteed () -> () + 28

6 libdispatch.dylib 0x000000018f321610 _dispatch_call_block_and_release + 24 (init.c:1408)

7 libdispatch.dylib 0x000000018f322184 _dispatch_client_callout + 16 (object.m:495)

8 libdispatch.dylib 0x000000018f308238 _dispatch_root_queue_drain + 640 (inline_internal.h:2487)

9 libdispatch.dylib 0x000000018f3088b0 _dispatch_worker_thread2 + 116 (queue.c:6569)

10 libsystem_pthread.dylib 0x000000018f371f64 _pthread_wqthread + 212 (pthread.c:2336)

11 libsystem_pthread.dylib 0x000000018f374ae0 start_wqthread + 8


Maybe you can take a look and give me any direction to research?

Replies

Crashes in

objc_retain
are a very strong indication that you have a memory management issue. You should symbolicate your log to see what’s happening on frame 2, which might give you a clue as to what’s going on. If that doesn’t happen, I recommend the standard memory debugging tools.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi,

I'm also getting a EXC_BAD_ACCESS (SIGSEGV) crash but with PrimeVideo.

My machine is a 16 inch MacBook Pro, running macOS 14.4. No AntiVirus or Malware programs. Have recently wiped the SSD and reinstalled macOS on it. Tried watching videos in PrimeVIdeo via Safari but the audio cuts out and the stream freezes. Watching it in Google Chrome (on the same machine) has no issues other than efficiency and running hot. The PrimeVIdeo App will crash when trying to stream anything. Watching the same content via AppleTV, iPad, iPhone (all on the same internet connection) do not have this issue.

Some of the Crash Report is below, if you need more of it let me know (sorry it exceeds the maximum characters allowed, and Apple doesn't allow PasteBin on this forum).

Cheers

-------------------------------------

Process:               Prime Video [768]
Path:                  /Applications/Prime Video.app/Contents/MacOS/Prime Video
Identifier:            com.amazon.aiv.AIVApp
Version:               10.17 (10.1700.2)
App Item ID:           545519333
App External ID:       864287825
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-03-17 18:01:31.1698 +1100
OS Version:            macOS 14.4 (23E214)
Report Version:        12
Bridge OS Version:     8.4 (21P4222)
Anonymous UUID:        7C3EEECE-F751-1F5D-D20C-5CD8E9166717

Sleep/Wake UUID:       C40C4F7F-402B-4B18-B76E-5CA268F76872

Time Awake Since Boot: 6100 seconds
Time Since Wake:       261 seconds

System Integrity Protection: enabled

Crashed Thread:        18  com.apple.coremedia.sharedRootQueue.47  Dispatch queue: */ALW.01

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000007d0
Exception Codes:       0x0000000000000001, 0x00000000000007d0

VM Region Info: 0x7d0 is not in any region.  Bytes before following region: 4317542448
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      101588000-102ab8000    [ 21.2M] r-x/r-x SM=COW  /Applications/Prime Video.app/Contents/MacOS/Prime Video