OpenIntelWireless / IntelBluetoothFirmware

Intel Bluetooth Kernel Extensions for macOS
https://OpenIntelWireless.github.io/IntelBluetoothFirmware
GNU General Public License v3.0
2.47k stars 262 forks source link

Bluetooth randomness crashes,The probability of crashing during sleep awakening is relatively high #493

Closed gyc-12 closed 2 months ago

gyc-12 commented 3 months ago

Have you read the docs?

Yes

macOS Version

macos14.4.1

Kext Version

2.4.0

Wireless Adapter Model and USB Product ID

ax210

Description

Bluetooth may crash every time it wakes up from sleep. Unable to open Bluetooth due to crashing。 There are crash logs in the console as follows:

image iShot_2024-08-09_18 46 09 image

Info in System Report - Bluetooth

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               bluetoothd [39512]
Path:                  /usr/sbin/bluetoothd
Identifier:            bluetoothd
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               0

Date/Time:             2024-08-20 09:24:55.6040 +0800
OS Version:            macOS 14.4.1 (23E224)
Report Version:        12
Anonymous UUID:        18BFFEB1-01FB-7BA2-E9FB-A111F2731E6E

Sleep/Wake UUID:       BA7F8750-AFA4-4F5C-9A52-BB593FCBA0FC

Time Awake Since Boot: 64000 seconds
Time Since Wake:       29 seconds

System Integrity Protection: disabled

Notes:
[VMUSampler sampleAllThreadsOfTask:withSymbolicator] returned no stacks
thread_get_state(PAGEIN) returned 0x10000003: (ipc/send) invalid destination port
thread_get_state(EXCEPTION) returned 0x10000003: (ipc/send) invalid destination port
thread_get_state(FLAVOR) returned 0x10000003: (ipc/send) invalid destination port

Crashed Thread:        Unknown

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_MEMORY_ERROR at 0x000000010f3761df
Exception Codes:       0x000000000000000a, 0x000000010f3761df

Termination Reason:    Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process:   exc handler [39512]

VM Region Info: 0x10f3761df is in 0x10f0e1000-0x10f9c0000;  bytes after start: 2707935  bytes before end: 6594080
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  __TEXT                      10f0e1000-10f9c0000    [ 9084K] r-x/r-x SM=COW  /usr/sbin/bluetoothd
      __DATA_CONST                10f9c0000-10fa02000    [  264K] r--/rw- SM=COW  /usr/sbin/bluetoothd

Error Formulating Crash Report:
[VMUSampler sampleAllThreadsOfTask:withSymbolicator] returned no stacks
thread_get_state(PAGEIN) returned 0x10000003: (ipc/send) invalid destination port
thread_get_state(EXCEPTION) returned 0x10000003: (ipc/send) invalid destination port
thread_get_state(FLAVOR) returned 0x10000003: (ipc/send) invalid destination port

Kernel Triage:
APFS - (arg = 0x300001) Encountered a compressed data hash mismatch
VM - (arg = 0x0) Page has restart bit set
APFS - (arg = 0x300001) Encountered a compressed data hash mismatch
APFS - (arg = 0x300001) Pagein of compressed inode failed
VM - (arg = 0x0) Filesystem pagein returned an error in vnode_pagein

Backtrace not available

No thread state (register information) available

Binary Images:
       0x11028e000 -        0x110317fff libAWDProtobufBluetooth.dylib (*) <7a28731e-af11-3010-bd5a-b61000bef262> /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libAWDProtobufBluetooth.dylib
       0x10f0e1000 -        0x10f9bffff bluetoothd (*) <3af02771-cd02-37b1-b8e1-423e6dba4ff4> /usr/sbin/bluetoothd

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=676.9M resident=0K(0%) swapped_out_or_unallocated=676.9M(100%)
Writable regions: Total=41.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=41.7M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                            29.1M       13 
MALLOC guard page                   16K        4 
STACK GUARD                       56.0M        1 
Stack                             8192K        1 
__CTF                               824        1 
__DATA                            26.8M      513 
__DATA_CONST                      31.9M      336 
__DATA_DIRTY                      1367K      190 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       180.6M        4 
__OBJC_RO                         71.7M        1 
__OBJC_RW                         2196K        2 
__TEXT                           496.3M      529 
dyld private memory               4360K        4 
mapped file                         60K        1 
shared memory                       28K        4 
===========                     =======  ======= 
TOTAL                            908.5M     1608 

-----------
Full Report
-----------

{"app_name":"bluetoothd","timestamp":"2024-08-20 09:24:55.00 +0800","app_version":"","slice_uuid":"3af02771-cd02-37b1-b8e1-423e6dba4ff4","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.4.1 (23E224)","roots_installed":0,"incident_id":"A72C1DA9-9FE6-48A0-9304-9383FEC29176","name":"bluetoothd"}
{
  "uptime" : 64000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 0,
  "deployVersion" : 210,
  "modelCode" : "MacPro7,1",
  "coalitionID" : 127,
  "osVersion" : {
    "train" : "macOS 14.4.1",
    "build" : "23E224",
    "releaseType" : "User"
  },
  "captureTime" : "2024-08-20 09:24:55.6040 +0800",
  "codeSigningMonitor" : 0,
  "incident" : "A72C1DA9-9FE6-48A0-9304-9383FEC29176",
  "pid" : 39512,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-08-20 09:24:55.5699 +0800",
  "procStartAbsTime" : 64486763055723,
  "procExitAbsTime" : 64486796931942,
  "procName" : "bluetoothd",
  "procPath" : "\/usr\/sbin\/bluetoothd",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.apple.bluetoothd",
  "crashReporterKey" : "18BFFEB1-01FB-7BA2-E9FB-A111F2731E6E",
  "consecutiveCrashCount" : 4,
  "throttleTimeout" : 10,
  "codeSigningID" : "com.apple.bluetoothd",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570509825,
  "codeSigningValidationCategory" : 1,
  "codeSigningTrustLevel" : 4294967295,
  "wakeTime" : 29,
  "sleepWakeUUID" : "BA7F8750-AFA4-4F5C-9A52-BB593FCBA0FC",
  "sip" : "disabled",
  "vmRegionInfo" : "0x10f3761df is in 0x10f0e1000-0x10f9c0000;  bytes after start: 2707935  bytes before end: 6594080\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  __TEXT                      10f0e1000-10f9c0000    [ 9084K] r-x\/r-x SM=COW  \/usr\/sbin\/bluetoothd\n      __DATA_CONST                10f9c0000-10fa02000    [  264K] r--\/rw- SM=COW  \/usr\/sbin\/bluetoothd",
  "exception" : {"codes":"0x000000000000000a, 0x000000010f3761df","rawCodes":[10,4550255071],"type":"EXC_BAD_ACCESS","signal":"SIGBUS","subtype":"KERN_MEMORY_ERROR at 0x000000010f3761df"},
  "termination" : {"flags":0,"code":10,"namespace":"SIGNAL","indicator":"Bus error: 10","byProc":"exc handler","byPid":39512},
  "ktriageinfo" : "APFS - (arg = 0x300001) Encountered a compressed data hash mismatch\nVM - (arg = 0x0) Page has restart bit set\nAPFS - (arg = 0x300001) Encountered a compressed data hash mismatch\nAPFS - (arg = 0x300001) Pagein of compressed inode failed\nVM - (arg = 0x0) Filesystem pagein returned an error in vnode_pagein\n",
  "vmregioninfo" : "0x10f3761df is in 0x10f0e1000-0x10f9c0000;  bytes after start: 2707935  bytes before end: 6594080\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  __TEXT                      10f0e1000-10f9c0000    [ 9084K] r-x\/r-x SM=COW  \/usr\/sbin\/bluetoothd\n      __DATA_CONST                10f9c0000-10fa02000    [  264K] r--\/rw- SM=COW  \/usr\/sbin\/bluetoothd",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4566081536,
    "size" : 565248,
    "uuid" : "7a28731e-af11-3010-bd5a-b61000bef262",
    "path" : "\/System\/Library\/PrivateFrameworks\/WirelessDiagnostics.framework\/Versions\/A\/Libraries\/libAWDProtobufBluetooth.dylib",
    "name" : "libAWDProtobufBluetooth.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4547547136,
    "size" : 9302016,
    "uuid" : "3af02771-cd02-37b1-b8e1-423e6dba4ff4",
    "path" : "\/usr\/sbin\/bluetoothd",
    "name" : "bluetoothd"
  }
],
  "sharedCache" : {
  "base" : 140703585091584,
  "size" : 25769803776,
  "uuid" : "59b61d18-2d12-3a06-a536-f0b08e953ca2"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=676.9M resident=0K(0%) swapped_out_or_unallocated=676.9M(100%)\nWritable regions: Total=41.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=41.7M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                            29.1M       13 \nMALLOC guard page                   16K        4 \nSTACK GUARD                       56.0M        1 \nStack                             8192K        1 \n__CTF                               824        1 \n__DATA                            26.8M      513 \n__DATA_CONST                      31.9M      336 \n__DATA_DIRTY                      1367K      190 \n__FONT_DATA                        2352        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       180.6M        4 \n__OBJC_RO                         71.7M        1 \n__OBJC_RW                         2196K        2 \n__TEXT                           496.3M      529 \ndyld private memory               4360K        4 \nmapped file                         60K        1 \nshared memory                       28K        4 \n===========                     =======  ======= \nTOTAL                            908.5M     1608 \n",
  "legacyInfo" : {
  "threadHighlighted" : 0
},
  "reportNotes" : [
  "[VMUSampler sampleAllThreadsOfTask:withSymbolicator] returned no stacks",
  "thread_get_state(PAGEIN) returned 0x10000003: (ipc\/send) invalid destination port",
  "thread_get_state(EXCEPTION) returned 0x10000003: (ipc\/send) invalid destination port",
  "thread_get_state(FLAVOR) returned 0x10000003: (ipc\/send) invalid destination port"
]
}

Relevant log output

暂时没有,后续补充

Kernel Panic Logs

No response