Bug 408818 - Ark crashed when trying to open *.fb2 file
Summary: Ark crashed when trying to open *.fb2 file
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.7.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 408851 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-17 09:52 UTC by Vasyl Teliman
Modified: 2019-06-21 07:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The file that causes this crash. (2.83 MB, application/zip)
2019-06-17 21:06 UTC, Vasyl Teliman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasyl Teliman 2019-06-17 09:52:25 UTC
Application: ark (19.4.2)

Qt Version: 5.12.3
Frameworks Version: 5.59.0
Operating System: Linux 4.15.0-51-generic x86_64
Distribution: KDE neon User Edition 5.16

-- Information about the crash:
- What I was doing when the application crashed:
I was trying to open *.fb2 file from the ark itself. It crached when I clicked on the file.

The crash can be reproduced every time.

-- Backtrace:
Application: Ark (ark), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f69f4c79c80 (LWP 4296))]

Thread 4 (Thread 0x7f69d4b3d700 (LWP 4299)):
#0  0x00007f69f0cbe0b4 in __GI___libc_read (fd=8, buf=0x7f69d4b3cb60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f69eb07e000 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f69eb038fb7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f69eb039470 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f69eb0395dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f69f1605dcb in QEventDispatcherGlib::processEvents (this=0x7f69c8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007f69f15a703a in QEventLoop::exec (this=this@entry=0x7f69d4b3cd70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f69f13ce4ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007f69eeeaf015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f69f13cfc72 in QThreadPrivate::start (arg=0x7f69ef126d80) at thread/qthread_unix.cpp:361
#10 0x00007f69ecd7f6db in start_thread (arg=0x7f69d4b3d700) at pthread_create.c:463
#11 0x00007f69f0ccf88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f69d6d8c700 (LWP 4298)):
#0  0x00007f69ecd859f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b83e8a7f28) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55b83e8a7ed8, cond=0x55b83e8a7f00) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55b83e8a7f00, mutex=0x55b83e8a7ed8) at pthread_cond_wait.c:655
#3  0x00007f69d826cdcb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f69d826caf7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f69ecd7f6db in start_thread (arg=0x7f69d6d8c700) at pthread_create.c:463
#6  0x00007f69f0ccf88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f69e2014700 (LWP 4297)):
#0  0x00007f69f0cc2bf9 in __GI___poll (fds=0x7f69e2013ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f69ea207747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f69ea20936a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f69e4dfb578 in QXcbEventQueue::run (this=0x55b83e836600) at qxcbeventqueue.cpp:228
#4  0x00007f69f13cfc72 in QThreadPrivate::start (arg=0x55b83e836600) at thread/qthread_unix.cpp:361
#5  0x00007f69ecd7f6db in start_thread (arg=0x7f69e2014700) at pthread_create.c:463
#6  0x00007f69f0ccf88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f69f4c79c80 (LWP 4296)):
[KCrash Handler]
#6  0x00007f69c6348eef in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x888389482a74d1) at /usr/include/c++/7/bits/atomic_base.h:396
#7  QAtomicOps<int>::load<int> (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=0x888389482a74d1) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:103
#9  QtPrivate::RefCount::isShared (this=0x888389482a74d1) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:101
#10 QLinkedList<Okular::ObjectRect*>::detach (this=0x7f69f1641240 <QTextStreamPrivate::getNumber(unsigned long long*)+2224>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlinkedlist.h:106
#11 QLinkedList<Okular::ObjectRect*>::append (this=this@entry=0x7f69f1641240 <QTextStreamPrivate::getNumber(unsigned long long*)+2224>, t=@0x7ffd1da5bef0: 0x55b83f1f9320) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlinkedlist.h:394
#12 0x00007f69c634f348 in Okular::TextDocumentGenerator::loadDocumentWithPassword (this=<optimized out>, fileName=..., pagesVector=..., password=...) at ./core/textdocumentgenerator.cpp:342
#13 0x00007f69c632905a in Okular::DocumentPrivate::openDocumentInternal (this=0x55b83eee26a0, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ./core/document.cpp:875
#14 0x00007f69c63296fd in Okular::Document::openDocument (this=this@entry=0x55b83eef8d30, docFile=..., url=..., _mime=..., password=...) at ./core/document.cpp:2443
#15 0x00007f69c66566db in Okular::Part::doOpenFile (this=this@entry=0x55b83ee8a350, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffd1da5c3d7) at ./part.cpp:1415
#16 0x00007f69c6656d27 in Okular::Part::openFile (this=0x55b83ee8a350) at ./part.cpp:1549
#17 0x00007f69f45bca56 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x55b83eec74a0) at ./src/readonlypart.cpp:190
#18 0x00007f69f45bd8e1 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x55b83ee8a350, url=...) at ./src/readonlypart.cpp:153
#19 0x00007f69c6648e06 in Okular::Part::openUrl (this=0x55b83ee8a350, _url=..., swapInsteadOfOpening=<optimized out>) at ./part.cpp:1755
#20 0x00007f69d40a684e in ArkViewer::viewInInternalViewer (this=this@entry=0x55b83eed2a00, fileName=..., mimeType=...) at ./part/arkviewer.cpp:202
#21 0x00007f69d40a7e26 in ArkViewer::view (fileName=...) at ./part/arkviewer.cpp:151
#22 0x00007f69d4094f46 in Ark::Part::slotPreviewExtractedEntry (this=0x55b83ec42390, job=<optimized out>) at ./part/part.cpp:1047
#23 0x00007f69f15d898f in QtPrivate::QSlotObjectBase::call (a=0x7ffd1da5ca80, r=0x55b83ec42390, this=0x55b83ee46210) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#24 QMetaObject::activate (sender=sender@entry=0x55b83eeaaac0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd1da5ca80) at kernel/qobject.cpp:3776
#25 0x00007f69f15d8f47 in QMetaObject::activate (sender=sender@entry=0x55b83eeaaac0, m=m@entry=0x7f69f2d41500 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd1da5ca80) at kernel/qobject.cpp:3648
#26 0x00007f69f2ae39ec in KJob::result (this=this@entry=0x55b83eeaaac0, _t1=<optimized out>, _t1@entry=0x55b83eeaaac0, _t2=...) at ./obj-x86_64-linux-gnu/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:573
#27 0x00007f69f2ae4521 in KJob::finishJob (this=0x55b83eeaaac0, emitResult=<optimized out>) at ./src/lib/jobs/kjob.cpp:109
#28 0x00007f69f2ae63da in KJob::emitResult (this=<optimized out>) at ./src/lib/jobs/kjob.cpp:293
#29 0x00007f69f483a789 in Kerfuffle::Job::onFinished (this=0x55b83eeaaac0, result=<optimized out>) at ./kerfuffle/jobs.cpp:211
#30 0x00007f69f15d898f in QtPrivate::QSlotObjectBase::call (a=0x7ffd1da5cc60, r=0x55b83eeaaac0, this=0x55b83eed8300) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#31 QMetaObject::activate (sender=sender@entry=0x55b83ee40a90, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7ffd1da5cc60) at kernel/qobject.cpp:3776
#32 0x00007f69f15d8f47 in QMetaObject::activate (sender=sender@entry=0x55b83ee40a90, m=m@entry=0x7f69f4a96700 <Kerfuffle::ReadOnlyArchiveInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7ffd1da5cc60) at kernel/qobject.cpp:3648
#33 0x00007f69f4874152 in Kerfuffle::ReadOnlyArchiveInterface::finished (this=this@entry=0x55b83ee40a90, _t1=<optimized out>, _t1@entry=true) at ./obj-x86_64-linux-gnu/kerfuffle/kerfuffle_autogen/EWIEGA46WW/moc_archiveinterface.cpp:288
#34 0x00007f69f485eb87 in Kerfuffle::CliInterface::extractProcessFinished (this=0x55b83ee40a90, exitCode=<optimized out>, exitStatus=<optimized out>) at ./kerfuffle/cliinterface.cpp:422
#35 0x00007f69f15d898f in QtPrivate::QSlotObjectBase::call (a=0x7ffd1da5ce30, r=0x55b83ee40a90, this=0x55b83eea66d0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#36 QMetaObject::activate (sender=sender@entry=0x55b83ee85ed0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffd1da5ce30) at kernel/qobject.cpp:3776
#37 0x00007f69f15d8f47 in QMetaObject::activate (sender=sender@entry=0x55b83ee85ed0, m=m@entry=0x7f69f1a53ce0 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffd1da5ce30) at kernel/qobject.cpp:3648
#38 0x00007f69f1523b5f in QProcess::finished (this=this@entry=0x55b83ee85ed0, _t1=<optimized out>, _t2=<optimized out>) at .moc/moc_qprocess.cpp:338
#39 0x00007f69f152a9a7 in QProcessPrivate::_q_processDied (this=0x7f69c801ba60) at io/qprocess.cpp:1176
#40 0x00007f69f152aac9 in QProcess::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffd1da5cfe0) at .moc/moc_qprocess.cpp:215
#41 0x00007f69f15d8875 in QMetaObject::activate (sender=sender@entry=0x55b83ee88810, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd1da5cfe0) at kernel/qobject.cpp:3795
#42 0x00007f69f15d8f47 in QMetaObject::activate (sender=sender@entry=0x55b83ee88810, m=m@entry=0x7f69f1a55c60 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd1da5cfe0) at kernel/qobject.cpp:3648
#43 0x00007f69f15e5178 in QSocketNotifier::activated (this=this@entry=0x55b83ee88810, _t1=<optimized out>, _t2=...) at .moc/moc_qsocketnotifier.cpp:140
#44 0x00007f69f15e5532 in QSocketNotifier::event (this=0x55b83ee88810, e=0x7ffd1da5d2c0) at kernel/qsocketnotifier.cpp:266
#45 0x00007f69f23a465c in QApplicationPrivate::notify_helper (this=this@entry=0x55b83e8340e0, receiver=receiver@entry=0x55b83ee88810, e=e@entry=0x7ffd1da5d2c0) at kernel/qapplication.cpp:3736
#46 0x00007f69f23abb90 in QApplication::notify (this=0x7ffd1da5d5d0, receiver=0x55b83ee88810, e=0x7ffd1da5d2c0) at kernel/qapplication.cpp:3483
#47 0x00007f69f15a8d18 in QCoreApplication::notifyInternal2 (receiver=0x55b83ee88810, event=0x7ffd1da5d2c0) at kernel/qcoreapplication.cpp:1060
#48 0x00007f69f15a8eee in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x7ffd1da5d2c0) at kernel/qcoreapplication.cpp:1450
#49 0x00007f69f1606a18 in socketNotifierSourceDispatch (source=0x55b83e89dca0) at kernel/qeventdispatcher_glib.cpp:106
#50 0x00007f69eb039317 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f69eb039550 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007f69eb0395dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#53 0x00007f69f1605daf in QEventDispatcherGlib::processEvents (this=0x55b83e89ffc0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#54 0x00007f69f15a703a in QEventLoop::exec (this=this@entry=0x7ffd1da5d4e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#55 0x00007f69f15b0170 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1363
#56 0x000055b83cd05f24 in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:345

Possible duplicates by query: bug 385028, bug 384419, bug 372712.

Reported using DrKonqi
Comment 1 Elvis Angelaccio 2019-06-17 20:25:01 UTC
Can you share a test file to reproduce the crash?
Comment 2 Vasyl Teliman 2019-06-17 20:43:28 UTC
(In reply to Elvis Angelaccio from comment #1)
> Can you share a test file to reproduce the crash?

Sorry, it seems it's the Okular's bug. I'll send the report appropriately.
Comment 3 Elvis Angelaccio 2019-06-17 20:54:37 UTC
No need to, I changed the product of this one. :)
Comment 4 Vasyl Teliman 2019-06-17 21:02:06 UTC
(In reply to Elvis Angelaccio from comment #3)
> No need to, I changed the product of this one. :)

I'm sorry again. It seems I've already sent one :). Here is a link (you might want to mark it as duplicate): https://bugs.kde.org/show_bug.cgi?id=408851
Comment 5 Vasyl Teliman 2019-06-17 21:06:12 UTC
Created attachment 120959 [details]
The file that causes this crash.
Comment 6 Vasyl Teliman 2019-06-17 21:08:52 UTC
By the way, I've failed to mention here that it'd worked OK until I've decided to update KDE to 5.16.0
Comment 7 Wolfgang Bauer 2019-06-19 11:59:52 UTC
I think it's caused by this Qt bug:
https://bugreports.qt.io/browse/QTBUG-73730

Should be fixed in the latest 5.12.4.
Comment 8 Wolfgang Bauer 2019-06-19 12:11:09 UTC
(In reply to Wolfgang Bauer from comment #7)
> I think it's caused by this Qt bug:
> https://bugreports.qt.io/browse/QTBUG-73730
> 
> Should be fixed in the latest 5.12.4.

PS: I can indeed open the attached file just fine here with Qt 5.12.4 (and ark/okular 19.04.2).
Comment 9 Michael Weghorn 2019-06-21 07:05:46 UTC
*** Bug 408851 has been marked as a duplicate of this bug. ***
Comment 10 Michael Weghorn 2019-06-21 07:07:08 UTC
(In reply to Wolfgang Bauer from comment #8)
> (In reply to Wolfgang Bauer from comment #7)
> > I think it's caused by this Qt bug:
> > https://bugreports.qt.io/browse/QTBUG-73730
> > 
> > Should be fixed in the latest 5.12.4.
> 
> PS: I can indeed open the attached file just fine here with Qt 5.12.4 (and
> ark/okular 19.04.2).

Thanks for the information. Closing as RESOLVED UPSTREAM.