Bug 405502 - Okular crashes when trying to reopen document on unmounted filesystem
Summary: Okular crashes when trying to reopen document on unmounted filesystem
Status: RESOLVED DUPLICATE of bug 402397
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.5.3
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-03-15 21:05 UTC by Erik Quaeghebeur
Modified: 2019-03-16 00:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2019-03-15 21:05:05 UTC
Application: okular (1.5.3)

Qt Version: 5.11.3
Frameworks Version: 5.54.0
Operating System: Linux 4.19.27-gentoo-r1 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

The desktop environment was restarting. Previously, some pdfs were open in Okular. Before the restart, the filesystem on which those files were located was unmounted, so they were not there anymore.

I guess Okular should just report that the file is not present instead of crashing because of it.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f51be01a180 (LWP 7009))]

Thread 3 (Thread 0x7f5195145700 (LWP 7101)):
#0  0x00007f51b701056c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f51958901eb in ?? () from /usr/lib64/dri/i965_dri.so
#2  0x00007f519588ff17 in ?? () from /usr/lib64/dri/i965_dri.so
#3  0x00007f51b700996a in start_thread () from /lib64/libpthread.so.0
#4  0x00007f51b9daa92f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f51a0c03700 (LWP 7026)):
#0  0x00007f51b9d9ed63 in poll () from /lib64/libc.so.6
#1  0x00007f51b4a100b9 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f51b4a101cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f51ba70965b in QEventDispatcherGlib::processEvents (this=0x7f519c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f51ba6b985b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007f51ba5326c6 in QThread::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007f51bab52de5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f51ba53b69b in QThreadPrivate::start(void*) () at thread/qthread_unix.cpp:367
#8  0x00007f51b700996a in start_thread () from /lib64/libpthread.so.0
#9  0x00007f51b9daa92f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f51be01a180 (LWP 7009)):
[KCrash Handler]
#6  0x00007f51bc2099c3 in QMapData<KEntryKey, KEntry>::findNode (this=0x20, akey=...) at /usr/include/qt5/QtCore/qmap.h:284
#7  0x00007f51bc20ecab in QMap<KEntryKey, KEntry>::constFind (akey=..., this=0x55a50872c5f0) at /usr/include/qt5/QtCore/qmap.h:869
#8  QMap<KEntryKey, KEntry>::find (akey=..., this=0x55a50872c5f0) at /usr/include/qt5/QtCore/qmap.h:876
#9  KEntryMap::findEntry (this=this@entry=0x55a50872c5f0, group=..., key=..., flags=..., flags@entry=...) at /var/tmp/portage/kde-frameworks/kconfig-5.54.0-r1/work/kconfig-5.54.0/src/core/kconfigdata.cpp:74
#10 0x00007f51bc2032f7 in KConfigPrivate::lookupData (this=this@entry=0x55a50872c5d0, group=..., key=key@entry=0x55a507f8bb42 "ActiveTab", flags=..., flags@entry=...) at /var/tmp/portage/kde-frameworks/kconfig-5.54.0-r1/work/kconfig-5.54.0/src/core/kconfig.cpp:1024
#11 0x00007f51bc2187dc in KConfigGroup::readEntry (this=this@entry=0x7fff51f7c0f0, key=key@entry=0x55a507f8bb42 "ActiveTab", aDefault=...) at /var/tmp/portage/kde-frameworks/kconfig-5.54.0-r1/work/kconfig-5.54.0/src/core/kconfiggroup.cpp:725
#12 0x000055a507f84de3 in KConfigGroup::readEntry<int> (defaultValue=@0x7fff51f7c03c: 0, key=0x55a507f8bb42 "ActiveTab", this=0x7fff51f7c0f0) at /usr/include/KF5/KConfigCore/kconfiggroup.h:723
#13 Shell::readProperties (this=0x55a5084aea90, group=...) at /var/tmp/portage/kde-apps/okular-18.08.3/work/okular-18.08.3/shell/shell.cpp:392
#14 0x00007f51bd191858 in KMainWindow::readPropertiesInternal (this=this@entry=0x55a5084aea90, config=0x55a5084b7720, number=number@entry=1) at /var/tmp/portage/kde-frameworks/kxmlgui-5.54.0-r1/work/kxmlgui-5.54.0/src/kmainwindow.cpp:652
#15 0x00007f51bd1918a2 in KMainWindow::restore (this=0x55a5084aea90, number=1, show=<optimized out>) at /var/tmp/portage/kde-frameworks/kxmlgui-5.54.0-r1/work/kxmlgui-5.54.0/src/kmainwindow.cpp:473
#16 0x000055a507f800db in kRestoreMainWindows<Shell> () at /usr/include/KF5/KXmlGui/kmainwindow.h:719
#17 0x000055a507f7d822 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/okular-18.08.3/work/okular-18.08.3/shell/main.cpp:64

The reporter indicates this bug may be a duplicate of or related to bug 402397.

Possible duplicates by query: bug 402397, bug 395913, bug 395869, bug 395779, bug 395613.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2019-03-16 00:07:11 UTC

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