Bug#830565: evince: Segmentation fault in Evince when searching after opening a PDF

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#830565: evince: Segmentation fault in Evince when searching after opening a PDF

Erik Brangs
Package: evince
Version: 3.14.1-2+deb8u1
Severity: normal

Dear Maintainer,

I was trying to use Evince to search in a PDF. After opening the PDF and pressing CTRL+F, I entered a single letter into the search bar. After this, evince crashed with a segmentation fault.

Unfortunately, I needed to remove the pdf name and some text from the backtrace due to privacy concerns. If they would be helpful for you, please let me know and I will send the information to you via private mail.

I could also report the bug upstream if it's still present in current versions and if you tell me where I should do that.

The backtrace looks like this:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `evince $PDFNAME'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  append_escaped_text (length=<optimized out>, text=<optimized out>, str=0x18a4260) at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmarkup.c:2163
2163 /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmarkup.c: No such file or directory.
(gdb) bt
#0  append_escaped_text (length=<optimized out>, text=<optimized out>, str=0x18a4260) at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmarkup.c:2163
#1  g_markup_escape_text (text=<optimized out>, length=<optimized out>) at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmarkup.c:2239
#2  0x00007fe1c143b9a2 in g_markup_vprintf_escaped (format=<optimized out>, args=args@entry=0x7ffe5a7431b0)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmarkup.c:2492
#3  0x00007fe1c143bb29 in g_markup_printf_escaped (format=format@entry=0x44b860 "%s<span weight=\"bold\">%s</span>%s")
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmarkup.c:2551
#4  0x0000000000422571 in get_surrounding_text_markup (offset=<optimized out>, log_attrs_length=4020, log_attrs=0x1da96e0, case_sensitive=<optimized out>,
    find_text=0x1cc6c10 "b",
    text=0x1e4e550 "$TEXTEDITEDOUT) at /build/evince-3.14.1/./shell/ev-find-sidebar.c:381
#5  process_matches_idle (sidebar=0x1a9c860) at /build/evince-3.14.1/./shell/ev-find-sidebar.c:512
#6  0x00007fe1c1436b6d in g_main_dispatch (context=0x16e2d10) at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3111
#7  g_main_context_dispatch (context=context@entry=0x16e2d10) at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3710
#8  0x00007fe1c1436f48 in g_main_context_iterate (context=context@entry=0x16e2d10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3781
#9  0x00007fe1c1436ffc in g_main_context_iteration (context=0x16e2d10, context@entry=0x0, may_block=may_block@entry=1)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3842
#10 0x00007fe1c19f420c in g_application_run (application=0x1757100, argc=0, argv=0x0) at /build/glib2.0-y6934K/glib2.0-2.42.1/./gio/gapplication.c:2282
#11 0x000000000041c512 in main (argc=1, argv=0x7ffe5a743648) at /build/evince-3.14.1/./shell/main.c:316

-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages evince depends on:
ii  evince-common              3.14.1-2+deb8u1
ii  gnome-icon-theme-symbolic  3.12.0-1
ii  libatk1.0-0                2.14.0-1
ii  libc6                      2.19-18+deb8u4
ii  libcairo-gobject2          1.14.0-2.1+deb8u1
ii  libcairo2                  1.14.0-2.1+deb8u1
ii  libevdocument3-4           3.14.1-2+deb8u1
ii  libevview3-3               3.14.1-2+deb8u1
ii  libgdk-pixbuf2.0-0         2.31.1-2+deb8u5
ii  libglib2.0-0               2.42.1-1+b1
ii  libgtk-3-0                 3.14.5-1+deb8u1
ii  libnautilus-extension1a    3.14.1-2
ii  libpango-1.0-0             1.36.8-3
ii  libpangocairo-1.0-0        1.36.8-3
ii  libsecret-1-0              0.18-1+b1
ii  libxml2                    2.9.1+dfsg1-5+deb8u2
ii  shared-mime-info           1.3-1
ii  zlib1g                     1:1.2.8.dfsg-2+b1

Versions of packages evince recommends:
ii  dbus-x11  1.8.20-0+deb8u1
ii  gvfs      1.22.2-1

Versions of packages evince suggests:
ii  nautilus      3.14.1-2
ii  poppler-data  0.4.7-1
pn  unrar         <none>

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#830565: evince: Segmentation fault in Evince when searching after opening a PDF

Jason Crain
Control: tags -1 + unreproducible moreinfo

On Sat, Jul 09, 2016 at 03:01:22PM +0200, Erik Brangs wrote:
> I was trying to use Evince to search in a PDF. After opening the PDF
> and pressing CTRL+F, I entered a single letter into the search bar.
> After this, evince crashed with a segmentation fault.

Stack trace is the same as the one in
https://bugzilla.gnome.org/724602 but unfortunately, I'm not able to
reproduce the crash with the PDF in that bug report, which makes
figuring out what happened much harder.

Can you trigger this crash reliably or did it happen just once?

Does it crash with other PDFs also?

If you are able to reliably reproduce this crash with your PDF, having
that PDF would be helpful for fixing the problem.