Bug 418414

Summary: Gwenview crashed with segfault after opening image from unpacked folder
Product: [Applications] gwenview Reporter: Nick Andreev <bakasaru>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 19.12.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nick Andreev 2020-03-02 20:37:41 UTC
Application: gwenview (19.12.2)

Qt Version: 5.14.1
Frameworks Version: 5.67.0
Operating System: Linux 5.3.0-40-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

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

I downloaded 7Z archive with folder containing 7 images and unpacked this folder with Ark. After that I opened folder with images using Dolphin and tried to open an image with Gwenview which was displaying Dolphin's window with Gwenview's border and wasn't responding to anything, causing segfault after some time. Every image from this folder was causing this problem.

After that I opened image from another folder with Gwenview successfully. At last, I tried to open image from unpacked folder, and it worked too.

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5f681f28c0 (LWP 9488))]

Thread 3 (Thread 0x7f5f489ae700 (LWP 9490)):
#0  0x00007f5f5ade7649 in g_mutex_lock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f5f5ada0b33 in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5f5ada14fb in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5f5ada16dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5f6347b0db in QEventDispatcherGlib::processEvents (this=0x7f5f3c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5f6341a63a in QEventLoop::exec (this=this@entry=0x7f5f489adcb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f5f6322b317 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f5f61cd9555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f5f6322c7ec in QThreadPrivate::start (arg=0x7f5f61f51da0) at thread/qthread_unix.cpp:342
#9  0x00007f5f5c8a76db in start_thread (arg=0x7f5f489ae700) at pthread_create.c:463
#10 0x00007f5f62b2188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f5f4b736700 (LWP 9489)):
#0  0x00007f5f62b14bf9 in __GI___poll (fds=0x7f5f4b735be8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5f5ab38747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f5f5ab3a36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f5f4e0d9cc0 in QXcbEventQueue::run (this=0x55bcd5383b50) at qxcbeventqueue.cpp:228
#4  0x00007f5f6322c7ec in QThreadPrivate::start (arg=0x55bcd5383b50) at thread/qthread_unix.cpp:342
#5  0x00007f5f5c8a76db in start_thread (arg=0x7f5f4b736700) at pthread_create.c:463
#6  0x00007f5f62b2188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f5f681f28c0 (LWP 9488)):
[KCrash Handler]
#6  0x00007f5f633674d3 in QUrl::operator== (this=this@entry=0x7fff5576c0d0, url=...) at io/qurl.cpp:3636
#7  0x00007f5f6782a169 in Gwenview::ContextManager::setCurrentDirUrl (this=this@entry=0x55bcd5419ce0, _url=...) at ./lib/contextmanager.cpp:186
#8  0x00007f5f6782a286 in Gwenview::ContextManager::<lambda(const QUrl&)>::operator() (urlReady=..., __closure=<optimized out>) at ./lib/contextmanager.cpp:135
#9  QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<const QUrl&>, void, Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#10 QtPrivate::Functor<Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)>, 1>::call<QtPrivate::List<QUrl const&>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#11 QtPrivate::QFunctorSlotObject<Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)>, 1, QtPrivate::List<const QUrl&>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:439
#12 0x00007f5f63456fe7 in QtPrivate::QSlotObjectBase::call (a=0x7fff5576c210, r=0x7f5f67b52170 <Gwenview::DocumentFactory::instance()::factory>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#13 doActivate<false> (sender=0x7f5f67b52170 <Gwenview::DocumentFactory::instance()::factory>, signal_index=6, argv=0x7fff5576c210) at kernel/qobject.cpp:3870
#14 0x00007f5f634518a2 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f5f67b4dd80 <Gwenview::DocumentFactory::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff5576c210) at kernel/qobject.cpp:3930
#15 0x00007f5f678f9865 in Gwenview::DocumentFactory::readyForDirListerStart (this=<optimized out>, _t1=...) at ./obj-x86_64-linux-gnu/lib/gwenviewlib_autogen/DV7UALDUNI/moc_documentfactory.cpp:209
#16 0x00007f5f63456fe7 in QtPrivate::QSlotObjectBase::call (a=0x7fff5576c320, r=0x55bcd58ac750, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#17 doActivate<false> (sender=0x55bcd58ac750, signal_index=7, argv=0x7fff5576c320) at kernel/qobject.cpp:3870
#18 0x00007f5f634518a2 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f5f67b4de00 <Gwenview::Document::staticMetaObject>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x7fff5576c320) at kernel/qobject.cpp:3930
#19 0x00007f5f678f96c5 in Gwenview::Document::loaded (this=<optimized out>, _t1=...) at ./obj-x86_64-linux-gnu/lib/gwenviewlib_autogen/DV7UALDUNI/moc_document.cpp:315
#20 0x00007f5f63456fe7 in QtPrivate::QSlotObjectBase::call (a=0x7fff5576c3e0, r=0x55bcd58ac750, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#21 doActivate<false> (sender=0x55bcd58b7c60, signal_index=5, argv=0x7fff5576c3e0) at kernel/qobject.cpp:3870
#22 0x00007f5f634518a2 in QMetaObject::activate (sender=sender@entry=0x55bcd58b7c60, m=m@entry=0x7f5f67b4de40 <Gwenview::AbstractDocumentImpl::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x0) at kernel/qobject.cpp:3930
#23 0x00007f5f678f9063 in Gwenview::AbstractDocumentImpl::loaded (this=this@entry=0x55bcd58b7c60) at ./obj-x86_64-linux-gnu/lib/gwenviewlib_autogen/DV7UALDUNI/moc_abstractdocumentimpl.cpp:201
#24 0x00007f5f67845633 in Gwenview::DocumentLoadedImpl::init (this=0x55bcd58b7c60) at ./lib/document/documentloadedimpl.cpp:68
#25 0x00007f5f678369af in Gwenview::Document::switchToImpl (this=0x55bcd58ac750, impl=impl@entry=0x55bcd58b7c60) at ./lib/document/document.cpp:254
#26 0x00007f5f67835a3c in Gwenview::AbstractDocumentImpl::switchToImpl (this=this@entry=0x55bcd58b0290, impl=impl@entry=0x55bcd58b7c60) at ./lib/document/abstractdocumentimpl.cpp:58
#27 0x00007f5f67845eaa in Gwenview::LoadingDocumentImpl::slotImageLoaded (this=0x55bcd58b0290) at ./lib/document/loadingdocumentimpl.cpp:555
#28 0x00007f5f63456fe7 in QtPrivate::QSlotObjectBase::call (a=0x7fff5576c640, r=0x55bcd58b0290, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#29 doActivate<false> (sender=0x55bcd5860e58, signal_index=4, argv=0x7fff5576c640) at kernel/qobject.cpp:3870
#30 0x00007f5f63237743 in QFutureWatcherBase::event (this=<optimized out>, event=0x7f5f340021d0) at thread/qfuturewatcher.cpp:334
#31 0x00007f5f64cfd8bc in QApplicationPrivate::notify_helper (this=this@entry=0x55bcd537fd10, receiver=receiver@entry=0x55bcd5860e58, e=e@entry=0x7f5f340021d0) at kernel/qapplication.cpp:3684
#32 0x00007f5f64d04ac0 in QApplication::notify (this=0x7fff5576cce0, receiver=0x55bcd5860e58, e=0x7f5f340021d0) at kernel/qapplication.cpp:3430
#33 0x00007f5f6341bdb8 in QCoreApplication::notifyInternal2 (receiver=0x55bcd5860e58, event=0x7f5f340021d0) at kernel/qcoreapplication.cpp:1092
#34 0x00007f5f6341bf8e in QCoreApplication::sendEvent (receiver=receiver@entry=0x55bcd5860e58, event=event@entry=0x7f5f340021d0) at kernel/qcoreapplication.cpp:1487
#35 0x00007f5f6341ea31 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55bcd53752f0) at kernel/qcoreapplication.cpp:1832
#36 0x00007f5f6341efc8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1691
#37 0x00007f5f6347ba13 in postEventSourceDispatch (s=0x55bcd53ca840) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007f5f5ada1417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f5f5ada1650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f5f5ada16dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f5f6347b0bc in QEventDispatcherGlib::processEvents (this=0x55bcd53db4f0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#42 0x00007f5f6341a63a in QEventLoop::exec (this=this@entry=0x7fff5576cbe0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#43 0x00007f5f63423db0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1400
#44 0x000055bcd412a7ff in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:168

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

Possible duplicates by query: bug 417171, bug 383702, bug 382542, bug 344511, bug 334308.

Reported using DrKonqi
Comment 1 Christoph Feck 2020-04-01 11:21:18 UTC

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