GNOME Bugzilla – Bug 767088
crash when viewing small pcf.gz files in /usr/share/fonts/X11/misc
Last modified: 2016-06-04 09:30:51 UTC
I am on Ubuntu 16.04. If I execute this command in a terminal: gnome-font-viewer /usr/share/fonts/X11/misc/decsess.pcf.gz gnome-font-viewer crashes: (gnome-font-viewer:14441): Pango-CRITICAL **: pango_find_base_dir: assertion 'text != NULL || length == 0' failed Erreur de segmentation (core dumped) The version is 3.16.2
Thanks for taking the time to report this. Without a stack trace (or test case) from the crash it's very hard to determine what caused it. Can you get us a stack trace? Please see https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces for more information on how to do so. When pasting a stack trace in this bug report, please reset the status of this bug report from NEEDINFO to its previous status. Thanks in advance!
Created attachment 328912 [details] gdb stacktrace when crash occurs
I don't see a single application call but only gtk calls in that trace. :-/ Is the testcase /usr/share/fonts/X11/misc/decsess.pcf.gz available for public somewhere?
Stacktrace does not seem to have information about what happens inside gnome-font-viewer, but I fixed a similar crash a while ago here: https://git.gnome.org/browse/gnome-font-viewer/commit/?id=1af4733223882c8870040c6333117ade116cbbac Any chance you can try to reproduce it with 3.20?
Created attachment 328990 [details] gdb stacktrace when crash occurs with more symbols and local variables I'm sorry, I had a hard time finding the symbols for gnome-font-viewer. Usually it is only a matter of executing "apt install program-dbg" but this time I had to find the right link on launchpad and manually install a deb file. Hopefully the stacktrace will be more helpful now. Otherwise I tried to get the source code and build it but a package is missing and I don't know how to get it on my system (Ubuntu 16.04): No package 'gnome-desktop-3.0' found I am willing to test version 3.20 but for now I have no idea how to do that. The font in the test case is a default font that comes with Ubuntu. As it is in a X11 folder maybe it comes with any system that depends on X11? The crash occurs with any small file found in that directory.
I found a compiled version of version 3.20.2 I could test on my system. The crash does not occur with that version. Hopefully it will be released through Ubuntu repository.
Thanks for testing, Hadrien. The stacktrace also matches the issue fixed by the commit above. Looks like 3.20 is coming to the next Ubuntu (Yakkety). Closing this as a duplicate. *** This bug has been marked as a duplicate of bug 757680 ***