#190 certain DjVu file causes libdjvu to crash with SIGSEGV

djvulibre
closed
nobody
libdjvu (18)
5
2012-11-08
2012-05-11
Lux In Tenebris
No

I'm using Evince document viewer under Debian GNU/Linux Wheezy x64. When I open or browse certain DjVu file (could be corrupted in some way) the viewer crashes with SIGSEGV signal.
libdjvulibre version is 3.5.25.2

Here is a GDB backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000e2a780 in ?? ()
(gdb) bt
#0 0x0000000000e2a780 in ?? ()
#1 0x00007fffec6c4866 in ?? () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#2 0x00007fffec6c53e9 in ?? () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#3 0x00007fffec6c5e19 in miniexp_cons () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#4 0x00007fffec6c94df in ?? () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#5 0x00007fffec6c947b in ?? () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#6 0x00007fffec6c947b in ?? () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#7 0x00007fffec6c947b in ?? () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#8 0x00007fffec6d7aa3 in ddjvu_document_get_outline () from /usr/lib/x86_64-linux-gnu/libdjvulibre.so.21
#9 0x00007fffec9378f8 in ?? () from /usr/lib/evince/3/backends/libdjvudocument.so
#10 0x000000000043d453 in ?? ()
#11 0x000000000042a8bb in ?? ()
#12 0x0000000000432dcd in ?? ()
#13 0x0000000000432e45 in ?? ()
#14 0x000000000043427c in ?? ()
#15 0x00007ffff4c9971a in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff4cb1f91 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff4cb2a92 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff7559dc0 in ?? () from /usr/lib/libevview3.so.3
#19 0x00007ffff43cd79a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff43cdb60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff43cdf5a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff6acd80d in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#23 0x000000000041e9ce in ?? ()
#24 0x00007ffff362aead in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#25 0x000000000041ea79 in ?? ()
#26 0x00007fffffffe508 in ?? ()
#27 0x000000000000001c in ?? ()
#28 0x0000000000000001 in ?? ()
#29 0x00007fffffffe786 in ?? ()
#30 0x0000000000000000 in ?? ()

DjVu sample which causes a crash: http://www.mediafire.com/?esa8pp7gjv0z67z

Discussion

  • Leon Bottou
    Leon Bottou
    2012-05-12

    This seems to have been fixed in djvulibre 3.5.25-3 (tested on a Ubuntu rig).
    Please reopen if you disagree.