Bug 320771 - ktorrent segmentation fault
Summary: ktorrent segmentation fault
Status: RESOLVED DUPLICATE of bug 254748
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.10.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 15:05 UTC by John Aylward
Modified: 2013-07-12 01:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Aylward 2013-06-05 15:05:06 UTC
Application: ktorrent (4.3.1)
KDE Platform Version: 4.10.3 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.13-gentoo x86_64
Distribution: "NAME=Gentoo"

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

I was going to move a completed torrent to a new location. ktorrent crashed before the file dialog appeared, but after I selected "Move Data" from the context menu.

I was also in the process of installing new KDE libraries (upgrade from kde 4.10.2 to 4.10.3) so it could be related to a mismatch of libraries at an inoportune time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7c06f637c0 (LWP 4262))]

Thread 5 (Thread 0x7f7bfb691700 (LWP 4266)):
#0  0x00007fff1cfff60c in ?? ()
#1  0x00007fff1cfff8ac in clock_gettime ()
#2  0x0000003a8a90247d in clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#3  0x00007f7c08619884 in do_gettime (frac=0x7f7bfb690b58, sec=0x7f7bfb690b50) at tools/qelapsedtimer_unix.cpp:123
#4  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#5  0x00007f7c086f2e2d in QTimerInfoList::updateCurrentTime (this=0x7f7bec002660) at kernel/qeventdispatcher_unix.cpp:354
#6  0x00007f7c086f3193 in QTimerInfoList::timerWait (this=0x7f7bec002660, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#7  0x00007f7c086f1b3c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f7bfb690c1c) at kernel/qeventdispatcher_glib.cpp:136
#8  0x0000003a8dc4a389 in g_main_context_prepare (context=0x7f7bec0009a0, priority=0x7f7bfb690c7c) at gmain.c:2836
#9  0x0000003a8dc4ab23 in g_main_context_iterate (context=0x7f7bec0009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3126
#10 0x0000003a8dc4ad0c in g_main_context_iteration (context=0x7f7bec0009a0, may_block=1) at gmain.c:3207
#11 0x00007f7c086f25ce in QEventDispatcherGlib::processEvents (this=0x7f7bec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f7c086c1c52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f7c086c1ed7 in QEventLoop::exec (this=0x7f7bfb690da0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f7c085bfcdf in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f7c085c2d5c in QThreadPrivate::start (arg=0x1cca390) at thread/qthread_unix.cpp:338
#16 0x0000003a8b008fc7 in start_thread (arg=0x7f7bfb691700) at pthread_create.c:308
#17 0x0000003a8a8f04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f7bfbe92700 (LWP 4340)):
#0  0x0000003a8a8e6a6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003a8dc4abf6 in g_main_context_poll (n_fds=1, fds=0x7f7bf4002a40, timeout=-1, context=0x7f7bf40008c0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=0x7f7bf40008c0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3141
#3  0x0000003a8dc4ad0c in g_main_context_iteration (context=0x7f7bf40008c0, may_block=1) at gmain.c:3207
#4  0x00007f7c086f25ce in QEventDispatcherGlib::processEvents (this=0x7f7bf4002800, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f7c086c1c52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f7c086c1ed7 in QEventLoop::exec (this=0x7f7bfbe91da0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f7c085bfcdf in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007f7c085c2d5c in QThreadPrivate::start (arg=0x251b5e0) at thread/qthread_unix.cpp:338
#9  0x0000003a8b008fc7 in start_thread (arg=0x7f7bfbe92700) at pthread_create.c:308
#10 0x0000003a8a8f04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f7bf9862700 (LWP 4384)):
#0  0x0000003a8a8e6a6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f7c0aadc42d in poll (__timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:46
#2  net::Poll::poll (this=0x1b348f0, timeout=<optimized out>) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/poll.cpp:99
#3  0x00007f7c0aad9144 in net::DownloadThread::waitForSocketReady (this=0x1b348e0) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/downloadthread.cpp:128
#4  0x00007f7c0aad9256 in net::DownloadThread::update (this=0x1b348e0) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/downloadthread.cpp:48
#5  0x00007f7c0aad9469 in net::NetworkThread::run (this=0x1b348e0) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/networkthread.cpp:48
#6  0x00007f7c085c2d5c in QThreadPrivate::start (arg=0x1b348e0) at thread/qthread_unix.cpp:338
#7  0x0000003a8b008fc7 in start_thread (arg=0x7f7bf9862700) at pthread_create.c:308
#8  0x0000003a8a8f04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f7bf9061700 (LWP 4385)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f7c085c19d8 in thread_sleep (ti=0x7f7bf9060d60) at thread/qthread_unix.cpp:475
#2  0x00007f7c085c21d0 in QThread::msleep (msecs=<optimized out>) at thread/qthread_unix.cpp:501
#3  0x00007f7c0aad8d10 in update (this=0x1b34cb0) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/uploadthread.cpp:89
#4  net::UploadThread::update (this=0x1b34cb0) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/uploadthread.cpp:43
#5  0x00007f7c0aad9469 in net::NetworkThread::run (this=0x1b34cb0) at /var/tmp/portage/net-libs/libktorrent-1.3.1/work/libktorrent-1.3.1/src/net/networkthread.cpp:48
#6  0x00007f7c085c2d5c in QThreadPrivate::start (arg=0x1b34cb0) at thread/qthread_unix.cpp:338
#7  0x0000003a8b008fc7 in start_thread (arg=0x7f7bf9061700) at pthread_create.c:308
#8  0x0000003a8a8f04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f7c06f637c0 (LWP 4262)):
[KCrash Handler]
#6  0x00007f7c09d663a9 in KFileDialog::getExistingDirectory (startDir=..., parent=0x232fc20, caption=...) at /var/tmp/portage/kde-base/kdelibs-4.10.3-r2/work/kdelibs-4.10.3/kio/kfile/kfiledialog.cpp:639
#7  0x000000000049ac67 in kt::View::moveData (this=0x232fc20) at /var/tmp/portage/net-p2p/ktorrent-4.3.1/work/ktorrent-4.3.1/ktorrent/view/view.cpp:599
#8  0x00007f7c086d72e1 in QMetaObject::activate (sender=0x2923570, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff1cfd0490) at kernel/qobject.cpp:3539
#9  0x00000039b3fd51d2 in QAction::triggered (this=<optimized out>, _t1=<optimized out>) at .moc/release-shared/moc_qaction.cpp:277
#10 0x00000039b3fd5397 in QAction::activate (this=<optimized out>, event=<optimized out>) at kernel/qaction.cpp:1257
#11 0x00000039b4410ba9 in QMenuPrivate::activateCausedStack (this=<optimized out>, causedStack=..., action=<optimized out>, action_e=<optimized out>, self=<optimized out>) at widgets/qmenu.cpp:1038
#12 0x00000039b4416b42 in QMenuPrivate::activateAction (this=<optimized out>, action=<optimized out>, action_e=<optimized out>, self=<optimized out>) at widgets/qmenu.cpp:1130
#13 0x00007f7c09251f25 in KMenu::mouseReleaseEvent (this=0x2cf8420, e=0x7fff1cfd11d0) at /var/tmp/portage/kde-base/kdelibs-4.10.3-r2/work/kdelibs-4.10.3/kdeui/widgets/kmenu.cpp:464
#14 0x00000039b402cbfb in QWidget::event (this=<optimized out>, event=<optimized out>) at kernel/qwidget.cpp:8375
#15 0x00000039b4418093 in QMenu::event (this=<optimized out>, e=<optimized out>) at widgets/qmenu.cpp:2481
#16 0x00000039b3fdb794 in notify_helper (e=<optimized out>, receiver=<optimized out>, this=<optimized out>) at kernel/qapplication.cpp:4562
#17 QApplicationPrivate::notify_helper (this=<optimized out>, receiver=<optimized out>, e=<optimized out>) at kernel/qapplication.cpp:4534
#18 0x00000039b3fe0dbb in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=<optimized out>) at kernel/qapplication.cpp:4105
#19 0x000000000043d951 in kt::App::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at /var/tmp/portage/net-p2p/ktorrent-4.3.1/work/ktorrent-4.3.1/ktorrent/app.cpp:99
#20 0x00007f7c086c31ab in QCoreApplication::notifyInternal (this=0x7fff1cfd1d20, receiver=0x2cf8420, event=0x7fff1cfd11d0) at kernel/qcoreapplication.cpp:946
#21 0x00000039b3fdc722 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QApplicationPrivate::sendMouseEvent (receiver=<optimized out>, event=<optimized out>, alienWidget=<optimized out>, nativeWidget=<optimized out>, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=<error reading variable: Could not find the frame base for "QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)".>) at kernel/qapplication.cpp:3173
#23 0x00000039b4059f53 in QETWidget::translateMouseEvent (this=<optimized out>, event=<optimized out>) at kernel/qapplication_x11.cpp:4450
#24 0x00000039b40586b2 in QApplication::x11ProcessEvent (this=<optimized out>, event=<optimized out>) at kernel/qapplication_x11.cpp:3639
#25 0x00000039b407fe02 in x11EventSourceDispatch (s=<optimized out>, callback=<optimized out>, user_data=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x0000003a8dc4a8fa in g_main_dispatch (context=0x1b64c40) at gmain.c:2539
#27 g_main_context_dispatch (context=0x1b64c40) at gmain.c:3075
#28 0x0000003a8dc4ac58 in g_main_context_iterate (context=0x1b64c40, block=1, dispatch=1, self=<optimized out>) at gmain.c:3146
#29 0x0000003a8dc4ad0c in g_main_context_iteration (context=0x1b64c40, may_block=1) at gmain.c:3207
#30 0x00007f7c086f2576 in QEventDispatcherGlib::processEvents (this=0x1b29b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#31 0x00000039b407fac6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007f7c086c1c52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007f7c086c1ed7 in QEventLoop::exec (this=0x7fff1cfd1cb0, flags=...) at kernel/qeventloop.cpp:204
#34 0x00007f7c086c6dc5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#35 0x000000000042b43e in main (argc=1, argv=0x7fff1cfd2bb8) at /var/tmp/portage/net-p2p/ktorrent-4.3.1/work/ktorrent-4.3.1/ktorrent/main.cpp:186

Reported using DrKonqi
Comment 1 Joris Guisson 2013-07-07 08:17:27 UTC
Crashes in kfiledialog.cpp, doesn't seem to be caused by any ktorrent code, reassigning to kdelibs.
Comment 2 Christoph Feck 2013-07-12 01:32:42 UTC

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