Bug 416637 - crash when opening pdf
Summary: crash when opening pdf
Status: RESOLVED DUPLICATE of bug 407369
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-01-23 09:41 UTC by Tiziana Ferro
Modified: 2020-01-23 16:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziana Ferro 2020-01-23 09:41:27 UTC
Application: okular (1.9.1)
 (Compiled from sources)
Qt Version: 5.13.1
Frameworks Version: 5.66.0
Operating System: Linux 4.19.88mamba-x86_64 x86_64
Distribution: openmamba GNU/Linux 4.95.0 for x86_64 (rolling)

-- Information about the crash:
crash when opening encrypted pdf

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
29	  return SYSCALL_CANCEL (poll, fds, nfds, timeout);
[Current thread is 1 (Thread 0x7f4781451240 (LWP 5990))]

Thread 8 (Thread 0x7f476a201700 (LWP 5997)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bd95644f18) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bd95644ec8, cond=0x55bd95644ef0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bd95644ef0, mutex=0x55bd95644ec8) at pthread_cond_wait.c:638
#3  0x00007f477525184d in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f4775251956 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f476aa02700 (LWP 5996)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bd95644f18) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bd95644ec8, cond=0x55bd95644ef0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bd95644ef0, mutex=0x55bd95644ec8) at pthread_cond_wait.c:638
#3  0x00007f477525184d in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f4775251956 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f476b203700 (LWP 5995)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bd95644f18) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bd95644ec8, cond=0x55bd95644ef0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bd95644ef0, mutex=0x55bd95644ec8) at pthread_cond_wait.c:638
#3  0x00007f477525184d in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f4775251956 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f476ba04700 (LWP 5994)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bd95644f18) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bd95644ec8, cond=0x55bd95644ef0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bd95644ef0, mutex=0x55bd95644ec8) at pthread_cond_wait.c:638
#3  0x00007f477525184d in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f4775251956 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f476c205700 (LWP 5993)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bd9592fc18) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bd9592fbc8, cond=0x55bd9592fbf0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bd9592fbf0, mutex=0x55bd9592fbc8) at pthread_cond_wait.c:638
#3  0x00007f477525184d in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f4775251956 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f477df6b700 (LWP 5992)):
#0  0x00007fff7d363c23 in clock_gettime ()
#1  0x00007f4785ed853b in __GI___clock_gettime (clock_id=1, tp=0x7f477df6a9b0) at ../sysdeps/unix/sysv/linux/clock_gettime.c:33
#2  0x00007f47865c2d01 in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007f47865c16c9 in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQt5Core.so.5
#4  0x00007f47865c1c45 in QTimerInfoList::timerWait(timespec&) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f47865c309e in ?? () from /usr/lib64/libQt5Core.so.5
#6  0x00007f4782346242 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f4782346b83 in ?? () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f4782346d6f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f47865c330b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#10 0x00007f478656e89b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f47863a8d91 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#12 0x00007f47868aa456 in ?? () from /usr/lib64/libQt5DBus.so.5
#13 0x00007f47863a9dd3 in ?? () from /usr/lib64/libQt5Core.so.5
#14 0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#15 0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f47800de700 (LWP 5991)):
#0  0x00007f4785ec09bf in __GI___poll (fds=0x7f47800ddb48, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f4784bbacb7 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f4784bbc7aa in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f4780835db0 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f47863a9dd3 in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007f47855c94cf in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f4785ecb2a3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f4781451240 (LWP 5990)):
[KCrash Handler]
#6  0x00007f4769847a86 in Catalog::getEmbeddedFileNameTree() () from /usr/lib64/libpoppler.so.78
#7  0x00007f47741af845 in ?? () from /usr/lib64/libpoppler-qt5.so.1
#8  0x00007f47741afb34 in Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&) () from /usr/lib64/libpoppler-qt5.so.1
#9  0x00007f4775ae17d0 in PDFGenerator::loadDocumentWithPassword (this=0x55bd95af5350, filePath=..., pagesVector=..., password=...) at /var/autodist/RPM/BUILD/okular-19.12.1/generators/poppler/generator_pdf.cpp:631
#10 0x00007f477cab93ac in Okular::DocumentPrivate::openDocumentInternal (this=0x55bd95608970, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at /var/autodist/RPM/BUILD/okular-19.12.1/core/document.cpp:945
#11 0x00007f477cab9a3c in Okular::Document::openDocument (this=this@entry=0x55bd95631100, docFile=..., url=..., _mime=..., password=...) at /var/autodist/RPM/BUILD/okular-19.12.1/core/document.cpp:2554
#12 0x00007f477cc3d1f5 in Okular::Part::doOpenFile (this=this@entry=0x55bd955ba8a0, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7fff7d2e48d7) at /var/autodist/RPM/BUILD/okular-19.12.1/part.cpp:1437
#13 0x00007f477cc3e5e1 in Okular::Part::openFile (this=0x55bd955ba8a0) at /var/autodist/RPM/BUILD/okular-19.12.1/part.cpp:1571
#14 0x00007f478818581d in ?? () from /usr/lib64/libKF5Parts.so.5
#15 0x00007f47881867a6 in KParts::ReadOnlyPart::openUrl(QUrl const&) () from /usr/lib64/libKF5Parts.so.5
#16 0x00007f477cc2e9f6 in Okular::Part::openUrl (this=0x55bd955ba8a0, _url=..., swapInsteadOfOpening=<optimized out>) at /var/autodist/RPM/BUILD/okular-19.12.1/part.cpp:1778
#17 0x000055bd93ce992b in Shell::openUrl (this=0x55bd9553eb20, url=..., serializedOptions=...) at /var/autodist/RPM/BUILD/okular-19.12.1/shell/shell.cpp:280
#18 0x000055bd93ce9ba7 in Shell::openDocument (this=0x55bd9553eb20, url=..., serializedOptions=...) at /var/autodist/RPM/BUILD/okular-19.12.1/shell/shell.cpp:221
#19 0x000055bd93ce2297 in Okular::main (paths=..., serializedOptions=...) at /var/autodist/RPM/BUILD/okular-19.12.1/shell/okular_main.cpp:176
#20 0x000055bd93ce1983 in main (argc=<optimized out>, argv=<optimized out>) at /var/autodist/RPM/BUILD/okular-19.12.1/shell/main.cpp:82
[Inferior 1 (process 5990) detached]

Possible duplicates by query: bug 416077, bug 414179, bug 409684, bug 408837, bug 408576.

Reported using DrKonqi
Comment 1 Yuri Chornoivan 2020-01-23 16:47:14 UTC
Poppler library is too old (0.67) and buggy. Consider to update it somehow, compile/install the poppler from git, or use Okular from flatpack.

Thanks in advance for your patience.

*** This bug has been marked as a duplicate of bug 407338 ***
Comment 2 Yuri Chornoivan 2020-01-23 16:50:17 UTC
Oops, wrong duplicate...

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