Repository navigation
Closed as not planned
Description
Description
Severe memory leak causes long standing opencode process to trigger a kernel panic.
Plugins
n/a
OpenCode version
1.17.5
Steps to reproduce
- Open an opencode session
- Leave it running for a day-ish in the background
- MacOS will eventually panic without warning, triggering a restart
Screenshot and/or share link
panic(cpu 13 caller 0xfffffe0048272f8c): zalloc[3]: zone map exhausted while allocating from zone [data.kalloc.1024], likely due to memory leak in zone [data.kalloc.1024] (20G, 21251488 elements allocated) @zalloc.c:4575
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 25E253
Kernel version: Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:25 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T6041
Fileset Kernelcache UUID: 2B46920AEB5B25F2E323839DB4895464
Kernel UUID: 33687DBB-5A09-3B64-8A89-D02A7FD41C53
Boot session UUID: 9170C483-A922-4ED1-9228-7F56C11AA61D
iBoot version: mBoot-18000.101.7
iBoot Stage 2 version: mBoot-18000.120.36
secure boot?: YES
roots installed: 0
Paniclog version: 15
Debug Header address: 0xfffffe0023b15000
Debug Header entry count: 3
TXM load address: 0xfffffe0033a70000
TXM UUID: 67D71E4E-0D5D-3D18-BBAE-538038B6ABFA
Debug Header kernelcache load address: 0xfffffe0043a70000
Debug Header kernelcache UUID: 2B46920A-EB5B-25F2-E323-839DB4895464
SPTM load address: 0xfffffe0023a70000
SPTM UUID: 93BA0831-4530-3C74-A84C-585195583BDB
KernelCache slide: 0x000000003ca6c000
KernelCache base: 0xfffffe0043a70000
Kernel slide: 0x000000003ca74000
Kernel text base: 0xfffffe0043a78000
Kernel text exec slide: 0x0000000041198000
Kernel text exec base: 0xfffffe004819c000
mach_absolute_time: 0x956b0106113
Epoch Time: sec usec
Boot : 0x6a268108 0x000bd20e
Sleep : 0x6a2ff1ee 0x0001212c
Wake : 0x6a2ff573 0x0009b23d
Calendar: 0x6a303cb8 0x000e2d94
Zone info:
Zone map: 0xfffffe127e000000 - 0xfffffe387e000000
. VM : 0xfffffe127e000000 - 0xfffffe184a000000
. RO : 0xfffffe184a000000 - 0xfffffe1ae4000000
. GEN0 : 0xfffffe1ae4000000 - 0xfffffe20b0000000
. GEN1 : 0xfffffe20b0000000 - 0xfffffe267c000000
. GEN2 : 0xfffffe267c000000 - 0xfffffe2c48000000
. GEN3 : 0xfffffe2c48000000 - 0xfffffe3214000000
. DATA : 0xfffffe3214000000 - 0xfffffe387e000000
Metadata: 0xfffffe79fa010000 - 0xfffffe7a03810000
Bitmaps : 0xfffffe7a03810000 - 0xfffffe7a0c4f4000
Extra : 0 - 0
Largest zones:
Zone Name Cur Size Free Size
data. kalloc.1024 20G 0B
APFS_4K_OBJS 162M 300K
APFS_INODES 106M 448K
compressor_segment 26M 22K
data. kalloc.32768 8M 64K
CORE 0 [EACC0] recently retired instr at 0x0000000000000000
CORE 1 [EACC0] recently retired instr at 0x0000000000000000
CORE 2 [EACC0] recently retired instr at 0x0000000000000000
CORE 3 [EACC0] recently retired instr at 0x0000000000000000
CORE 4 [PACC1] recently retired instr at 0x0000000000000000
CORE 5 [PACC1] recently retired instr at 0x0000000000000000
CORE 6 [PACC1] recently retired instr at 0x0000000000000000
CORE 7 [PACC1] recently retired instr at 0x0000000000000000
CORE 8 [PACC1] recently retired instr at 0x0000000000000000
CORE 9 [PACC2] recently retired instr at 0x0000000000000000
CORE 10 [PACC2] recently retired instr at 0x0000000000000000
CORE 11 [PACC2] recently retired instr at 0x0000000000000000
CORE 12 [PACC2] recently retired instr at 0x0000000000000000
CORE 13 [PACC2] recently retired instr at 0x0000000000000000
TPIDRx_ELy = {1: 0xfffffe1fa75091e8 0: 0x000000000000200d 0ro: 0x0000000171ebf0e0 }
CORE 0: PC=0xfffffe0048add09c, LR=0xfffffe0048add094, FP=0xfffffe397f5379e0
CORE 1: PC=0xfffffe0047c6ca44, LR=0xfffffe0047c6c5e0, FP=0xfffffe39817f7670
CORE 2: PC=0x0000000125afb7cc, LR=0x0000000125b1dbe4, FP=0x00000001748f9a40
CORE 3: PC=0x000000019f606c38, LR=0x000000019f607634, FP=0x000000016bdc51f0
CORE 4: PC=0xfffffe004836b700, LR=0xfffffe0048375fa0, FP=0xfffffe397eee7e40
CORE 5: PC=0xfffffe004836b700, LR=0xfffffe0048375fa0, FP=0xfffffe397f287e40
CORE 6: PC=0xfffffe0048375fac, LR=0xfffffe0048375fa8, FP=0xfffffe3980767e40
CORE 7: PC=0xfffffe0048375fac, LR=0xfffffe0048375fa8, FP=0xfffffe397f9d7e40
CORE 8: PC=0xfffffe0048375fac, LR=0xfffffe0048375fa8, FP=0xfffffe397f137e40
CORE 9: PC=0xfffffe004836b700, LR=0xfffffe0048375fa0, FP=0xfffffe397f107e40
CORE 10: PC=0xfffffe004819d418, LR=0xfffffe0047c6cbf4, FP=0xfffffe39814f7530
CORE 11: PC=0xfffffe0048add09c, LR=0xfffffe0048add094, FP=0xfffffe397edb7dc0
CORE 12: PC=0xfffffe004836b700, LR=0xfffffe0048375fa0, FP=0xfffffe3980047e40
CORE 13 is the one that panicked. Check the full backtrace for details.
Compressor Info: 6% of compressed pages limit (OK) and 12% of segments limit (OK) with 0 swapfiles and OK swap space
Panicked task 0xfffffe2c51432418: 73341 pages, 28 threads: pid 67676: opencode.exe
Panicked thread: 0xfffffe1fa75091e8, backtrace: 0xfffffe39814564f0, tid: 42072656
lr: 0xfffffe00481f1db8 fp: 0xfffffe3981456590
lr: 0xfffffe0048372228 fp: 0xfffffe3981456600
lr: 0xfffffe00483701bc fp: 0xfffffe39814566c0
lr: 0xfffffe00481a1e2c fp: 0xfffffe39814566d0
lr: 0xfffffe00481f20c8 fp: 0xfffffe3981456bf0
lr: 0xfffffe0048ae5ce0 fp: 0xfffffe3981456c10
lr: 0xfffffe0048272f8c fp: 0xfffffe3981456de0
lr: 0xfffffe0048276728 fp: 0xfffffe3981456e70
lr: 0xfffffe0048202ef4 fp: 0xfffffe3981456ea0
lr: 0xfffffe0048977f84 fp: 0xfffffe3981456ec0
lr: 0xfffffe0047ecc41c fp: 0xfffffe3981457160
lr: 0xfffffe0047ecb92c fp: 0xfffffe3981457220
lr: 0xfffffe0047e6d8d8 fp: 0xfffffe39814573f0
lr: 0xfffffe0047ea6ad0 fp: 0xfffffe3981457470
lr: 0xfffffe0048409204 fp: 0xfffffe3981457770
lr: 0xfffffe004842d200 fp: 0xfffffe39814577c0
lr: 0xfffffe0046a61e24 fp: 0xfffffe3981457840
lr: 0xfffffe0046a644c4 fp: 0xfffffe3981457990
lr: 0xfffffe0046a63eb0 fp: 0xfffffe39814579b0
lr: 0xfffffe0048ab7454 fp: 0xfffffe3981457a00
lr: 0xfffffe0048432f58 fp: 0xfffffe3981457a70
lr: 0xfffffe0048459100 fp: 0xfffffe3981457b30
lr: 0xfffffe0048440660 fp: 0xfffffe3981457da0
lr: 0xfffffe004844158c fp: 0xfffffe3981457df0
lr: 0xfffffe00488fbe28 fp: 0xfffffe3981457e50
lr: 0xfffffe0048370298 fp: 0xfffffe3981457f10
lr: 0xfffffe00481a1e2c fp: 0xfffffe3981457f20
lr: 0x000000018bec15b0 fp: 0x0000000000000000
Kernel Extensions in backtrace:
com.apple.iokit.EndpointSecurity(1.0)[784184AB-83DC-3BC9-BBEB-FDBF276309D5]@0xfffffe0046a545d0->0xfffffe0046ae54bf
dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[4194BDA2-96B7-3224-95D8-DA796CC129D0]@0xfffffe00461ed470->0xfffffe0046221bb7
dependency: com.apple.security.quarantine(4)[2615DF7A-56E3-36CD-8218-4A5A6BB44BB5]@0xfffffe0047c189d0->0xfffffe0047c2176b
com.apple.filesystems.apfs(2811.101.1)[5AAC6989-B5D4-39FB-A04F-7006BF2FBB40]@0xfffffe0047df6f60->0xfffffe0047f5ce03
dependency: com.apple.driver.AppleEffaceableStorage(1.0)[13F7B04D-6219-3DFE-B22E-EE5A4EBDA4C8]@0xfffffe0045be9ee0->0xfffffe0045beecd7
dependency: com.apple.iokit.CoreAnalyticsFamily(1)[2DB7AFBD-4AD8-32A9-9C49-BE889D959F2B]@0xfffffe0046976410->0xfffffe004697ede7
dependency: com.apple.iokit.IOStorageFamily(2.1)[AA8C81ED-995B-3A0A-8879-A3B1BC904718]@0xfffffe0047621060->0xfffffe004764075f
dependency: com.apple.kec.corecrypto(26.0)[0B130D5E-A8AB-3ADF-ABDB-B66594F61D4F]@0xfffffe0047f9a3c0->0xfffffe004800403b
dependency: com.apple.security.AppleImage4(7.0.0)[08B3A680-29D7-37C6-81AA-C61A3B49C81F]@0xfffffe0045fe11c0->0xfffffe004600525f
last started kext at 5393679141517: com.apple.iokit.SCSITaskUserClient 545.100.10 (addr 0xfffffe0044502430, size 2206)
loaded kexts: (skipped, see boot kernelcache)
** Stackshot Succeeded ** Bytes Traced 914648 (Uncompressed 2216848) **
Operating System
Macos 26.4.1
Terminal
No response
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon Jun 15, 2026
This issue might be a duplicate of existing issues. Please check:
zalloc[3]: zone map exhaustedindata.kalloc.1024, panicked processopencode.exe, viacom.apple.iokit.EndpointSecuritykext. Same root symptom and crash pattern reported on macOS.github-actions commentedon Aug 15, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.