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 642224 - crash in free, ev_document_info_free
crash in free, ev_document_info_free
Status: RESOLVED DUPLICATE of bug 638312
Product: evince
Classification: Core
Component: BugBuddyBugs
2.32.x
Other All
: Normal critical
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 642216 644482 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-13 13:27 UTC by Justin
Modified: 2011-04-11 00:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32


Attachments
test pdf (94.28 KB, application/pdf)
2011-02-13 13:28 UTC, Justin
Details

Description Justin 2011-02-13 13:27:25 UTC
Version: 2.32.0

What were you doing when the application crashed?
I just closed evince after viewing a pdf file. Then evince crashed.


Distribution: Gentoo Base System release 2.0.1
Gnome Release: 2.32.1 2010-12-08 (Gentoo)
BugBuddy Version: 2.32.0

System: Linux 2.6.37-lh #1 SMP PREEMPT Tue Feb 8 09:06:39 CET 2011 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10904000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Glossy
Icon Theme: Gion
GTK+ Modules: canberra-gtk-module, gnomesegvhandler

Memory status: size: 464621568 vsize: 464621568 resident: 36691968 share: 24477696 rss: 36691968 rss_rlim: 18446744073709551615
CPU usage: start_time: 1297603604 rtime: 32 utime: 29 stime: 3 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/evince'

0x00002afe2adaca4d in waitpid () from /lib/libpthread.so.0

Thread 1 (process 12175)

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 g_spawn_sync
    at gspawn.c line 392
  • #2 g_spawn_command_line_sync
    at gspawn.c line 706
  • #3 run_bug_buddy
    at gnome-segvhanlder.c line 240
  • #4 bugbuddy_segv_handle
    at gnome-segvhanlder.c line 191
  • #5 <signal handler called>
  • #6 free
    from /lib/libc.so.6
  • #7 ev_document_info_free
    at ev-document.c line 761
  • #8 ev_document_finalize
    at ev-document.c line 125
  • #9 g_object_unref
    at gobject.c line 2712
  • #10 ev_page_cache_finalize
    at ev-page-cache.c line 157
  • #11 g_object_unref
    at gobject.c line 2712
  • #12 ev_view_destroy
    at ev-view.c line 4515
  • #13 g_closure_invoke
    at gclosure.c line 766
  • #14 signal_emit_unlocked_R
    at gsignal.c line 3368
  • #15 g_signal_emit_valist
    at gsignal.c line 2983
  • #16 g_signal_emit
    at gsignal.c line 3040
  • #17 gtk_object_dispose
    at gtkobject.c line 421
  • #18 g_object_run_dispose
    at gobject.c line 938
  • #19 gtk_scrolled_window_forall
    at gtkscrolledwindow.c line 1086
  • #20 gtk_container_destroy
    at gtkcontainer.c line 1072
  • #21 g_closure_invoke
    at gclosure.c line 766
  • #22 signal_emit_unlocked_R
    at gsignal.c line 3368
  • #23 g_signal_emit_valist
    at gsignal.c line 2983
  • #24 g_signal_emit
    at gsignal.c line 3040
  • #25 gtk_object_dispose
    at gtkobject.c line 421
  • #26 g_object_run_dispose
    at gobject.c line 938
  • #27 gtk_box_forall
    at gtkbox.c line 1251
  • #28 gtk_container_destroy
    at gtkcontainer.c line 1072
  • #29 g_closure_invoke
    at gclosure.c line 766
  • #30 signal_emit_unlocked_R
    at gsignal.c line 3368
  • #31 g_signal_emit_valist
    at gsignal.c line 2983
  • #32 g_signal_emit
    at gsignal.c line 3040
  • #33 gtk_object_dispose
    at gtkobject.c line 421
  • #34 g_object_run_dispose
    at gobject.c line 938
  • #35 gtk_container_destroy
    at gtkcontainer.c line 1072
  • #36 g_closure_invoke
    at gclosure.c line 766
  • #37 signal_emit_unlocked_R
    at gsignal.c line 3368
  • #38 g_signal_emit_valist
    at gsignal.c line 2983
  • #39 g_signal_emit
    at gsignal.c line 3040
  • #40 gtk_object_dispose
    at gtkobject.c line 421
  • #41 g_object_run_dispose
    at gobject.c line 938
  • #42 gtk_box_forall
    at gtkbox.c line 1251
  • #43 gtk_container_destroy
    at gtkcontainer.c line 1072
  • #44 g_closure_invoke
    at gclosure.c line 766
  • #45 signal_emit_unlocked_R
    at gsignal.c line 3368
  • #46 g_signal_emit_valist
    at gsignal.c line 2983
  • #47 g_signal_emit
    at gsignal.c line 3040
  • #48 gtk_object_dispose
    at gtkobject.c line 421
  • #49 g_object_run_dispose
    at gobject.c line 938
  • #50 gtk_container_destroy
    at gtkcontainer.c line 1072
  • #51 g_closure_invoke
    at gclosure.c line 766
  • #52 signal_emit_unlocked_R
    at gsignal.c line 3368
  • #53 g_signal_emit_valist
    at gsignal.c line 2983
  • #54 g_signal_emit
    at gsignal.c line 3040
  • #55 gtk_object_dispose
    at gtkobject.c line 421
  • #56 ev_window_dispose
    at ev-window.c line 5327
  • #57 g_object_run_dispose
    at gobject.c line 938
  • #58 IA__gtk_main_do_event
    at gtkmain.c line 1581
  • #59 gdk_event_dispatch
    at gdkevents-x11.c line 2377
  • #60 g_main_dispatch
    at gmain.c line 2149
  • #61 g_main_context_dispatch
    at gmain.c line 2702
  • #62 g_main_context_iterate
    at gmain.c line 2780
  • #63 g_main_loop_run
    at gmain.c line 2988
  • #64 IA__gtk_main
    at gtkmain.c line 1237
  • #65 main
    at main.c line 322

	Inferior 1 [process 12175] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]


----------- .xsession-errors ---------------------
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
warning: the debug information found in "/usr/lib64/debug//usr/lib64/liblcms.so.1.0.19.debug" does not match "/usr/lib64/liblcms.so.1" (CRC mismatch).
warning: the debug information found in "/usr/lib64/debug/usr/lib64/liblcms.so.1.0.19.debug" does not match "/usr/lib64/liblcms.so.1" (CRC mismatch).
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
--------------------------------------------------
Comment 1 Justin 2011-02-13 13:28:45 UTC
Created attachment 180772 [details]
test pdf

This one makes it crash.
Comment 2 Justin 2011-02-13 13:29:29 UTC
Downstream report:

https://bugs.gentoo.org/show_bug.cgi?id=354709
Comment 3 Pacho Ramos 2011-02-13 13:34:49 UTC
Probably a duplicate of bug 638312 (but this one looks to have a better backtrace).

Patch:
http://git.gnome.org/browse/evince/commit/?id=f77e6cf4fd7fef49ac91d8c62b6a9a993529adb8

Should solve this per other bug comments
Comment 4 Justin 2011-02-13 14:27:40 UTC
(In reply to comment #3)
> Probably a duplicate of bug 638312 (but this one looks to have a better
> backtrace).
> 
> Patch:
> http://git.gnome.org/browse/evince/commit/?id=f77e6cf4fd7fef49ac91d8c62b6a9a993529adb8

This patch doesn't help here.
Comment 5 José Aliste 2011-02-13 14:37:15 UTC
justin, which version of poppler are you using?
Comment 6 Justin 2011-02-13 15:06:04 UTC
poppler-0.16.2

cmaked with


cmake -C /var/tmp/portage/app-text/poppler-0.16.2/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_GTK_TESTS=OFF -DBUILD_QT4_TESTS=OFF -DBUILD_CPP_TESTS=OFF -DWITH_Qt3=OFF -DENABLE_SPLASH=ON -DENABLE_ZLIB=ON -DENABLE_abiword=ON -DENABLE_ABIWORD=ON -DENABLE_Abiword=ON -DENABLE_LIBCURL=OFF -DENABLE_CPP=ON -DENABLE_LIBOPENJPEG=OFF -DENABLE_lcms=ON -DENABLE_LCMS=ON -DENABLE_Lcms=ON -DENABLE_utils=ON -DENABLE_UTILS=ON -DENABLE_Utils=ON -DENABLE_XPDF_HEADERS=ON -DWITH_cairo=ON -DWITH_CAIRO=ON -DWITH_Cairo=ON -DWITH_GTK=ON -DWITH_GObjectIntrospection=OFF -DWITH_jpeg=ON -DWITH_JPEG=ON -DWITH_Jpeg=ON -DWITH_png=ON -DWITH_PNG=ON -DWITH_Png=ON -DWITH_qt4=ON -DWITH_QT4=ON -DWITH_Qt4=ON -DUSE_EXCEPTIONS=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-text/poppler-0.16.2/temp/gentoo_rules.cmake  /var/tmp/portage/app-text/poppler-0.16.2/work/poppler-0.16.2
Comment 7 Rafał Mużyło 2011-02-13 16:38:48 UTC
As I noted in the downstream bug, the crash can also be triggered by accessing document properties in the menu.
Comment 8 Rafał Mużyło 2011-02-14 01:24:53 UTC
I've noticed something strange about that pdf - part of pdfinfo output is:
Creator:        Microsoft Word 
Producer:       Acrobat PDFWriter 3.0 for Windows
CreationDate:   D:00000101000000Z

So, could it be that evince doesn't handle this seemingly invalid value gracefully ?
Comment 9 Akhil Laddha 2011-02-14 01:59:27 UTC
*** Bug 642216 has been marked as a duplicate of this bug. ***
Comment 10 Ian Abbott 2011-02-16 12:20:19 UTC
Like Justin, I'm also using Gentoo, also using amd64, using the same versions of poppler and evince as Justin, and I get the same crashes.

The patch referred to in Comment #3 fixes it for me (I think Justin forgot to run autoconf and autoheader).

With the patch, I still get the following suspicious-looking compiler warning, which may indicate a separate problem:

ev-poppler.cc:2083:2: warning: converting to non-pointer type ‘gboolean’ from NULL

That's from this line in backends/pdf/ev-poppler.cc, pdf_document_text_get_text_layout():

        g_return_val_if_fail (POPPLER_IS_PAGE (page->backend_page), NULL);

Corresponding line in trunk:
http://git.gnome.org/browse/evince/tree/backend/pdf/ev-poppler.cc?id=f77e6cf4fd7fef49ac91d8c62b6a9a993529adb8#n2074
Comment 11 Rafał Mużyło 2011-02-16 12:49:41 UTC
@comment 10: that's probably unrelated and a trivial typo:
FALSE!=NULL even if it seems it sometimes could.
Comment 12 Rafał Mużyło 2011-02-22 19:01:42 UTC
For me, patch from comment 10 fixed the problem.
Justin, perhaps you forgot to run autoreconf ?
Comment 13 Akhil Laddha 2011-03-11 12:25:21 UTC
*** Bug 644482 has been marked as a duplicate of this bug. ***
Comment 14 Pacho Ramos 2011-03-21 20:41:13 UTC
Looks like ArchLinux is already including:
http://git.gnome.org/browse/evince/commit/?id=f77e6cf4fd7fef49ac91d8c62b6a9a993529adb8

Could it be committed to 2.32 branch also? 

And maybe comment #12 suggestion would also interest (not sure if that warnings are also valid for master)
Comment 15 André Klapper 2011-04-11 00:33:10 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.

*** This bug has been marked as a duplicate of bug 638312 ***