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 697471 - Evince crashes when opening US Census map, cairo_set_dash()
Evince crashes when opening US Census map, cairo_set_dash()
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: PDF
git master
Other Linux
: High critical
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 761380 761643 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-07 04:34 UTC by gQuigs
Modified: 2016-03-21 17:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
stacktrace (10.84 KB, text/plain)
2013-04-07 19:40 UTC, gQuigs
Details

Description gQuigs 2013-04-07 04:34:17 UTC
Originally reported here (w/ auto stacktrace/coredump): https://bugs.launchpad.net/ubuntu-gnome/+bug/1165290

Causes crash opening PDF with Evince from git, with Ubuntu 12.04's Evince, and  Evince 3.7.

PDF is available here: http://www2.census.gov/geo/maps/blk2000/st34_NewJersey/CountySubdivision/3476220_Voorhees/CBS3476220_002.pdf
Comment 1 André Klapper 2013-04-07 16:21:48 UTC
"ThreadStacktrace.txt" does not have any debug symbols. Please attach a stacktrace here with debug symbols. https://live.gnome.org/GettingTraces
Comment 2 gQuigs 2013-04-07 19:40:37 UTC
Created attachment 240903 [details]
stacktrace

Sorry, about that.   Attached stacktrace.
Comment 3 José Aliste 2013-04-07 21:56:24 UTC
bryan@bryan-desktop:~/git$ gdb /usr/bin/evince
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/evince...Reading symbols from /usr/lib/debug/usr/bin/evince...done.
done.
(gdb) run
Starting program: /usr/bin/evince 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb4c61b40 (LWP 31480)]
[New Thread 0xb42ffb40 (LWP 31481)]
[New Thread 0xb37f0b40 (LWP 31482)]
[New Thread 0xadec3b40 (LWP 31484)]
[New Thread 0xad6c2b40 (LWP 31485)]
[New Thread 0xacaffb40 (LWP 31486)]
[New Thread 0xac2feb40 (LWP 31487)]
[New Thread 0xabafdb40 (LWP 31488)]
[New Thread 0xab2fcb40 (LWP 31489)]
[Thread 0xab2fcb40 (LWP 31489) exited]
[Thread 0xb37f0b40 (LWP 31482) exited]
[Thread 0xadec3b40 (LWP 31484) exited]
[Thread 0xacaffb40 (LWP 31486) exited]
[Thread 0xac2feb40 (LWP 31487) exited]
[New Thread 0xac2feb40 (LWP 31493)]
[New Thread 0xacaffb40 (LWP 31494)]
[Thread 0xabafdb40 (LWP 31488) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xac2feb40 (LWP 31493)]
_cairo_gstate_set_dash (gstate=0xaa963e38, dash=0x0, num_dashes=8, offset=-1.116309331254949e-103) at /build/buildd/cairo-1.12.14/src/cairo-gstate.c:542
542	/build/buildd/cairo-1.12.14/src/cairo-gstate.c: No such file or directory.
(gdb) thread apply all bt

Thread 11 (Thread 0xac2feb40 (LWP 31493))

  • #0 _cairo_gstate_set_dash
    at /build/buildd/cairo-1.12.14/src/cairo-gstate.c line 542
  • #1 cairo_set_dash
    at /build/buildd/cairo-1.12.14/src/cairo.c line 1076
  • #2 CairoOutputDev::fillToStrokePathClip
    at CairoOutputDev.cc line 1135
  • #3 CairoOutputDev::tilingPatternFill
    at CairoOutputDev.cc line 868
  • #4 Gfx::doTilingPatternFill
    at Gfx.cc line 2222
  • #5 doPatternFill
    at Gfx.cc line 1969
  • #6 Gfx::doPatternFill
    at Gfx.cc line 1954
  • #7 Gfx::opCloseEOFillStroke
    at Gfx.cc line 1940
  • #8 Gfx::execOp
    at Gfx.cc line 857
  • #9 Gfx::go
    at Gfx.cc line 716
  • #10 Gfx::display
    at Gfx.cc line 682
  • #11 Page::displaySlice
    at Page.cc line 519
  • #12 _poppler_page_render
    at poppler-page.cc line 360
  • #13 pdf_page_render
    at /build/buildd/evince-3.7.92/./backend/pdf/ev-poppler.cc line 412
  • #14 pdf_document_render
    at /build/buildd/evince-3.7.92/./backend/pdf/ev-poppler.cc line 445
  • #15 ev_document_render
    at /build/buildd/evince-3.7.92/./libdocument/ev-document.c line 678
  • #16 ev_job_render_run
    at /build/buildd/evince-3.7.92/./libview/ev-jobs.c line 634
  • #17 ev_job_run
    at /build/buildd/evince-3.7.92/./libview/ev-jobs.c line 215
  • #18 ev_job_thread
    at /build/buildd/evince-3.7.92/./libview/ev-job-scheduler.c line 184
  • #19 ev_job_thread_proxy
    at /build/buildd/evince-3.7.92/./libview/ev-job-scheduler.c line 217
  • #20 g_thread_proxy
    at /build/buildd/glib2.0-2.36.0/./glib/gthread.c line 798
  • #21 start_thread
    from /lib/i386-linux-gnu/libpthread.so.0
  • #22 clone
    from /lib/i386-linux-gnu/libc.so.6

Comment 4 José Aliste 2013-04-07 21:58:10 UTC
The trace says that popppler is calling cairo_set_dash with a null pointer array of length 8, that is clearly wrong... So this is a bug in poppler. Could you please forward the bug to poppler's bugzilla? http://bugs.freedesktop.org

Thanks for reporting.
Comment 5 gQuigs 2013-04-07 22:17:05 UTC
I think I have found the poppler bug at: https://bugs.freedesktop.org/show_bug.cgi?id=62905
Comment 6 Germán Poo-Caamaño 2016-02-24 20:37:37 UTC
*** Bug 761380 has been marked as a duplicate of this bug. ***
Comment 7 Germán Poo-Caamaño 2016-02-24 20:37:56 UTC
*** Bug 761643 has been marked as a duplicate of this bug. ***
Comment 8 Lance Haverkamp 2016-03-21 17:18:02 UTC
Still not working March 2016, using Ubuntu LTS 15.04  Can't open US Census maps in evince (https://bugzilla.gnome.org/show_bug.cgi?id=697471)

Poppler looks like they may have a patch ready for their next release, but I'm Looking for suggestions for an immediate work-around, can't wait years for this to get into Debian/Ubuntu stable.
Comment 9 Germán Poo-Caamaño 2016-03-21 17:39:33 UTC
(In reply to Lance Haverkamp from comment #8)
> Still not working March 2016, using Ubuntu LTS 15.04  Can't open US Census
> maps in evince (https://bugzilla.gnome.org/show_bug.cgi?id=697471)
> 
> Poppler looks like they may have a patch ready for their next release, but
> I'm Looking for suggestions for an immediate work-around, can't wait years
> for this to get into Debian/Ubuntu stable.

You build and run evince/poppler in your home directory. And you can apply that patch locally. However, bugzilla is not the appropriate channel to guide you if need help for that.

I run Evince and poppler from master by default, regardless I have then installed on my system from packages.