https://bugs.kde.org/show_bug.cgi?id=399256
Bug ID: 399256
Summary: Crash when trying to open a DJVU file with Okular
Product: okular
Version: 1.5.1
Platform: Neon Packages
OS: Linux
Status: REPORTED
Keywords: drkonqi
Severity: crash
Priority: NOR
Component: general
Assignee: okular-de...@kde.org
Reporter: geex...@gmail.com
Target Milestone: ---
Application: okular (1.5.1)
Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.18.11-041811-lowlatency x86_64
Distribution: KDE neon User Edition 5.13
-- Information about the crash:
Steps to reproduce:
1. Open a DJVU file with okular
2. See a crash
100% reproducible.
Tried with several djvu files.
System: fully upgraded KDE neon 18.04.
The crash can be reproduced every time.
-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f03c4d13800 (LWP 6945))]
Thread 4 (Thread 0x7f0398b9e700 (LWP 6955)):
[KCrash Handler]
#6 0x7f0398cb9862 in DJVU::MMXControl::enable_mmx () at MMX.cpp:183
#7 0x7f0398cace35 in DJVU::IW44Image::Transform::filter_begin
(w=w@entry=1840, h=h@entry=1866) at IW44Image.cpp:1848
#8 0x7f0398cace9a in DJVU::IW44Image::Transform::Decode::backward
(p=0x7f03910e9010, w=1840, h=1866, rowsize=rowsize@entry=1856,
begin=begin@entry=32, end=end@entry=16) at IW44Image.cpp:1875
#9 0x7f0398cae579 in DJVU::IW44Image::Map::image (this=,
subsample=subsample@entry=1, rect=..., img8=img8@entry=0x7f0391799010 "",
rowsize=rowsize@entry=5286, pixsep=pixsep@entry=3, fast=0) at IW44Image.cpp:845
#10 0x7f0398caf513 in DJVU::IWPixmap::get_pixmap (this=0x7f038c000ff0,
subsample=1, rect=...) at IW44Image.cpp:1696
#11 0x7f0398c3e323 in DJVU::DjVuImage::get_bg_pixmap
(this=this@entry=0x7f0394028230, rect=..., subsample=subsample@entry=2,
gamma=gamma@entry=2.2002, white=...) at DjVuImage.cpp:703
#12 0x7f0398c411ea in DJVU::DjVuImage::get_pixmap
(this=this@entry=0x7f0394028230, rect=..., subsample=subsample@entry=2,
gamma=gamma@entry=2.2002, white=...) at DjVuImage.cpp:1076
#13 0x7f0398c416f6 in DJVU::do_pixmap (dimg=..., get=,
inrect=..., inall=..., gamma=2.2002, white=...) at
DjVuImage.cpp:1219
#14 0x7f0398c41d4f in DJVU::DjVuImage::get_pixmap
(this=this@entry=0x7f0394028230, r=..., a=..., g=, w=...) at
DjVuImage.cpp:1232
#15 0x7f0398cd3f28 in ddjvu_page_render (page=page@entry=0x7f0394001510,
mode=mode@entry=DDJVU_RENDER_COLOR, pagerect=pagerect@entry=0x7f0398b9dbc0,
renderrect=renderrect@entry=0x7f0398b9dbb0, format=0x55ddf6908ac0,
rowsize=6000, imagebuffer=0x7f039207b010 "") at ddjvuapi.cpp:2461
#16 0x7f0398f3bfc2 in KDjVu::Private::generateImageTile
(this=0x55ddf6871010, djvupage=djvupage@entry=0x7f0394001510,
res=@0x7f0398b9dc94: 0, width=width@entry=1590, row=row@entry=0, xdelta=1500,
height=2461, col=0, ydelta=1500) at ./generators/djvu/kdjvu.cpp:495
#17 0x7f0398f3f079 in KDjVu::image (this=this@entry=0x55ddf6867cf0, page=0,
width=width@entry=1590, height=height@entry=2461, rotation=rotation@entry=0) at
./generators/djvu/kdjvu.cpp:988
#18 0x7f0398f37b25 in DjVuGenerator::image (this=0x55ddf64ab540,
request=0x55ddf6471f40) at ./generators/djvu/generator_djvu.cpp:118
#19 0x7f03a85094c5 in Okular::PixmapGenerationThread::run
(this=0x55ddf6850b20) at ./core/generator_p.cpp:62
#20 0x7f03c1120aab in QThreadPrivate::start (arg=0x55ddf6850b20) at
thread/qthread_unix.cpp:367
#21 0x7f03bd9d16db in start_thread (arg=0x7f0398b9e700) at
pthread_create.c:463
#22 0x7f03c0a1888f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 3 (Thread 0x7f03a9f4b700 (LWP 6947)):
#0 0x7f03c0a0bbf9 in __GI___poll (fds=0x7f03a4004db0, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x7f03bb498439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x7f03bb49854c in g_main_context_iteration () from
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x7f03c1346a9b in QEventDispatcherGlib::processEvents
(this=0x7f03a4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4 0x7f03c12eadea in QEventLoop::exec (this=this@entry=0x7f03a9f4ad70,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#5 0x7f03c1115b8a in QThread::exec (this=) at
thread/qthread.cpp:525
#6 0x7f03c178ee45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7 0x7f03c1120aab in QThreadPrivate::start (arg=0x7f03c1a06d60) at
thread/qthread_unix.cpp:367
#8 0x7f03bd9d16db in start_thread (arg=0x7f03a9f4b700) at
pthread_create.c:463
#9 0x7f03c0a1888f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 2 (Thread 0x7f03b2e16700 (LWP 6946)):
#0 0x7f03c0a0bbf9 in __GI___poll (fds=0x7f03b2e15ca8, nfds=1, timeout=-1)
at