Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354709 - app-text/evince-2.32.0-r1 crashes on close with poppler-0.16
Summary: app-text/evince-2.32.0-r1 crashes on close with poppler-0.16
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 09:43 UTC by Justin Lecher (RETIRED)
Modified: 2011-04-13 10:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Crash trace (evince-crash.bt,26.91 KB, text/plain)
2011-02-13 12:17 UTC, Justin Lecher (RETIRED)
Details
creash trace - debug (evince-crash.bt,28.62 KB, text/plain)
2011-02-13 12:57 UTC, Justin Lecher (RETIRED)
Details
test pdf (The One Page Linux Manual.pdf,94.28 KB, application/pdf)
2011-02-13 12:57 UTC, Justin Lecher (RETIRED)
Details
test pdf (95154C17-E97D-6539-4BC86A7C7AD8E357_196442.pdf,590.32 KB, application/pdf)
2011-02-13 12:59 UTC, Justin Lecher (RETIRED)
Details
Upstream patch. (evince-2.32.0-poppler-linearized.patch,1.85 KB, patch)
2011-02-16 12:25 UTC, Ian Abbott
Details | Diff
Ebuild patch (evince-2.32.0-r1.ebuild.patch,983 bytes, patch)
2011-02-16 12:30 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-02-13 09:43:42 UTC
It crashes


$ einfo =app-text/evince-2.32.0-r1
Portage 2.2.0_alpha23 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-lh x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-lh-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 13 Feb 2011 08:00:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1::last-hope
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise dummy science last-hope
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -frecord-gcc-switches -msse4.2 -g -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/nano/ /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -frecord-gcc-switches -msse4.2 -g -Wenum-compare"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-t --jobs=12 --load-average=12 --keep-going"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache collision-protect distlocks fixlafiles fixpackages multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=core2 -frecord-gcc-switches -msse4.2 -g"
GENTOO_MIRRORS=" http://gentoo.j-schmitz.net/mirror/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j12 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-z -9 -f -S .lzma -v"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/data/local/sunrise/reviewed /data/local/dummy /data/local/sci /data/local/lh/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X acpi additions alsa amd64 arpwarp atlas bash-completion berkdb blas branding bzip2 c++ cairo caps cblas ccache cleartype cli command-args consolekit corefonts cracklib cups cupsddk custom-optimization cxx dbus dri dts exif fbcondecor fortran gdbm gif glibc-omitfp gmp gnome gnome-keyring gpm graphics gstreamer gtk hddtemp iconv icu ipod javascript jpeg kqemu lapack lcms ldap libnotify libsexy lm_sensors lzma mailtrain md5sum mmx mng modules mp3 mudflap multilib multiuser nagios-dns nagios-ntp nagios-ping nagios-ssh nano-syntax ncurses network-cron nis nls nptl nptlonly nsplugin objc objc++ opengl openmp openntpd pam pcre pdf perl png policykit pppd pymol python qt-static qt3support readline rrdcgi rrdtool science sensord session smp sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs system-sqlite tcpd threads tiff truetype type1 udev unicode x264 xcb xcomposite xinerama xorg xulrunner zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-text/evince-2.32.0-r1 was built with the following:
USE="dbus djvu dvi gnome gnome-keyring (multilib) t1lib tiff -debug -doc (-introspection) -nautilus"
Comment 1 Pacho Ramos gentoo-dev 2011-02-13 11:50:44 UTC
A backtrace is needed:
http://www.gentoo.org/proj/en/qa/backtraces.xml

(installing bug-buddy will also help you to get a better backtrace once needed parts are recompiled with debugging symbols)
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 12:15:42 UTC
(In reply to comment #1)
> A backtrace is needed:
> http://www.gentoo.org/proj/en/qa/backtraces.xml
> 
> (installing bug-buddy will also help you to get a better backtrace once needed
> parts are recompiled with debugging symbols)
> 

sorry, I added a backtrace via pybugz, but it somehow didn't reach here.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 12:17:12 UTC
Created attachment 262341 [details]
Crash trace
Comment 4 Pacho Ramos gentoo-dev 2011-02-13 12:25:13 UTC
Is this occurring for you even closing evince without opening any file? (simply launching it and closing?)

I would also recompile gtk+ with debugging symbols and get backtrace again
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 12:57:10 UTC
Created attachment 262343 [details]
creash trace - debug

gtk and evince with USE debug
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 12:57:54 UTC
Created attachment 262345 [details]
test pdf

This makes evince crash
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 12:59:27 UTC
Created attachment 262347 [details]
test pdf

This is nice to evince.
Comment 8 Pacho Ramos gentoo-dev 2011-02-13 13:08:03 UTC
(In reply to comment #6)
> Created an attachment (id=262345) [details]
> test pdf
> 
> This makes evince crash
> 

It works fine for me :-|
Comment 9 Pacho Ramos gentoo-dev 2011-02-13 13:09:45 UTC
What poppler version are you using? I have 0.14.5
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 13:10:48 UTC
(In reply to comment #9)
> What poppler version are you using? I have 0.14.5
> 

app-text/poppler-0.16.2
abiword cairo cxx jpeg lcms png qt4 utils xpdf-headers -cjk -curl -debug -doc -exceptions -introspection -jpeg2k

app-text/poppler-data-0.4.4
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 13:22:24 UTC
(In reply to comment #9)
> What poppler version are you using? I have 0.14.5
> 

Down grading to 0.14.5 fixes the problem.
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2011-02-13 13:29:10 UTC
Upstream:

https://bugzilla.gnome.org/show_bug.cgi?id=642224
Comment 13 Rafał Mużyło 2011-02-13 16:16:09 UTC
Sorry to disappoint you, but here on x86 both comment 6 and comment 7 work fine
with 0.16.2.
Comment 14 Rafał Mużyło 2011-02-13 16:30:57 UTC
(In reply to comment #13)
> Sorry to disappoint you, but here on x86 both comment 6 and comment 7 work fine
> with 0.16.2.
> 

However, the file that is supposed to crash evince outright, indeed crashed evince as soon as document properties are chosen from the menu.

Perhaps the difference is that I'm on 2.32.0, not -r1.
Comment 15 Ian Abbott 2011-02-16 11:11:24 UTC
Just to let Justin know he isn't alone, I'm seeing the same crashes on my amd64 system. The backtraces look the same, except that I don't have debugging symbols in mine.
Comment 16 Ian Abbott 2011-02-16 12:25:41 UTC
Created attachment 262725 [details, diff]
Upstream patch.

This patch is from: http://git.gnome.org/browse/evince/commit/?id=f77e6cf4fd7fef49ac91d8c62b6a9a993529adb8
Mentioned in upstream bug commment 3: https://bugzilla.gnome.org/show_bug.cgi?id=642224#c3

The ebuild's src_prepare() needs to run at least eautoconf and eautoheader from autotools.eclass to make use of this patch.
Comment 17 Ian Abbott 2011-02-16 12:30:10 UTC
Created attachment 262727 [details, diff]
Ebuild patch

This patch is the changes I made to the evince-2.32.0-r1.ebuild to use the upstream patch.
Comment 18 Rafał Mużyło 2011-02-22 19:00:09 UTC
Confirming the patch from comment 16 works.

Comment 19 Justin Lecher (RETIRED) gentoo-dev 2011-02-23 07:29:06 UTC
Works for me too.
Comment 20 Rafał Mużyło 2011-02-24 00:21:36 UTC
If that patch goes in, perhaps one for the typo mentioned in upstream bug could be slipped in as well, to silence QA warnings ?
Comment 21 Pacho Ramos gentoo-dev 2011-04-13 09:55:11 UTC
+*evince-2.32.0-r2 (13 Apr 2011)
+
+  13 Apr 2011; Pacho Ramos <pacho@gentoo.org> +evince-2.32.0-r2.ebuild,
+  +files/evince-2.32.0-dvi-security.patch,
+  +files/evince-2.32.0-libview-crash.patch,
+  +files/evince-2.32.0-update-poppler.patch:
+  Fix libview crash, upstream bug #630999; fix another security issue in the
+  dvi-backend; update poppler api with Arch patch (bug #354709 by Justin
+  Lecher, Ian Abbott and Rafał Mużyło).
+
Comment 22 Justin Lecher (RETIRED) gentoo-dev 2011-04-13 10:12:15 UTC
Finally!!! :)