pango_cairo_show_layout segment fault on macOS
On macOS Monterey 12.5.1 x86_64, PangoCairo's pango_cairo_show_layout
. The same program executes just fine on Linux. I've traced the fault to possibly be resulting from pango/pangocoretext-fontmap.c:1369
from the pango_core_text_font_map_load_fontset
method. This is the related backtrace and that seems to match with where the segment fault is coming from:
* frame #0: 0x00007ff8186900b0 libsystem_platform.dylib`_platform_strcmp + 80
frame #1: 0x000000010031bc93 libpangocairo-1.0.0.dylib`pango_core_text_font_map_load_fontset + 202
frame #2: 0x000000010051911b libpango-1.0.0.dylib`pango_itemize_with_font + 1259
frame #3: 0x0000000100523cf6 libpango-1.0.0.dylib`pango_layout_check_lines + 811
frame #4: 0x00000001005274d6 libpango-1.0.0.dylib`_pango_layout_get_iter + 78
frame #5: 0x000000010052f919 libpango-1.0.0.dylib`pango_renderer_draw_layout + 185
frame #6: 0x0000000100318667 libpangocairo-1.0.0.dylib`_pango_cairo_do_layout + 59
Pango version: 1.50.9
Edited by Tristan Ross