panic(cpu 2 caller 0xffffff8012bc5396): Kernel trap at 0xffffff8013056f73, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000018, CR3: 0x000000045cccc01c, CR4: 0x00000000003626e0
RAX: 0x0000000000000000, RBX: 0xffffff86abca9200, RCX: 0x0000000000000000, RDX: 0x0000000003000000
RSP: 0xffffffa0e8603e30, RBP: 0xffffffa0e8603e40, RSI: 0xffffff9371d30600, RDI: 0x0000000000000000
R8: 0xffffff8013a78818, R9: 0xffffffa8ba0c7700, R10: 0xffffff9373751c00, R11: 0x0000000f93737510
R12: 0xffffff86b8ea8e40, R13: 0xffffff86abca9200, R14: 0xffffff9371d30600, R15: 0xffffff86b13b2120
RFL: 0x0000000000010207, RIP: 0xffffff8013056f73, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000000000018, Error code: 0x0000000000000000, Fault CPU: 0x2, PL: 0, VF: 0
Backtrace (CPU 2), Frame : Return Address
0xffffffa0e8603850 : 0xffffff8012a8d25d
0xffffffa0e86038a0 : 0xffffff8012bd49d3
0xffffffa0e86038e0 : 0xffffff8012bc4fca
0xffffffa0e8603930 : 0xffffff8012a31a2f
0xffffffa0e8603950 : 0xffffff8012a8ca7d
0xffffffa0e8603a70 : 0xffffff8012a8cd73
0xffffffa0e8603ae0 : 0xffffff801329d8fa
0xffffffa0e8603b50 : 0xffffff8012bc5396
0xffffffa0e8603cd0 : 0xffffff8012bc507d
0xffffffa0e8603d20 : 0xffffff8012a31a2f
0xffffffa0e8603d40 : 0xffffff8013056f73
0xffffffa0e8603e40 : 0xffffff8012ffe108
0xffffffa0e8603eb0 : 0xffffff8012fede16
0xffffffa0e8603f40 : 0xffffff801313fd2e
0xffffffa0e8603fa0 : 0xffffff8012a321f6
Process name corresponding to current thread: teensy_serialmon
Mac OS version:
20G224
Kernel version:
Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64
Kernel UUID: ABC69550-60C2-34FE-B307-C24A8C39309C
KernelCache slide: 0x0000000012800000
KernelCache base: 0xffffff8012a00000
Kernel slide: 0x0000000012810000
Kernel text base: 0xffffff8012a10000
__HIB text base: 0xffffff8012900000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0
System uptime in nanoseconds: 453418793398
Last Sleep: absolute base_tsc base_nano
Uptime : 0x0000006991ddbcc9
Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000
Wake : 0x0000000000000000 0x0000000d67ab307a 0x0000000000000000
last started kext at 35558044589: >!A!BMultitouch 99 (addr 0xffffff8013e24000, size 24576)
loaded kexts:
...
panic(cpu 3 caller 0xffffff80033c5396): Kernel trap at 0xffffff8003856f73, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000018, CR3: 0x00000002672bf15b, CR4: 0x00000000003626e0
RAX: 0x0000000000000000, RBX: 0xffffff86b83da400, RCX: 0x0000000000000000, RDX: 0x0000000003000000
RSP: 0xffffffa0b5d43e30, RBP: 0xffffffa0b5d43e40, RSI: 0xffffff935b1ca200, RDI: 0x0000000000000000
R8: 0xffffff8004278818, R9: 0xffffffc2c3e88960, R10: 0xffffff9365677c00, R11: 0x0000000f93656770
R12: 0xffffff86a8241000, R13: 0xffffff86b83da400, R14: 0xffffff935b1ca200, R15: 0xffffff86b58fd5e0
RFL: 0x0000000000010207, RIP: 0xffffff8003856f73, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000000000018, Error code: 0x0000000000000000, Fault CPU: 0x3, PL: 0, VF: 0
Backtrace (CPU 3), Frame : Return Address
0xffffffa0b5d43850 : 0xffffff800328d25d
0xffffffa0b5d438a0 : 0xffffff80033d49d3
0xffffffa0b5d438e0 : 0xffffff80033c4fca
0xffffffa0b5d43930 : 0xffffff8003231a2f
0xffffffa0b5d43950 : 0xffffff800328ca7d
0xffffffa0b5d43a70 : 0xffffff800328cd73
0xffffffa0b5d43ae0 : 0xffffff8003a9d8fa
0xffffffa0b5d43b50 : 0xffffff80033c5396
0xffffffa0b5d43cd0 : 0xffffff80033c507d
0xffffffa0b5d43d20 : 0xffffff8003231a2f
0xffffffa0b5d43d40 : 0xffffff8003856f73
0xffffffa0b5d43e40 : 0xffffff80037fe108
0xffffffa0b5d43eb0 : 0xffffff80037ede16
0xffffffa0b5d43f40 : 0xffffff800393fd2e
0xffffffa0b5d43fa0 : 0xffffff80032321f6
Process name corresponding to current thread: teensy_serialmon
Mac OS version:
20G224
Kernel version:
Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64
Kernel UUID: ABC69550-60C2-34FE-B307-C24A8C39309C
KernelCache slide: 0x0000000003000000
KernelCache base: 0xffffff8003200000
Kernel slide: 0x0000000003010000
Kernel text base: 0xffffff8003210000
__HIB text base: 0xffffff8003100000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0
System uptime in nanoseconds: 15196246045601
Last Sleep: absolute base_tsc base_nano
Uptime : 0x00000dd226d8f800
Sleep : 0x00000cca1696be6e 0x00002d5be9ba19bc 0x00000cbe323c267e
Wake : 0x00000cca2156db6a 0x000033fc3c5a3dce 0x00000cca1f8e743e
last started kext at 55302693347: |SCSITaskUserClient 436.140.1 (addr 0xffffff8005e0a000, size 20480)
loaded kexts:
...
/Applications/Teensyduino.app/Contents/Java/hardware/tools/teensy_serialmon usb:14120000
#include <Arduino.h>
void setup() {}
void loop() {}
Good news, I am able to reproduce the problem on my Macbook Air.
wukai:
I see that there are a few crashes
...
I get some information(API MISUSE: Over-release of an object) from crash_info , and I found that the release com.apple.CFFileDescriptor queue by analyzing the App coredump.
...
In my app, only Cronet uses CFFileDescriptor. So I suspect it's Cronet problem.
yanshua:
I got the same crash in my app, and i can confirm, this crash is triggered by CFFileDescriptor.
Looking forward to the answer.
wukai:
I fix this crash, but very trick~
Hao Chen:
How did you fix the crash? These crashes are still annoying us.
Chidera Olibie
Hi, could you please file a bug via https://bugs.chromium.org/p/chromium/issues/list with the word "Cronet" in the summary line. Add the stack trace and other relevant information to enable us to debug this properly.
yanshua:
I fix this crash ,but very trick too. Get the dispatch_queue which over released and forced change its ref count to INT_MAX.
No need to worry about memory leak,because it could be destroyed when app exists.
Please let me know how it works on your Mac?