SIGTRAP crash in CoreGraphics font rendering pipeline (iOS 18.4)

We're observing new crashes specifically on iOS 18.4 devices with this pattern:

Exception Type: SIGTRAP 
Exception Codes: fault addr: 0x000000019bc0f088
Crashed Thread: 0 

Thread 0
0  libsystem_malloc.dylib _xzm_xzone_malloc_from_tiny_chunk.cold.1 + 36
1  libsystem_malloc.dylib __xzm_xzone_malloc_from_tiny_chunk + 612
2  libsystem_malloc.dylib __xzm_xzone_find_and_malloc_from_tiny_chunk + 112
3  libsystem_malloc.dylib __xzm_xzone_malloc_tiny_outlined + 312
4  CoreGraphics CG::Path::Path(CG::Path const&) + 132
5  CoreGraphics _CGPathCreateMutableCopyByTransformingPath + 112
6  CoreGraphics _CGFontCreateGlyphPath + 144
7  CoreGraphics _CGGlyphBuilderLockBitmaps + 1112
8  CoreGraphics _render_glyphs + 292
9  CoreGraphics _draw_glyph_bitmaps + 1116
10 CoreGraphics _ripc_DrawGlyphs + 1464
11 CoreGraphics CG::DisplayList::executeEntries(std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*, bool) + 1328
12 CoreGraphics _CGDisplayListDrawInContextDelegate + 340
13 QuartzCore _CABackingStoreUpdate_ + 612
14 QuartzCore ____ZN2CA5Layer8display_Ev_block_invoke + 120
15 QuartzCore -[CALayer _display] + 1512
16 QuartzCore CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 420
17 QuartzCore CA::Context::commit_transaction(CA::Transaction*, double, double*) + 476
18 QuartzCore CA::Transaction::commit() + 644
19 UIKitCore ___34-[UIApplication _firstCommitBlock]_block_invoke_2 + 36
20 CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
21 CoreFoundation ___CFRunLoopDoBlocks + 352
22 CoreFoundation ___CFRunLoopRun + 868
23 CoreFoundation _CFRunLoopRunSpecific + 572
24 GraphicsServices _GSEventRunModal + 168
25 UIKitCore -[UIApplication _run] + 816
26 UIKitCore _UIApplicationMain + 336
27 app _main + 132
28 dyld                      __dyld_process_info_create + 33284

Key Observations:

  1. Crash occurs during font glyph path creation (CGFontCreateGlyphPath)

  2. Involves memory allocation in malloc's xzone implementation

  3. 100% reproducible on iOS 18.4, not seen in prior OS versions

  4. Occurs during standard CALayer rendering operations

  5. Not tied to any specific font family or glyph content

Questions for Apple:

  1. Is this crash signature recognized as a known issue in iOS 18.4's CoreGraphics?

  2. Could changes to xzone memory management in iOS 18.4 interact poorly with font rendering?

  3. Are there specific conditions that might trigger SIGTRAP in CGPathCreateMutableCopyByTransformingPath?

  4. Any recommended mitigations for text rendering while awaiting system updates?

Encountering the same crash issue that exclusively occurs on systems version 18.4 and above, which ultimately consistently crash at _xzm_xzone_malloc_from_tiny_chunk.cold.1 + 36.

I have the same issue. Reported to Apple - FB17347956

SIGTRAP crash in CoreGraphics font rendering pipeline (iOS 18.4)
 
 
Q