Bug 200344 - KTorrent crash when download bandwidth is set from tray
Summary: KTorrent crash when download bandwidth is set from tray
Status: RESOLVED DUPLICATE of bug 188447
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 19:20 UTC by Nikolaos Mitas
Modified: 2009-07-16 12:43 UTC (History)
1 user (show)

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 Nikolaos Mitas 2009-07-15 19:20:37 UTC
Application that crashed: ktorrent
Version of the application: 3.2.1
KDE Version: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))
Qt Version: 4.5.0
Operating System: Linux 2.6.28-13-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
While trying to set the download bandwidth from the tray (right click -> set max download speed) ktorrent crashes.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 0 (LWP 17025)]

Thread 3 (Thread 0x7f3ab48bc950 (LWP 17033)):
#0  0x00007fffd67fe77d in gettimeofday ()
#1  0x00007f3aca71eb3a in gettimeofday () at ../sysdeps/unix/sysv/linux/x86_64/gettimeofday.S:37
#2  0x00007f3ace2dae2e in bt::Now () at /build/buildd/ktorrent-3.2.1+dfsg.1/libbtcore/util/functions.cpp:171
#3  0x00007f3ace2ec970 in net::DownloadThread::update (this=0xbf9360) at /build/buildd/ktorrent-3.2.1+dfsg.1/libbtcore/net/downloadthread.cpp:65
#4  0x00007f3ace2ed399 in net::NetworkThread::run (this=0xbf9360) at /build/buildd/ktorrent-3.2.1+dfsg.1/libbtcore/net/networkthread.cpp:48
#5  0x00007f3acbe4d952 in QThreadPrivate::start (arg=0xbf9360) at thread/qthread_unix.cpp:189
#6  0x00007f3ac6db33ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#7  0x00007f3aca76cfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3ab40bb950 (LWP 17034)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f3acbe4e939 in QWaitCondition::wait (this=0xbf9cd8, mutex=0xbf9ce0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f3ace2ec254 in net::UploadThread::update (this=0xbf9c70) at /build/buildd/ktorrent-3.2.1+dfsg.1/libbtcore/net/uploadthread.cpp:73
#3  0x00007f3ace2ed399 in net::NetworkThread::run (this=0xbf9c70) at /build/buildd/ktorrent-3.2.1+dfsg.1/libbtcore/net/networkthread.cpp:48
#4  0x00007f3acbe4d952 in QThreadPrivate::start (arg=0xbf9c70) at thread/qthread_unix.cpp:189
#5  0x00007f3ac6db33ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f3aca76cfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3ace7b3750 (LWP 17025)):
[KCrash Handler]
#5  0x00007f3acb7a13ce in QMenu::findIdForAction (this=0xd83930, act=0x211a8a0) at widgets/qmenu.cpp:3157
#6  0x00007f3acb7a28db in QMenuPrivate::activateCausedStack (this=0xd89bf0, causedStack=@0x7fffd67edab0, action=0x211a8a0, action_e=QAction::Trigger, self=192) at widgets/qmenu.cpp:965
#7  0x00007f3acb7a8a0e in QMenuPrivate::activateAction (this=0xd89bf0, action=0x211a8a0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1058
#8  0x00007f3acd5d0aa1 in KMenu::mouseReleaseEvent (this=0xd83930, e=0x7fffd67ee450) at /build/buildd/kde4libs-4.2.96/kdeui/widgets/kmenu.cpp:456
#9  0x00007f3acb3ca8cf in QWidget::event (this=0xd83930, event=0x7fffd67ee450) at kernel/qwidget.cpp:7516
#10 0x00007f3acb7ab1cb in QMenu::event (this=0xd83930, e=0x7fffd67ee450) at widgets/qmenu.cpp:2351
#11 0x00007f3acb37978d in QApplicationPrivate::notify_helper (this=0xc25510, receiver=0xd83930, e=0x7fffd67ee450) at kernel/qapplication.cpp:4084
#12 0x00007f3acb3820da in QApplication::notify (this=<value optimized out>, receiver=0xd83930, e=0x7fffd67ee450) at kernel/qapplication.cpp:3786
#13 0x00007f3acd4fd63b in KApplication::notify (this=0x7fffd67ef360, receiver=0xd83930, event=0x7fffd67ee450) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#14 0x00007f3acbf3675c in QCoreApplication::notifyInternal (this=0x7fffd67ef360, receiver=0xd83930, event=0x7fffd67ee450) at kernel/qcoreapplication.cpp:602
#15 0x00007f3acb381328 in QApplicationPrivate::sendMouseEvent (receiver=0xd83930, event=0x7fffd67ee450, alienWidget=0x0, nativeWidget=0xd83930, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f3acbdddeb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#16 0x00007f3acb3eafd4 in QETWidget::translateMouseEvent (this=0xd83930, event=<value optimized out>) at kernel/qapplication_x11.cpp:4359
#17 0x00007f3acb3e9a88 in QApplication::x11ProcessEvent (this=0x7fffd67ef360, event=0x7fffd67eef90) at kernel/qapplication_x11.cpp:3543
#18 0x00007f3acb412464 in x11EventSourceDispatch (s=0xc28c20, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#19 0x00007f3ac60e720a in IA__g_main_context_dispatch (context=0xc27d20) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#20 0x00007f3ac60ea8e0 in g_main_context_iterate (context=0xc27d20, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#21 0x00007f3ac60eaa7c in IA__g_main_context_iteration (context=0xc27d20, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#22 0x00007f3acbf5fe6f in QEventDispatcherGlib::processEvents (this=0xbf5f40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#23 0x00007f3acb411bef in QGuiEventDispatcherGlib::processEvents (this=0xd83930, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#24 0x00007f3acbf35002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -696323456}) at kernel/qeventloop.cpp:149
#25 0x00007f3acbf353cd in QEventLoop::exec (this=0x7fffd67ef2c0, flags={i = -696323376}) at kernel/qeventloop.cpp:200
#26 0x00007f3acbf37694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#27 0x0000000000424023 in main (argc=2, argv=0x7fffd67effb8) at /build/buildd/ktorrent-3.2.1+dfsg.1/ktorrent/main.cpp:170

Reported using DrKonqi
Comment 1 Dario Andres 2009-07-15 20:27:16 UTC
This is fixed when using Qt4.5.1+ (and reported as bug 188447.)
Thanks

*** This bug has been marked as a duplicate of bug 188447 ***
Comment 2 Joris Guisson 2009-07-16 12:43:49 UTC
Upgrading to 3.2.2 will also fix it, regardless of the Qt version.