Bug 229156

Summary: KTorrent crashed when I wanted to change the download directory for a new torrent
Product: [Unmaintained] kdelibs Reporter: Daniel Hahler <kde-bugzilla>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: justin.zobel, kde-bugzilla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Daniel Hahler 2010-03-02 18:13:23 UTC
Application: ktorrent (3.3.3)
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-14-generic i686
Distribution: Ubuntu lucid (development branch)

-- Information about the crash:
I've opened a .torrent file from another application and KTorrent came up, asking me where I want to put the files.
I've clicked the directory choser next to the path and KTorrent crashed (I'm not sure if it crashed there already or later in the directory picker).

Normally, this works OK.

(I've restarted KTorrent and the torrent was added, but not started. Of course, the download directory was probably the default one, so I've changed that manually before starting the torrent.)

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0xb787b760 (LWP 28188))]

Thread 6 (Thread 0xb5b0fb70 (LWP 28199)):
#0  0x00d8d832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00c708f1 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x00b19d9c in ?? () from /usr/lib/libbtcore.so.12
#3  0x086b632e in QThreadPrivate::start (arg=0x9c27a18) at thread/qthread_unix.cpp:248
#4  0x0061396e in start_thread (arg=0xb5b0fb70) at pthread_create.c:300
#5  0x00c7792e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xb6310b70 (LWP 28345)):
#0  0x0172be16 in *__GI_clock_gettime (clock_id=24313844, tp=0xb630ff68) at ../sysdeps/unix/clock_gettime.c:100
#1  0x087e15bb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x087e66e5 in QTimerInfoList::updateCurrentTime (this=0xa8bf434) at kernel/qeventdispatcher_unix.cpp:340
#3  0x087e672a in QTimerInfoList::timerWait (this=0xa8bf434, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x087e46d8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb631007c) at kernel/qeventdispatcher_glib.cpp:136
#5  0x087e4765 in timerSourcePrepare (source=0x0, timeout=0x172fff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0x077aa2ea in IA__g_main_context_prepare (context=0xa8beb00, priority=0xb63100fc) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:2280
#7  0x077aa709 in g_main_context_iterate (context=0xa8beb00, block=<value optimized out>, dispatch=1, self=0xa8bf680) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:2571
#8  0x077aacc8 in IA__g_main_context_iteration (context=0xa8beb00, may_block=1) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:2654
#9  0x087e44cf in QEventDispatcherGlib::processEvents (this=0xa8bb030, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#10 0x087b6ef9 in QEventLoop::processEvents (this=0xb6310240, flags=) at kernel/qeventloop.cpp:149
#11 0x087b734a in QEventLoop::exec (this=0xb6310240, flags=...) at kernel/qeventloop.cpp:201
#12 0x086b35a8 in QThread::exec (this=0xa8b9ca8) at thread/qthread.cpp:487
#13 0x08796b1b in QInotifyFileSystemWatcherEngine::run (this=0xa8b9ca8) at io/qfilesystemwatcher_inotify.cpp:248
#14 0x086b632e in QThreadPrivate::start (arg=0xa8b9ca8) at thread/qthread_unix.cpp:248
#15 0x0061396e in start_thread (arg=0xb6310b70) at pthread_create.c:300
#16 0x00c7792e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xae433b70 (LWP 28381)):
#0  0x00d8d832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00c336e6 in gettimeofday () at ../sysdeps/unix/syscall-template.S:82
#2  0x00aa1d06 in bt::Now() () from /usr/lib/libbtcore.so.12
#3  0x00ab6e0a in ?? () from /usr/lib/libbtcore.so.12
#4  0x00ab7858 in ?? () from /usr/lib/libbtcore.so.12
#5  0x086b632e in QThreadPrivate::start (arg=0x9c05080) at thread/qthread_unix.cpp:248
#6  0x0061396e in start_thread (arg=0xae433b70) at pthread_create.c:300
#7  0x00c7792e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xadc32b70 (LWP 28382)):
#0  0x00d8d832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00618015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x086b7287 in QWaitConditionPrivate::wait (this=0x9c05418, mutex=0x9c0541c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x9c05418, mutex=0x9c0541c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x00ab6529 in ?? () from /usr/lib/libbtcore.so.12
#5  0x00ab7858 in ?? () from /usr/lib/libbtcore.so.12
#6  0x086b632e in QThreadPrivate::start (arg=0x9c053e0) at thread/qthread_unix.cpp:248
#7  0x0061396e in start_thread (arg=0xadc32b70) at pthread_create.c:300
#8  0x00c7792e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xad431b70 (LWP 28383)):
#0  0x00d8d832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00618015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x086b7287 in QWaitConditionPrivate::wait (this=0xacf251c, mutex=0xacf2518, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0xacf251c, mutex=0xacf2518, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x00abad3a in ?? () from /usr/lib/libbtcore.so.12
#5  0x086b632e in QThreadPrivate::start (arg=0xacf2510) at thread/qthread_unix.cpp:248
#6  0x0061396e in start_thread (arg=0xad431b70) at pthread_create.c:300
#7  0x00c7792e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb787b760 (LWP 28188)):
[KCrash Handler]
#7  0x00377dae in KConfigGroup::readCheck<bool> (dir=..., filter=..., parent=0xbff3ffd4, caption=..., options=..., selectedFilter=0xb788c550) at ../../kdecore/config/kconfiggroup.h:720
#8  KConfigGroup::readEntry<bool> (dir=..., filter=..., parent=0xbff3ffd4, caption=..., options=..., selectedFilter=0xb788c550) at ../../kdecore/config/kconfiggroup.h:249
#9  KFileDialogPrivate::isNative (dir=..., filter=..., parent=0xbff3ffd4, caption=..., options=..., selectedFilter=0xb788c550) at ../../kio/kfile/kfiledialog.cpp:221
#10 KFileDialogPrivate::getSaveFileName (dir=..., filter=..., parent=0xbff3ffd4, caption=..., options=..., selectedFilter=0xb788c550) at ../../kio/kfile/kfiledialog.cpp:724
#11 0x003bdc9b in KUrlRequester::KUrlRequesterPrivate::url (this=0xa5d3410) at ../../kio/kfile/kurlrequester.cpp:162
#12 KUrlRequester::KUrlRequesterPrivate::_k_slotOpenDialog (this=0xa5d3410) at ../../kio/kfile/kurlrequester.cpp:338
#13 0x003be60e in ~KUrlDragPushButton (this=0xb, __in_chrg=<value optimized out>) at ../../kio/kfile/kurlrequester.cpp:45
#14 0x087bdb3a in QMetaObject::metacall (object=0xaf64e30, cl=3220438996, idx=-1074527928, argv=0x0) at kernel/qmetaobject.cpp:237
#15 0x087cc285 in QMetaObject::activate (sender=0xb053720, m=0x371c8c4, local_signal_index=2, argv=0xbff40148) at kernel/qobject.cpp:3293
#16 0x0350c389 in QAbstractButton::clicked (this=0xb053720, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#17 0x031ebe29 in QAbstractButtonPrivate::emitClicked (this=0xafcec50) at widgets/qabstractbutton.cpp:546
#18 0x031ecc74 in QAbstractButtonPrivate::click (this=0xafcec50) at widgets/qabstractbutton.cpp:539
#19 0x031ecf2e in QAbstractButton::mouseReleaseEvent (this=0xb053720, e=0xbff40880) at widgets/qabstractbutton.cpp:1121
#20 0x02e3f728 in QWidget::event (this=0xb053720, event=0xbff40880) at kernel/qwidget.cpp:7998
#21 0x031ebcce in QAbstractButton::event (this=0xb053720, e=0xcfb3c0) at widgets/qabstractbutton.cpp:1080
#22 0x032960c2 in QPushButton::event (this=0xb053720, e=0xbff40880) at widgets/qpushbutton.cpp:679
#23 0x02de14dc in QApplicationPrivate::notify_helper (this=0x9c320c8, receiver=0xb053720, e=0xbff40880) at kernel/qapplication.cpp:4300
#24 0x02de89d7 in QApplication::notify (this=0xbff42194, receiver=0xb053720, e=0xbff40880) at kernel/qapplication.cpp:3865
#25 0x00f89b2a in KApplication::xErrhandler (this=0xbff42194, dpy=0xb053720, err_=0xbff40880) at ../../kdeui/kernel/kapplication.cpp:421
#26 0x087b88db in QCoreApplication::notifyInternal (this=0xbff42194, receiver=0xb053720, event=0xbff40880) at kernel/qcoreapplication.cpp:704
#27 0x02de7932 in QCoreApplication::sendEvent (receiver=0xb053720, event=0xbff40880, alienWidget=0xb053720, nativeWidget=0xbff41164, buttonDown=0x3725058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QApplicationPrivate::sendMouseEvent (receiver=0xb053720, event=0xbff40880, alienWidget=0xb053720, nativeWidget=0xbff41164, buttonDown=0x3725058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#29 0x02e72f78 in QETWidget::translateMouseEvent (this=0xbff41164, event=0xbff40d9c) at kernel/qapplication_x11.cpp:4368
#30 0x02e724b1 in QApplication::x11ProcessEvent (this=0xbff42194, event=0xbff40d9c) at kernel/qapplication_x11.cpp:3379
#31 0x02ea138a in x11EventSourceDispatch (s=0x9c3bb40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x077a6e05 in g_main_dispatch (context=0x9c3b090) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:1960
#33 IA__g_main_context_dispatch (context=0x9c3b090) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:2513
#34 0x077aab08 in g_main_context_iterate (context=0x9c3b090, block=<value optimized out>, dispatch=1, self=0x9c26fb0) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:2591
#35 0x077aacc8 in IA__g_main_context_iteration (context=0x9c3b090, may_block=1) at /build/buildd/glib2.0-2.23.4/glib/gmain.c:2654
#36 0x087e4495 in QEventDispatcherGlib::processEvents (this=0x9c03ef8, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#37 0x02ea0eb5 in QGuiEventDispatcherGlib::processEvents (this=0x9c03ef8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x087b6ef9 in QEventLoop::processEvents (this=0xbff41090, flags=) at kernel/qeventloop.cpp:149
#39 0x087b734a in QEventLoop::exec (this=0xbff41090, flags=...) at kernel/qeventloop.cpp:201
#40 0x033203d3 in QDialog::exec (this=0xbff41164) at dialogs/qdialog.cpp:546
#41 0x0806b40e in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2010-08-30 22:25:48 UTC
> #25 0x00f89b2a in KApplication::xErrhandler

I have no idea why this one appears in the backtrace. Why does this function call QApplication::notify() ?
Comment 2 Daniel Hahler 2010-11-04 20:15:49 UTC
Created attachment 53136 [details]
New crash information added by DrKonqi

ktorrent (4.0.3) on KDE Platform 4.5.3 (KDE 4.5.3) using Qt 4.7.0

I right-clicked "Move data" this time, and KTorrent (4.0.3 from Ubuntu) crashed like before in a similar situation (when setting the download directory).

-- Backtrace (Reduced):
#7  0xb7423cce in readCheck<bool> (directory=...) at ../../kdecore/config/kconfiggroup.h:720
#8  readEntry<bool> (directory=...) at ../../kdecore/config/kconfiggroup.h:249
#9  isNative (directory=...) at ../../kio/kfile/kfiledialog.cpp:221
#10 KFileDialog::setStartDir (directory=...) at ../../kio/kfile/kfiledialog.cpp:952
#11 0x080d048b in kt::View::moveData (this=0xee85e20) at ../../ktorrent/view/view.cpp:340
Comment 3 Daniel Hahler 2010-11-04 20:17:04 UTC
> > #25 0x00f89b2a in KApplication::xErrhandler
> I have no idea why this one appears in the backtrace. Why does this function
> call QApplication::notify() ?

I do not know, maybe this is caused by some Ubuntu patch? I have submitted another crash (see above).

Now I will be using 4.0.4 backported from Debian.
Comment 4 Christoph Feck 2010-11-21 02:34:13 UTC
Daniel, please report a new bug for KTorrent for comment #2. The backtrace is completely different from this bug.
Comment 5 Justin Zobel 2020-12-09 01:34:42 UTC
Thank you for the report, Daniel.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 6 Bug Janitor Service 2020-12-24 04:34:28 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 7 Bug Janitor Service 2021-01-08 04:33:59 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!