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
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.
Tested with cairo-9999 as of present time and poppler-0.24.5 and the segmentation fault is gone.
(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.
AFAIK, cairo isn't caught with @preserved-rebuild, so you most likely updated cairo and need to run revdep-rebuild.
meanwhile zathura-0.2.9 is in Portage
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
Can no longer reproduce.