Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498916 - app-text/zathura-0.2.6 with x11-libs/cairo-1.12.16 - segmentation fault while printing in _cairo_winansi_to_glyphname () from /usr/lib64/libcairo.so.2
Summary: app-text/zathura-0.2.6 with x11-libs/cairo-1.12.16 - segmentation fault while...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 12:43 UTC by Renato Alves
Modified: 2014-07-26 13:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Alves 2014-01-22 12:43:50 UTC
When trying to print a document using zathura-0.2.6 I get a segfault which under gdb gives me the following traceback:

    #0  0x00007ffff70472fa in _cairo_winansi_to_glyphname () from /usr/lib64/libcairo.so.2
    #1  0x00007ffff7047a3d in write_used_glyphs () from /usr/lib64/libcairo.so.2
    #2  0x00007ffff70475e1 in cairo_type1_font_subset_for_each_glyph () from /usr/lib64/libcairo.so.2
    #3  0x00007ffff70498ca in _cairo_type1_subset_init () from /usr/lib64/libcairo.so.2
    #4  0x00007ffff708e0d3 in _cairo_pdf_surface_emit_unscaled_font_subset () from /usr/lib64/libcairo.so.2
    #5  0x00007ffff704218e in _cairo_scaled_font_subsets_foreach_internal () from /usr/lib64/libcairo.so.2
    #6  0x00007ffff708b890 in _cairo_pdf_surface_finish () from /usr/lib64/libcairo.so.2
    #7  0x00007ffff70271b6 in _cairo_surface_finish () from /usr/lib64/libcairo.so.2
    #8  0x00007ffff7027deb in cairo_surface_finish () from /usr/lib64/libcairo.so.2
    #9  0x00007ffff6fff734 in _cairo_paginated_surface_finish () from /usr/lib64/libcairo.so.2
    #10 0x00007ffff70271b6 in _cairo_surface_finish () from /usr/lib64/libcairo.so.2
    #11 0x00007ffff7027deb in cairo_surface_finish () from /usr/lib64/libcairo.so.2
    #12 0x00007ffff784b205 in unix_end_run () from /usr/lib64/libgtk-x11-2.0.so.0
    #13 0x00007ffff76fdca3 in print_pages_idle () from /usr/lib64/libgtk-x11-2.0.so.0
    #14 0x00007ffff72f6a26 in gdk_threads_dispatch () from /usr/lib64/libgdk-x11-2.0.so.0
    #15 0x00007ffff672f5e5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
    #16 0x00007ffff672f928 in g_main_context_iterate.isra.22 () from /usr/lib64/libglib-2.0.so.0
    #17 0x00007ffff672fd9a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
    #18 0x00007ffff76c4627 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
    #19 0x000000000040e73a in main ()

This seems to have been fixed upstream: https://bugs.freedesktop.org/show_bug.cgi?id=67324



Reproducible: Always

Steps to Reproduce:
1. Open a pdf in zathura
2. Invoke :print
3. Select default options and click the print button.
4. Zathura will segfault
Comment 1 Renato Alves 2014-01-22 13:01:23 UTC
Please ignore the provided patch/link.
Although the backtrace points to the same function, the patch is already part of 1.12.16.

The problem is something else.
Comment 2 Renato Alves 2014-01-22 15:15:07 UTC
Tested with cairo-9999 as of present time and poppler-0.24.5 and the segmentation fault is gone.
Comment 3 Renato Alves 2014-01-22 15:16:00 UTC
(In reply to Renato Alves from comment #2)
> Tested with cairo-9999 as of present time and poppler-0.24.5 and the
> segmentation fault is gone.

Forgot to mention that with cairo-1.12.16 the segfault is back.
Comment 4 Michael Cook 2014-07-13 17:26:20 UTC
AFAIK, cairo isn't caught with @preserved-rebuild, so you most likely updated cairo and need to run revdep-rebuild.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-07-13 17:57:14 UTC
meanwhile zathura-0.2.9 is in Portage
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2014-07-26 08:33:49 UTC
First, sync tree to get latest zathura (stabilized today):

# emerge --sync

Second, re-emerge all zathura related packages:

# emerge --oneshot --verbose $(qlist -CI girara zathura)

Third, verify zathura-meta is in world to prevent depclean from taking action:

# emerge --noreplace --verbose app-text/zathura-meta

Reopen the bug if you can still reproduce after rebuilding & upgrading zathura to latest
Comment 7 Renato Alves 2014-07-26 13:20:21 UTC
Can no longer reproduce.