Bug 402397 - Okular crashes while trying to re-open already deleted document at startup
Summary: Okular crashes while trying to re-open already deleted document at startup
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.5.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 405502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-20 22:49 UTC by Matthias Heizmann
Modified: 2022-11-09 05:11 UTC (History)
2 users (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 Matthias Heizmann 2018-12-20 22:49:36 UTC
Application: okular (1.5.3)
 (Compiled from sources)
Qt Version: 5.11.1
Frameworks Version: 5.52.0
Operating System: Linux 4.15.15-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
At startup the desktop environment tries to re-open all documents that were opened when I logged out from the desktop environent (good).
This includes pdfs that firefox downloaded and saved to /tmp.
However after a reboot these documents are gone (good).
Now Okular should show an error that the document does not exist, instead Okular crashes with a segfault (bad)

The crash can be reproduced every time.

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

Thread 3 (Thread 0x7fa9c35f0700 (LWP 4732)):
#0  0x00007fa9e435057c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa9c3d97f0b in util_queue_thread_func () from /usr/lib64/dri/i965_dri.so
#2  0x00007fa9c3d97c37 in impl_thrd_routine () from /usr/lib64/dri/i965_dri.so
#3  0x00007fa9e434996a in start_thread () from /lib64/libpthread.so.0
#4  0x00007fa9e70e31af in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fa9ce981700 (LWP 4730)):
#0  0x00007fa9e70d2cd0 in read () from /lib64/libc.so.6
#1  0x00007fa9e2064440 in g_wakeup_acknowledge () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa9e201fa37 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa9e201fef0 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa9e202005c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fa9e7a3aaeb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007fa9e79e6a4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#7  0x00007fa9e7848bda in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#8  0x00007fa9e7e73de5 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#9  0x00007fa9e785263f in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#10 0x00007fa9e434996a in start_thread () from /lib64/libpthread.so.0
#11 0x00007fa9e70e31af in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fa9eb310280 (LWP 4725)):
[KCrash Handler]
#6  0x00007fa9e7854626 in qstrcmp(QByteArray const&, QByteArray const&) () from /usr/lib64/libQt5Core.so.5
#7  0x00007fa9e95269ed in QMapData<KEntryKey, KEntry>::findNode(KEntryKey const&) const () from /usr/lib64/libKF5ConfigCore.so.5
#8  0x00007fa9e952bcab in KEntryMap::findEntry(QByteArray const&, QByteArray const&, QFlags<KEntryMap::SearchFlag>) const () from /usr/lib64/libKF5ConfigCore.so.5
#9  0x00007fa9e95202f7 in KConfigPrivate::lookupData(QByteArray const&, char const*, QFlags<KEntryMap::SearchFlag>) const () from /usr/lib64/libKF5ConfigCore.so.5
#10 0x00007fa9e95357dc in KConfigGroup::readEntry(char const*, QVariant const&) const () from /usr/lib64/libKF5ConfigCore.so.5
#11 0x000055783ab42de3 in Shell::readProperties(KConfigGroup const&) ()
#12 0x00007fa9ea4aca48 in KMainWindow::readPropertiesInternal(KConfig*, int) () from /usr/lib64/libKF5XmlGui.so.5
#13 0x00007fa9ea4aca92 in KMainWindow::restore(int, bool) () from /usr/lib64/libKF5XmlGui.so.5
#14 0x000055783ab3e0db in void kRestoreMainWindows<Shell>() ()
#15 0x000055783ab3b822 in main ()

Possible duplicates by query: bug 395539.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2019-03-16 00:07:11 UTC
*** Bug 405502 has been marked as a duplicate of this bug. ***
Comment 2 Justin Zobel 2022-10-10 11:16:35 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-10-25 05:00:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-11-09 05:11:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!