[cairo-bugs] [Bug 78787] blueman and xfce4-power-manager crash when opening right-click menu while terminus is set as system font

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 24 06:10:57 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=78787

--- Comment #6 from Massimo <sixtysix at inwind.it> ---
I was able to reproduce this crash with gimp and cairo from git master.

On fedora 22, I have installed 'gnome-themes', 'gnome-themes-legacy' and
'gtk-murrine-engine'. I have put in ~/.gtkrc-2.0 these three lines:


include "/usr/share/themes/MurrinaEalm/gtk-2.0/gtkrc"
style "myfont" { font_name = "Terminus 11" } widget_class "*" style "myfont"
gtk-font-name = "Terminus 11"


and use the this command line to start gimp-2.9 installed in $HOME/prefix

GTK_PATH=$HOME/prefix/lib64/gtk-2.0:/usr/lib64/gtk-2.0 gimp-2.9


The problem is that in src/cairo-scaled-font.c _cairo_scaled_glyph_lookup  is
called with the 'scaled_font->cache_frozen' TRUE:

http://cgit.freedesktop.org/cairo/tree/src/cairo-scaled-font.c#n2961

but when scaled_font_backend->scaled_glyph_init returns for example 
CAIRO_INT_STATUS_UNSUPPORTED
http://cgit.freedesktop.org/cairo/tree/src/cairo-scaled-font.c#n2982

(which comments suggest being not an error)
http://cgit.freedesktop.org/cairo/tree/src/cairo-scaled-font.c#n3022

_cairo_scaled_glyph_page_destroy is called (via
_cairo_scaled_font_free_last_glyph)
which expects scaled_font->cache_frozen being FALSE.


thawing the cache before calling _cache_scaled_font_free_last_glyph and
freezing it after fixes the crash, perhaps introducing races in 
multi threaded programs.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20151024/487d7a48/attachment.html>


More information about the cairo-bugs mailing list