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 537574 - evince crashes with segfault
evince crashes with segfault
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.22.x
Other Linux
: Normal critical
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 539693 541252 543296 545474 555569 564835 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-10 12:46 UTC by Pedro Villavicencio
Modified: 2008-12-17 13:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
The third version of the patch (1.41 KB, patch)
2008-06-16 07:36 UTC, arno_b
none Details | Review

Description Pedro Villavicencio 2008-06-10 12:46:16 UTC
this report has been filed here:

"When I open the bad pdf document with evince, its crashes with a seg fault.
The backtrace is given a joined piece.
I have the following messages in the console too:

(evince:8367): Poppler-CRITICAL **: PopplerPage* poppler_document_get_page(PopplerDocument*, int): assertion `0 <= index && index < poppler_document_get_n_pages (document)' failed

(evince:8367): Poppler-CRITICAL **: void poppler_page_get_size(PopplerPage*, double*, double*): assertion `POPPLER_IS_PAGE (page)' failed

(evince:8367): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (evince:8367): CRITICAL **: ev_page_cache_get_size: assertion `page >= 0 && page < page_cache->n_pages' failed

(evince:8367): Poppler-CRITICAL **: PopplerPage* poppler_document_get_page(PopplerDocument*, int): assertion `0 <= index && index < poppler_document_get_n_pages (document)' failed

** (evince:8367): CRITICAL **: GdkPixbuf* pdf_document_thumbnails_get_thumbnail(EvDocumentThumbnails*, EvRenderContext*, gboolean): assertion `poppler_page != NULL' failed

** (evince:8367): CRITICAL **: ev_page_cache_get_thumbnail_size: assertion `page >= 0 && page < page_cache->n_pages' failed

(evince:8367): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `pixbuf != NULL' failed

(evince:8367): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion `pixbuf != NULL' failed

(evince:8367): GdkPixbuf-CRITICAL **: gdk_pixbuf_fill: assertion `GDK_IS_PIXBUF (pixbuf)' failed
Erreur de segmentation"

PDF File: 

http://launchpadlibrarian.net/15169148/bry02gentle.pdf

"(gdb) bt full
  • #0 memset
    from /lib/tls/i686/cmov/libc.so.6
  • #1 ev_document_misc_get_thumbnail_frame
    at /build/buildd/evince-2.22.2/./libdocument/ev-document-misc.c line 66
  • #2 ev_sidebar_thumbnails_set_loading_icon
    at /build/buildd/evince-2.22.2/./shell/ev-sidebar-thumbnails.c line 418
  • #3 ev_sidebar_thumbnails_set_document
    at /build/buildd/evince-2.22.2/./shell/ev-sidebar-thumbnails.c line 650
  • #4 ev_sidebar_set_document
  • #5 ev_window_setup_document
    at /build/buildd/evince-2.22.2/./shell/ev-window.c line 1144
  • #6 ??
    from /usr/lib/libglib-2.0.so.0
  • #7 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #8 ??
    from /usr/lib/libglib-2.0.so.0
  • #9 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #10 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #11 main
    at /build/buildd/evince-2.22.2/./shell/main.c line 412

Thanks,
Comment 1 Pedro Villavicencio 2008-06-13 16:10:34 UTC
the reporter submitted a patch to the ubuntu report here:

http://launchpadlibrarian.net/15262140/patch_v2.txt
Comment 2 arno_b 2008-06-14 09:26:56 UTC
See here for more details on the origin of the crash:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/238787
Comment 3 arno_b 2008-06-16 07:36:22 UTC
Created attachment 112814 [details] [review]
The third version of the patch
Comment 4 Carlos Garcia Campos 2008-06-16 17:54:40 UTC
Thank you very much for the patch. I've just fixed it using another approach, though. 
Comment 5 Gianluca Borello 2008-06-23 10:22:25 UTC
*** Bug 539693 has been marked as a duplicate of this bug. ***
Comment 6 Cosimo Cecchi 2008-07-06 14:45:21 UTC
*** Bug 541252 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2008-07-16 16:29:36 UTC
*** Bug 543296 has been marked as a duplicate of this bug. ***
Comment 8 Cosimo Cecchi 2008-08-25 09:34:21 UTC
*** Bug 545474 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2008-10-23 22:50:50 UTC
*** Bug 555569 has been marked as a duplicate of this bug. ***
Comment 10 palfrey 2008-12-17 13:28:49 UTC
*** Bug 564835 has been marked as a duplicate of this bug. ***