Bug 402665 - Dolphin error when save file from loaded on FTP
Summary: Dolphin error when save file from loaded on FTP
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git master
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: drkonqi
: 403063 403084 403206 403213 403218 403257 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-28 19:11 UTC by Nicolas
Modified: 2019-02-08 13:19 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (11.63 KB, text/plain)
2019-01-14 12:06 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas 2018-12-28 19:11:11 UTC
Application: dolphin (18.12.0)

Qt Version: 5.11.2
Frameworks Version: 5.54.0
Operating System: Linux 4.15.0-43-generic x86_64
Distribution: KDE neon Developer Edition

-- Information about the crash:
- What I was doing when the application crashed:
I have many ftp connection on my dolphin.

I open files, and modify etc.
when save using visual studio code. for example.
some times, it save without problems.

but after many time working arround the same files, etc.
the problem is going to show me again.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Dolphin (dolphin), signal: Floating point exception
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7efed3da3800 (LWP 16005))]

Thread 3 (Thread 0x7efea8e22700 (LWP 16009)):
#0  0x00007efed3626bf9 in __GI___poll (fds=0x7efea40049b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007efec5e54539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007efec5e5464c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007efecd7ed04b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007efecd79130a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007efecd5bcbba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007efecd5c7adb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007efec823c6db in start_thread (arg=0x7efea8e22700) at pthread_create.c:463
#8  0x00007efed363388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7efeb8dd1700 (LWP 16008)):
#0  0x00007efec5e9a064 in g_mutex_unlock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007efec5e53427 in g_main_context_acquire () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007efec5e543f5 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007efec5e5464c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007efecd7ed04b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007efecd79130a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007efecd5bcbba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007efecdc33e45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007efecd5c7adb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007efec823c6db in start_thread (arg=0x7efeb8dd1700) at pthread_create.c:463
#10 0x00007efed363388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7efed3da3800 (LWP 16005)):
[KCrash Handler]
#6  0x00007efed1d541fd in KIO::SlaveInterface::calcSpeed() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#7  0x00007efecd7c218f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007efecd7cee47 in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007efecd7cf1a8 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007efecd7c2b9b in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007efece7aee1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007efece7b63ef in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007efecd792fe8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007efecd7ec4be in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007efecd7ecc81 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007efec5e54387 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007efec5e545c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007efec5e5464c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007efecd7ed02f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007efebe9b5761 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#21 0x00007efecd79130a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007efecd79a4d0 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007efed39473f1 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
#24 0x00007efed3533b97 in __libc_start_main (main=0x564bf7a8f720, argc=1, argv=0x7ffcaa900e08, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcaa900df8) at ../csu/libc-start.c:310
#25 0x0000564bf7a8f75a in _start ()

Possible duplicates by query: bug 324860.

Reported using DrKonqi
Comment 1 Kai Uwe Broulik 2019-01-10 12:51:30 UTC
*** Bug 403063 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2019-01-12 08:05:27 UTC
Git commit cd2f67c39b25de026390bfe2bc1c7aa269f78ccb by David Edmundson.
Committed on 12/01/2019 at 08:05.
Pushed by davidedmundson into branch 'master'.

Fix elapsed time check

Summary:
To match the code it was refactored from it should be checking the code
since the last time we checked calcSpeed, not since the job started.

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D18158

M  +3    -1    src/core/slaveinterface.cpp

https://commits.kde.org/kio/cd2f67c39b25de026390bfe2bc1c7aa269f78ccb
Comment 3 Elvis Angelaccio 2019-01-12 11:53:52 UTC
*** Bug 403084 has been marked as a duplicate of this bug. ***
Comment 4 David Edmundson 2019-01-14 11:46:16 UTC
Patch seems to fix it. 
It's not in 5.54.0
Comment 5 Andreas Sturmlechner 2019-01-14 12:06:15 UTC
Created attachment 117456 [details]
New crash information added by DrKonqi

dolphin (18.12.1) using Qt 5.11.3

This crash was reproduced again with the patch from commit cd2f67c39b25de026390bfe2bc1c7aa269f78ccb included.

-- Backtrace (Reduced):
#6  0x00007f85d11f4b82 in KIO::SlaveInterface::calcSpeed (this=0x55cad3ffac60) at /var/tmp/portage/kde-frameworks/kio-5.54.0/work/kio-5.54.0/src/core/slaveinterface.cpp:115
#7  0x00007f85d11f6fd0 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KIO::SlaveInterface::*)()>::call(void (KIO::SlaveInterface::*)(), KIO::SlaveInterface*, void**) (arg=<optimized out>, o=<optimized out>, f=<optimized out>) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:166
#8  QtPrivate::FunctionPointer<void (KIO::SlaveInterface::*)()>::call<QtPrivate::List<>, void>(void (KIO::SlaveInterface::*)(), KIO::SlaveInterface*, void**) (arg=<optimized out>, o=<optimized out>, f=<optimized out>) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:167
#9  QtPrivate::QSlotObject<void (KIO::SlaveInterface::*)(), QtPrivate::List<>, 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/qt5/QtCore/qobjectdefs_impl.h:396
#10 0x00007f85cd2cc600 in QtPrivate::QSlotObjectBase::call (a=0x7ffee72eaf90, r=0x55cad3ffac60, this=0x55cad4011e00) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
Comment 6 Fabian Vogt 2019-01-14 12:39:22 UTC
Git commit b8a5f34b34b6c4e37684fe2782b8cf39c38cd928 by Fabian Vogt.
Committed on 14/01/2019 at 12:38.
Pushed by fvogt into branch 'master'.

Revert "Refactor SlaveInterface::calcSpeed"

This reverts commit 4e2a815b9a107663a3d75e9d9d1be336adea888e.
This commit causes crashes due to improper division and there are some
outstanding code review issues as well.

M  +31   -17   src/core/slaveinterface.cpp
M  +8    -11   src/core/slaveinterface_p.h

https://commits.kde.org/kio/b8a5f34b34b6c4e37684fe2782b8cf39c38cd928
Comment 7 Julian Steinmann 2019-01-14 18:00:13 UTC
*** Bug 403206 has been marked as a duplicate of this bug. ***
Comment 8 Kai Uwe Broulik 2019-01-15 07:47:30 UTC
*** Bug 403213 has been marked as a duplicate of this bug. ***
Comment 9 Kai Uwe Broulik 2019-01-15 07:48:43 UTC
*** Bug 403218 has been marked as a duplicate of this bug. ***
Comment 10 Christoph Feck 2019-02-08 13:19:45 UTC
*** Bug 403257 has been marked as a duplicate of this bug. ***