After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767088 - crash when viewing small pcf.gz files in /usr/share/fonts/X11/misc
crash when viewing small pcf.gz files in /usr/share/fonts/X11/misc
Status: RESOLVED DUPLICATE of bug 757680
Product: gnome-font-viewer
Classification: Core
Component: general
3.16.x
Other Linux
: High critical
: ---
Assigned To: gnome-font-viewer-maint
gnome-font-viewer-maint
Depends on:
Blocks:
 
 
Reported: 2016-05-31 19:47 UTC by Hadrien
Modified: 2016-06-04 09:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdb stacktrace when crash occurs (16.70 KB, text/plain)
2016-06-01 19:33 UTC, Hadrien
Details
gdb stacktrace when crash occurs with more symbols and local variables (38.86 KB, text/plain)
2016-06-02 17:54 UTC, Hadrien
Details

Description Hadrien 2016-05-31 19:47:57 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
Comment 1 André Klapper 2016-06-01 16:53:47 UTC
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!
Comment 2 Hadrien 2016-06-01 19:33:20 UTC
Created attachment 328912 [details]
gdb stacktrace when crash occurs
Comment 3 André Klapper 2016-06-02 07:27:58 UTC
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?
Comment 4 Cosimo Cecchi 2016-06-02 09:04:44 UTC
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?
Comment 5 Hadrien 2016-06-02 17:54:37 UTC
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.
Comment 6 Hadrien 2016-06-04 08:11:40 UTC
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.
Comment 7 Cosimo Cecchi 2016-06-04 09:30:51 UTC
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 ***