[Bug 1030357] Re: evince crashed with SIGSEGV when trying to print this PDF file
** Attachment added: PDF that Evince can't print without crashing https://bugs.launchpad.net/bugs/1030357/+attachment/3240125/+files/Prepaid-eng.pdf ** Attachment removed: KernLog.txt https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1030357/+attachment/3240129/+files/KernLog.txt ** Description changed: While I was testing for a different bug, I found a PDF that evince consistently crashes on, when asked to print. To reproduce: 1) Open Prepaid-eng.pdf with evince. 2) Select Print from the File menu. 3) Hit Print or Print Preview. Evince will put up a progress bar, getting up to 'printing page14 of 14'. Then evince will disappear and dump core. I installed the evince-dbg package, and reproduced the crash for this - report. Let me know if I can provide better information. Thanks. + report. The traces still show 'no symbol table info available', so I + guess I needed the -dbg versions of the libraries, too? I'll see if I + can install all those and get a more detailed report, later. Thanks. ProblemType: Crash DistroRelease: Ubuntu 12.10 Package: evince 3.5.4-0ubuntu1 ProcVersionSignature: Ubuntu 3.5.0-6.6-generic 3.5.0 Uname: Linux 3.5.0-6-generic x86_64 ApportVersion: 2.4-0ubuntu6 Architecture: amd64 Date: Sat Jul 28 14:40:51 2012 ExecutablePath: /usr/bin/evince ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.5.0-6-generic root=UUID=779b6708-eeec-4cc0-9701-d76b020f7ffb ro splash quiet irqfixup vt.handoff=7 ProcEnviron: - PATH=(custom, no user) - LANG=en_US.UTF-8 - SHELL=/bin/bash + PATH=(custom, no user) + LANG=en_US.UTF-8 + SHELL=/bin/bash SegvAnalysis: - Segfault happened at: 0x7fed2ec56c40:movzbl (%rdi),%edx - PC (0x7fed2ec56c40) ok - source (%rdi) (0x) not located in a known VMA region (needed readable region)! - destination %edx ok + Segfault happened at: 0x7fed2ec56c40:movzbl (%rdi),%edx + PC (0x7fed2ec56c40) ok + source (%rdi) (0x) not located in a known VMA region (needed readable region)! + destination %edx ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: evince StacktraceTop: - ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 - ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 - ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 - ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 - ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 + ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 + ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 + ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 + ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 + ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 Title: evince crashed with SIGSEGV UpgradeStatus: Upgraded to quantal on 2012-06-14 (44 days ago) UserGroups: adm cdrom dip lpadmin nopasswdlogin plugdev sambashare sudo XsessionErrors: - (compiz:19014): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key (dirname, NULL)' failed - (indicator-multiload:19029): GLib-GIO-CRITICAL **: GApplication subclass 'Main' failed to chain up on ::startup (from start of override function) + (compiz:19014): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key (dirname, NULL)' failed + (indicator-multiload:19029): GLib-GIO-CRITICAL **: GApplication subclass 'Main' failed to chain up on ::startup (from start of override function) ** Visibility changed to: Public -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1030357 Title: evince crashed with SIGSEGV when trying to print this PDF file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1030357/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1030357] Re: evince crashed with SIGSEGV when trying to print this PDF file
I'm not not too practiced at reading stacktraces, but maybe this bug is in cairo, and not actually in the evince code. I'll look into that more if I get a chance. ** Also affects: cairo (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1030357 Title: evince crashed with SIGSEGV when trying to print this PDF file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1030357/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1030357] Re: evince crashed with SIGSEGV when trying to print this PDF file
Seems trivially repeatable given the instructions; I'm on Quantal; looking in the source of cairo I see (cairo-cff-subset.c:1181): operand = cff_dict_get_operands (font-top_dict, CHARSET_OP, size); if (font-is_cid !operand) return CAIRO_INT_STATUS_UNSUPPORTED; decode_integer (operand, offset); It's segging the decode_integer and it looks like operand is null; so (without knowing anything about the datastructure!) I wonder if that's supposed to be an || !operand ? Dave ** Changed in: cairo (Ubuntu) Importance: Undecided = Medium ** Changed in: cairo (Ubuntu) Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1030357 Title: evince crashed with SIGSEGV when trying to print this PDF file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1030357/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1030357] Re: evince crashed with SIGSEGV when trying to print this PDF file
I think you nailed it right away! I patched and built cairo, and evince doesn't crash. :) ** Patch added: one-line patch for cairo-cff-subset.c, as suggested by Dave Gilbert https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1030357/+attachment/3240374/+files/cairo-crash-fix.patch ** Changed in: evince (Ubuntu) Status: New = Invalid ** Description changed: While I was testing for a different bug, I found a PDF that evince - consistently crashes on, when asked to print. + consistently crashes on, when asked to print. The crash turns out to be + in the cairo library. To reproduce: 1) Open Prepaid-eng.pdf with evince. 2) Select Print from the File menu. 3) Hit Print or Print Preview. Evince will put up a progress bar, getting up to 'printing page14 of 14'. Then evince will disappear and dump core. - - I installed the evince-dbg package, and reproduced the crash for this - report. The traces still show 'no symbol table info available', so I - guess I needed the -dbg versions of the libraries, too? I'll see if I - can install all those and get a more detailed report, later. Thanks. ProblemType: Crash DistroRelease: Ubuntu 12.10 Package: evince 3.5.4-0ubuntu1 ProcVersionSignature: Ubuntu 3.5.0-6.6-generic 3.5.0 Uname: Linux 3.5.0-6-generic x86_64 ApportVersion: 2.4-0ubuntu6 Architecture: amd64 Date: Sat Jul 28 14:40:51 2012 ExecutablePath: /usr/bin/evince ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.5.0-6-generic root=UUID=779b6708-eeec-4cc0-9701-d76b020f7ffb ro splash quiet irqfixup vt.handoff=7 ProcEnviron: PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SegvAnalysis: Segfault happened at: 0x7fed2ec56c40:movzbl (%rdi),%edx PC (0x7fed2ec56c40) ok source (%rdi) (0x) not located in a known VMA region (needed readable region)! destination %edx ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: evince StacktraceTop: ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2 Title: evince crashed with SIGSEGV UpgradeStatus: Upgraded to quantal on 2012-06-14 (44 days ago) UserGroups: adm cdrom dip lpadmin nopasswdlogin plugdev sambashare sudo XsessionErrors: (compiz:19014): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key (dirname, NULL)' failed (indicator-multiload:19029): GLib-GIO-CRITICAL **: GApplication subclass 'Main' failed to chain up on ::startup (from start of override function) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/1030357 Title: evince crashed with SIGSEGV when trying to print this PDF file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1030357/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs