Bug 264942

Summary: [GTK] Crash in _cairo_ft_scaled_glyph_vertical_layout_bearing_fix
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Full backtrace none

Description Michael Catanzaro 2023-11-16 05:45:29 PST
Created attachment 468617 [details]
Full backtrace

I wonder if this web process crash is a cairo bug:

(gdb) bt
#0  0x00007f19cd2411d6 in _cairo_ft_scaled_glyph_vertical_layout_bearing_fix
    (glyph=<optimized out>, abstract_font=<optimized out>)
    at ../src/cairo-ft-font.c:2332
#1  _cairo_ft_scaled_glyph_load_glyph
    (scaled_font=scaled_font@entry=0x7f1908020350, scaled_glyph=scaled_glyph@entry=0x7f1908020b90, face=face@entry=0x561acd69f060, load_flags=load_flags@entry=66056, use_em_size=use_em_size@entry=0, vertical_layout=vertical_layout@entry=0)
    at ../src/cairo-ft-font.c:2484
#2  0x00007f19cd245135 in _cairo_ft_scaled_glyph_init
    (abstract_font=<optimized out>, scaled_glyph=0x7f1908020b90, info=<optimized out>, foreground_color=0x7f19cd2a1ea0 <cairo_color_black>)
    at ../src/cairo-ft-font.c:3544
#3  0x00007f19cd1fe19c in _cairo_scaled_glyph_lookup
    (scaled_font=scaled_font@entry=0x7f1908020350, index=<optimized out>, info=info@entry=CAIRO_SCALED_GLYPH_INFO_PATH, foreground_color=0x7f19cd2a1ea0 <cairo_color_black>, 
    foreground_color@entry=0x0, scaled_glyph_ret=scaled_glyph_ret@entry=0x7ffec95957b0) at ../src/cairo-scaled-font.c:2972
#4  0x00007f19cd1ffa52 in _cairo_scaled_font_glyph_path
    (scaled_font=0x7f1908020350, glyphs=glyphs@entry=0x7ffec9595820, num_glyphs=<optimized out>, path=path@entry=0x7f1908053968)
    at ../src/cairo-scaled-font.c:2507
#5  0x00007f19cd1c3c16 in _cairo_gstate_glyph_path
    (gstate=0x7f19080535d0, glyphs=0x7ffec95960a0, num_glyphs=<optimized out>, pa--Type <RET> for more, q to quit, c t--Type <RET> for more, q to quit, c to continue without paging--c
th=0x7f1908053968) at ../src/cairo-gstate.c:2149
#6  0x00007f19cd21ef6a in cairo_glyph_path (cr=0x7f19080535a0, glyphs=<optimized out>, num_glyphs=<optimized out>)
    at ../src/cairo.c:3879
#7  0x00007f19d2b304d4 in WebCore::Font::platformPathForGlyph(unsigned short) const (this=0x7f191b25f7c0, glyph=78)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebCore/platform/graphics/cairo/FontCairo.cpp:89
#8  0x00007f19d2ab0c3a in WebCore::Font::pathForGlyph(unsigned short) const (this=0x7f191b25f7c0, glyph=78)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebCore/platform/graphics/Font.cpp:626
#9  0x00007f19d2aba7c0 in WebCore::GlyphToPathTranslator::path() (this=0x7ffec9596278)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebCore/platform/graphics/FontCascade.cpp:1654
#10 WebCore::FontCascade::dashesForIntersectionsWithRect(WebCore::TextRun const&, WebCore::FloatPoint const&, WebCore::FloatRect const&) const (this=<optimized out>, run=<optimized out>, textOrigin=<optimized out>, lineExtents=...)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebCore/platform/graphics/FontCascade.cpp:1698