Bug 192976 - Dolphin crashes when canceling a file conflicts(alredy exists) dialog
Summary: Dolphin crashes when canceling a file conflicts(alredy exists) dialog
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: general (show other bugs)
Version: 4.2.0
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 181010 191496 192555 193740 194810 199532 201916 206008 206861 211799 212134 212363 214401 214477 215257 215484 215654 216390 216696 216994 217713 218413 219406 219410 219459 221232 221242 221767 223247 224613 225234 225370 227209 228121 228349 229541 230249 230850 231056 231439 232943 244905 249989 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-17 11:27 UTC by Artem
Modified: 2012-05-12 19:08 UTC (History)
45 users (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 Artem 2009-05-17 11:27:36 UTC
Version:           1.2.1 (using KDE 4.2.2)
Compiler:          gcc version 4.3.3 (Debian 4.3.3-9) Target: x86_64-linux-gnu
OS:                Linux
Installed from:    Debian testing/unstable Packages

If you copy with name conflict dolphin stops and ask you what to do. If in this moment you cancel copying in notification window (that appeared),
then pressing "cancel" in dolphin dialog crashe it.

Bugtrace:
Application: Dolphin (dolphin), signal SIGSEGV
0x00007f23363ef831 in nanosleep () from /lib/libc.so.6
Current language:  auto; currently c
[Current thread is 0 (LWP 5178)]

Thread 2 (Thread 0x7f2329768950 (LWP 5181)):
#0  0x00007f2336418af2 in select () from /lib/libc.so.6
#1  0x00007f2336ae6936 in QProcessManager::run (this=0x2362910) at io/qprocess_unix.cpp:305
#2  0x00007f2336a1f742 in QThreadPrivate::start (arg=0x2362910) at thread/qthread_unix.cpp:189
#3  0x00007f23325fffaa in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f233641f29d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2339bbd760 (LWP 5178)):
[KCrash Handler]
#5  0x00007f2336b16444 in QObject::killTimer (this=0x3177848, id=0) at kernel/qobject.cpp:1521
#6  0x00007f2336b229c3 in QTimer::setInterval (this=0x3177848, msec=200) at kernel/qtimer.cpp:362
#7  0x00007f2336b22ab9 in QTimer::start (this=0x3177848, msec=0) at kernel/qtimer.cpp:214
#8  0x00007f23396dfb07 in KIO::CopyJobPrivate::slotResultConflictCopyingFiles (this=0x27b66a0, job=0x25c5650) at ../../kio/kio/copyjob.cpp:1212
#9  0x00007f23396dc194 in KIO::CopyJob::qt_metacall (this=0x30af930, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff41cfcf90) at ./copyjob.moc:114
#10 0x00007f2336b1d862 in QMetaObject::activate (sender=0x25c5650, from_signal_index=<value optimized out>, to_signal_index=7, argv=0x0) at kernel/qobject.cpp:3120
#11 0x00007f2337dade92 in KJob::result (this=0x3177848, _t1=0x25c5650) at ./kjob.moc:186
#12 0x00007f2337dae20f in KJob::emitResult (this=0x25c5650) at ../../kdecore/jobs/kjob.cpp:294
#13 0x00007f233970cc10 in KIO::SimpleJob::slotFinished (this=0x25c5650) at ../../kio/kio/job.cpp:489
#14 0x00007f233970d0d2 in KIO::StatJob::slotFinished (this=0x25c5650) at ../../kio/kio/job.cpp:841
#15 0x00007f233970ac0d in KIO::StatJob::qt_metacall (this=0x25c5650, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff41cfd270) at ./jobclasses.moc:229
#16 0x00007f2336b1d862 in QMetaObject::activate (sender=0x2597550, from_signal_index=<value optimized out>, to_signal_index=8, argv=0x0) at kernel/qobject.cpp:3120
#17 0x00007f23397c4461 in KIO::SlaveInterface::dispatch (this=0x2597550, _cmd=104, rawdata=<value optimized out>) at ../../kio/kio/slaveinterface.cpp:175
#18 0x00007f23397c0fb2 in KIO::SlaveInterface::dispatch (this=0x2597550) at ../../kio/kio/slaveinterface.cpp:91
#19 0x00007f23397b21b3 in KIO::Slave::gotInput (this=0x2597550) at ../../kio/kio/slave.cpp:322
#20 0x00007f23397b44b8 in KIO::Slave::qt_metacall (this=0x2597550, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff41cfd690) at ./slave.moc:75
#21 0x00007f2336b1d862 in QMetaObject::activate (sender=0x28e7b30, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3120
#22 0x00007f23396d8821 in KIO::ConnectionPrivate::dequeue (this=0x24285d0) at ../../kio/kio/connection.cpp:82
#23 0x00007f23396d8c7a in KIO::Connection::qt_metacall (this=0x28e7b30, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x26c45d0) at ./connection.moc:72
#24 0x00007f2336b17eb8 in QObject::event (this=0x28e7b30, e=0x314c3e0) at kernel/qobject.cpp:1118
#25 0x00007f2336fd64fd in QApplicationPrivate::notify_helper (this=0x2358320, receiver=0x28e7b30, e=0x314c3e0) at kernel/qapplication.cpp:4057
#26 0x00007f2336fde77a in QApplication::notify (this=0x7fff41cfe0e0, receiver=0x28e7b30, e=0x314c3e0) at kernel/qapplication.cpp:4022
#27 0x00007f233834a55b in KApplication::notify (this=0x7fff41cfe0e0, receiver=0x28e7b30, event=0x314c3e0) at ../../kdeui/kernel/kapplication.cpp:307
#28 0x00007f2336b07e4c in QCoreApplication::notifyInternal (this=0x7fff41cfe0e0, receiver=0x28e7b30, event=0x314c3e0) at kernel/qcoreapplication.cpp:610
#29 0x00007f2336b08aba in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2332de0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#30 0x00007f2336b31833 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#31 0x00007f233284df7a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x00007f2332851640 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x00007f23328517dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0x00007f2336b314bf in QEventDispatcherGlib::processEvents (this=0x2338250, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#35 0x00007f233706ec7f in QGuiEventDispatcherGlib::processEvents (this=0x3177848, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#36 0x00007f2336b066f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1104142352}) at kernel/qeventloop.cpp:149
#37 0x00007f2336b06abd in QEventLoop::exec (this=0x7fff41cfe050, flags={i = 1104142432}) at kernel/qeventloop.cpp:200
#38 0x00007f2336b08d84 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#39 0x000000000044216d in main (argc=5, argv=0x7fff41cfe5c8) at ../../../../apps/dolphin/src/main.cpp:94
Comment 1 Dario Andres 2009-05-17 16:17:59 UTC
The backtrace seems the same as bug 191496. Thanks
Comment 2 Dario Andres 2009-05-23 14:41:11 UTC
*** Bug 193740 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-05-23 14:42:14 UTC
*** Bug 181010 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-05-23 14:45:12 UTC
*** Bug 191496 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-06-07 15:18:59 UTC
*** Bug 181010 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2009-07-29 20:40:39 UTC
*** Bug 201916 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-09-03 01:34:23 UTC
*** Bug 206008 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-09-09 18:00:02 UTC
*** Bug 206861 has been marked as a duplicate of this bug. ***
Comment 9 Frank Reininghaus 2009-10-25 21:07:01 UTC
*** Bug 211799 has been marked as a duplicate of this bug. ***
Comment 10 Frank Reininghaus 2009-10-28 09:27:08 UTC
*** Bug 212134 has been marked as a duplicate of this bug. ***
Comment 11 Frank Reininghaus 2009-10-30 10:19:49 UTC
*** Bug 212363 has been marked as a duplicate of this bug. ***
Comment 12 Frank Reininghaus 2009-11-13 16:48:08 UTC
*** Bug 214401 has been marked as a duplicate of this bug. ***
Comment 13 Björn Ruberg 2009-11-27 22:37:41 UTC
This probably happens because KIO::CopyJobPrivate::slotResultConflictCopyingFiles() waits for user input  in the conflicht resolving dialog. But during the wait the job object is deleted. After the user clicks away the window the slotResultConflictCopyingFiles() method tries to work on a deleted object. That of course creates a segfault.

Two ways of solving that: Insert a check whether the object still exists before line 1262 in copyjob.cpp (probably ugly) or clean up the stuff in the destructor. I don't know how to do both clean. So perhaps a more experienced developer can quickly close this bug after this hint?
Comment 14 David Faure 2009-11-27 22:57:24 UTC
SVN commit 1055385 by dfaure:

Fix crash when killing a job while a rename or skip dialog for it is shown.
In kde3 we were hiding the progress dialog while the modal dialog was up,
in kde4 it's easier to just cancel the dialog when killing the job.
BUG: 192976


 M  +3 -1      jobuidelegate.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1055385
Comment 15 David Faure 2009-11-27 22:58:16 UTC
SVN commit 1055386 by dfaure:

Backport: fix crash when killing a job while a rename or skip dialog for it is shown.
Fixed for: 4.3.4
CCBUG: 192976


 M  +3 -1      jobuidelegate.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1055386
Comment 16 David Faure 2009-11-28 01:14:53 UTC
*** Bug 199532 has been marked as a duplicate of this bug. ***
Comment 17 Frank Reininghaus 2009-11-28 12:31:06 UTC
*** Bug 194810 has been marked as a duplicate of this bug. ***
Comment 18 Frank Reininghaus 2009-11-28 12:32:51 UTC
*** Bug 215654 has been marked as a duplicate of this bug. ***
Comment 19 Frank Reininghaus 2009-12-01 23:36:19 UTC
*** Bug 216994 has been marked as a duplicate of this bug. ***
Comment 20 Frank Reininghaus 2009-12-07 21:39:16 UTC
*** Bug 217713 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2009-12-12 22:54:31 UTC
Mh, it seems the fix missed 4.3.4 by some revisions....
Comment 22 Dario Andres 2009-12-12 22:54:33 UTC
*** Bug 218413 has been marked as a duplicate of this bug. ***
Comment 23 David Faure 2009-12-14 16:00:21 UTC
*** Bug 215484 has been marked as a duplicate of this bug. ***
Comment 24 David Faure 2009-12-14 16:01:22 UTC
*** Bug 214477 has been marked as a duplicate of this bug. ***
Comment 25 Dario Andres 2009-12-14 19:56:58 UTC
*** Bug 215257 has been marked as a duplicate of this bug. ***
Comment 26 David Faure 2009-12-18 11:35:33 UTC
*** Bug 216390 has been marked as a duplicate of this bug. ***
Comment 27 David Faure 2009-12-18 13:52:39 UTC
*** Bug 216696 has been marked as a duplicate of this bug. ***
Comment 28 Tommi Tervo 2009-12-20 11:45:07 UTC
*** Bug 219406 has been marked as a duplicate of this bug. ***
Comment 29 Frank Reininghaus 2009-12-20 13:14:24 UTC
*** Bug 219410 has been marked as a duplicate of this bug. ***
Comment 30 David Faure 2009-12-21 12:18:43 UTC
*** Bug 219459 has been marked as a duplicate of this bug. ***
Comment 31 Jonathan Thomas 2010-01-04 15:16:29 UTC
*** Bug 221242 has been marked as a duplicate of this bug. ***
Comment 32 Dario Andres 2010-01-05 13:08:13 UTC
*** Bug 221232 has been marked as a duplicate of this bug. ***
Comment 33 Dario Andres 2010-01-08 14:09:32 UTC
*** Bug 221767 has been marked as a duplicate of this bug. ***
Comment 34 Dario Andres 2010-01-18 12:24:07 UTC
*** Bug 223247 has been marked as a duplicate of this bug. ***
Comment 35 Dario Andres 2010-02-04 02:26:48 UTC
*** Bug 225370 has been marked as a duplicate of this bug. ***
Comment 36 Dario Andres 2010-02-05 16:09:18 UTC
*** Bug 225234 has been marked as a duplicate of this bug. ***
Comment 37 Dario Andres 2010-02-16 22:04:22 UTC
*** Bug 227209 has been marked as a duplicate of this bug. ***
Comment 38 Frank Reininghaus 2010-02-23 11:46:23 UTC
*** Bug 228121 has been marked as a duplicate of this bug. ***
Comment 39 Frank Reininghaus 2010-02-24 19:04:08 UTC
*** Bug 228349 has been marked as a duplicate of this bug. ***
Comment 40 Frank Reininghaus 2010-03-05 17:47:07 UTC
*** Bug 229541 has been marked as a duplicate of this bug. ***
Comment 41 Frank Reininghaus 2010-03-12 16:56:37 UTC
*** Bug 230249 has been marked as a duplicate of this bug. ***
Comment 42 Frank Reininghaus 2010-03-15 19:23:23 UTC
*** Bug 230850 has been marked as a duplicate of this bug. ***
Comment 43 Frank Reininghaus 2010-03-17 05:55:04 UTC
*** Bug 231056 has been marked as a duplicate of this bug. ***
Comment 44 Dario Andres 2010-03-20 19:34:08 UTC
*** Bug 231439 has been marked as a duplicate of this bug. ***
Comment 45 Dario Andres 2010-04-01 14:15:10 UTC
*** Bug 232943 has been marked as a duplicate of this bug. ***
Comment 46 Dario Andres 2010-08-07 15:27:53 UTC
*** Bug 244905 has been marked as a duplicate of this bug. ***
Comment 47 Pino Toscano 2010-09-04 01:18:57 UTC
*** Bug 249989 has been marked as a duplicate of this bug. ***
Comment 48 Dario Andres 2010-11-21 17:56:04 UTC
*** Bug 224613 has been marked as a duplicate of this bug. ***
Comment 49 Dawit Alemayehu 2012-05-12 19:08:10 UTC
*** Bug 192555 has been marked as a duplicate of this bug. ***