This forum has been archived. All content is frozen. Please use KDE Discuss instead.

crash when double clicking on feed in syndication plugin

Tags: None
(comma "," separated)
agforsyth
Registered Member
Posts
133
Karma
0
I've crashed double clicking on the feed in the syndication plugin a couple of times, with recent 3.3dev svn builds. Once I had a corrupted stack, and once I got this backtrace.
Code: Select all
Application: KTorrent (ktorrent), signal SIGSEGV
[Current thread is 0 (LWP 28023)]

Thread 3 (Thread 0xb2e8eb90 (LWP 28043)):
#0  0xb8026430 in __kernel_vsyscall ()
#1  0xb5e15412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb67342d4 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7237159 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb723728b in QThread::msleep () from /usr/lib/libQtCore.so.4
#5  0xb7f2e16d in net::DownloadThread::update (this=0x8c9a3e0) at /home/adam/sources/ktorrent/libbtcore/net/downloadthread.cpp:108
#6  0xb7f2ea18 in net::NetworkThread::run (this=0x8c9a3e0) at /home/adam/sources/ktorrent/libbtcore/net/networkthread.cpp:48
#7  0xb723774e in ?? () from /usr/lib/libQtCore.so.4
#8  0xb5e114ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb67253fe in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb268db90 (LWP 28044)):
#0  0xb8026430 in __kernel_vsyscall ()
#1  0xb5e150e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb673427d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7238792 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb7f2d6be in net::UploadThread::update (this=0x8c9a720) at /home/adam/sources/ktorrent/libbtcore/net/uploadthread.cpp:73
#5  0xb7f2ea18 in net::NetworkThread::run (this=0x8c9a720) at /home/adam/sources/ktorrent/libbtcore/net/networkthread.cpp:48
#6  0xb723774e in ?? () from /usr/lib/libQtCore.so.4
#7  0xb5e114ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb67253fe in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb594cad0 (LWP 28023)):
[KCrash Handler]
#6  kt::DownloadedChunkBar::getBitSet (this=0x9377638) at /home/adam/sources/ktorrent/plugins/infowidget/downloadedchunkbar.cpp:44
#7  0xb2eb84c7 in kt::DownloadedChunkBar::drawBarContents (this=0x9377638, p=0xbff41438) at /home/adam/sources/ktorrent/plugins/infowidget/downloadedchunkbar.cpp:91
#8  0xb2eb8a28 in kt::DownloadedChunkBar::setTC (this=0x9377638, tc=0x1) at /home/adam/sources/ktorrent/plugins/infowidget/downloadedchunkbar.cpp:57
#9  0xb2eb9dfb in kt::StatusTab::changeTC (this=0x936b6f0, tc=0x1) at /home/adam/sources/ktorrent/plugins/infowidget/statustab.cpp:88
#10 0xb2eb496d in kt::InfoWidgetPlugin::currentTorrentChanged (this=0x936ad68, tc=0x1) at /home/adam/sources/ktorrent/plugins/infowidget/infowidgetplugin.cpp:160
#11 0xb7ea29f6 in kt::GUIInterface::notifyViewListeners (this=0x8d94770, tc=0x1) at /home/adam/sources/ktorrent/libktcore/interfaces/guiinterface.cpp:38
#12 0x08077275 in kt::GUI::currentTabPageChanged (this=0x8d94728, page=0x947fd38) at /home/adam/sources/ktorrent/ktorrent/gui.cpp:676
#13 0x080d1246 in ideal::MainWindow::qt_metacall (this=0x8d94728, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbff416cc) at /home/adam/sources/ktorrent/build/ideal/mainwindow.moc:65
#14 0x08078fff in kt::GUI::qt_metacall (this=0x8d94728, _c=QMetaObject::InvokeMetaMethod, _id=46, _a=0xbff416cc) at /home/adam/sources/ktorrent/build/ktorrent/gui.moc:109
#15 0xb733cc10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb733d992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb6e1f543 in QTabWidget::currentChanged () from /usr/lib/libQtGui.so.4
#18 0xb6e213a4 in ?? () from /usr/lib/libQtGui.so.4
#19 0xb6e21557 in QTabWidget::qt_metacall () from /usr/lib/libQtGui.so.4
#20 0xb7b0c79a in KTabWidget::qt_metacall () from /usr/lib/libkdeui.so.5
#21 0xb733cc10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb733d992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb6e18123 in QTabBar::currentChanged () from /usr/lib/libQtGui.so.4
#24 0xb6e1cdda in QTabBar::setCurrentIndex () from /usr/lib/libQtGui.so.4
#25 0xb6e1f9be in QTabWidget::setCurrentWidget () from /usr/lib/libQtGui.so.4
#26 0x080d1788 in ideal::MainWindow::addTab (this=0x8d94728, widget=0x947fd38, text=@0xbff41a34, icon=@0xbff41a28, pos=ideal::MainWindow::CENTER, tooltip=@0xbff41a2c)
    at /home/adam/sources/ktorrent/ideal/mainwindow.cpp:177
#27 0x08076eeb in kt::GUI::addTabPage (this=0x8d94728, page=0x947fd38, icon=@0xbff41a28, caption=@0xbff41a34, tooltip=@0xbff41a2c, ctl=0x935b8d0) at /home/adam/sources/ktorrent/ktorrent/gui.cpp:140
#28 0xb2f9cddc in kt::SyndicationPlugin::activateFeedWidget (this=0x935b8b8, f=0x93a37f0) at /home/adam/sources/ktorrent/plugins/syndication/syndicationplugin.cpp:265
#29 0xb2f9b477 in kt::SyndicationPlugin::qt_metacall (this=0x935b8b8, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff41b4c)
    at /home/adam/sources/ktorrent/build/plugins/syndication/moc_syndicationplugin.cpp:91
#30 0xb733cc10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#31 0xb733d992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#32 0xb2f9ae83 in kt::FeedListView::feedActivated (this=0x935f658, _t1=0x93a37f0) at /home/adam/sources/ktorrent/build/plugins/syndication/moc_feedlistview.cpp:87
#33 0xb2fa3248 in kt::FeedListView::itemActivated (this=0x935f658, idx=@0x8dd8c10) at /home/adam/sources/ktorrent/plugins/syndication/feedlistview.cpp:50
#34 0xb2f9bc8d in kt::FeedListView::qt_metacall (this=0x935f658, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbff41c6c)
    at /home/adam/sources/ktorrent/build/plugins/syndication/moc_feedlistview.cpp:75
#35 0xb733cc10 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#36 0xb733d992 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#37 0xb6eda613 in QAbstractItemView::doubleClicked () from /usr/lib/libQtGui.so.4
#38 0xb6edc3e1 in QAbstractItemView::mouseDoubleClickEvent () from /usr/lib/libQtGui.so.4
#39 0xb6a707a2 in QWidget::event () from /usr/lib/libQtGui.so.4
#40 0xb6da7ff3 in QFrame::event () from /usr/lib/libQtGui.so.4
#41 0xb6e3e79f in QAbstractScrollArea::viewportEvent () from /usr/lib/libQtGui.so.4
#42 0xb6ee9c8f in QAbstractItemView::viewportEvent () from /usr/lib/libQtGui.so.4
#43 0xb6e40d45 in ?? () from /usr/lib/libQtGui.so.4
#44 0xb73271da in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#45 0xb6a1885a in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#46 0xb6a210b1 in QApplication::notify () from /usr/lib/libQtGui.so.4
#47 0xb7a0200d in KApplication::notify () from /usr/lib/libkdeui.so.5
#48 0xb7327ff1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#49 0xb6a2033e in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#50 0xb6a8a676 in ?? () from /usr/lib/libQtGui.so.4
#51 0xb6a89a05 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#52 0xb6ab37ea in ?? () from /usr/lib/libQtGui.so.4
#53 0xb5d55c38 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#54 0xb5d592e3 in ?? () from /usr/lib/libglib-2.0.so.0
#55 0xb5d594a1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#56 0xb7352628 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#57 0xb6ab2ee5 in ?? () from /usr/lib/libQtGui.so.4
#58 0xb73266ba in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#59 0xb732687a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#60 0xb7328f35 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#61 0xb6a186f7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#62 0x080651e9 in main (argc=1, argv=0xbff430f4) at /home/adam/sources/ktorrent/ktorrent/main.cpp:171
agforsyth
Registered Member
Posts
133
Karma
0

Sat Feb 14, 2009 6:48 am
Same crash again, but this time I was only switching to the feed tab, not opening it.
George
Moderator
Posts
5421
Karma
1

Sat Feb 14, 2009 4:00 pm
This is the problem (the address of the tc pointer, must not be 1) :

Code: Select all
#10 0xb2eb496d in kt::InfoWidgetPlugin::currentTorrentChanged (this=0x936ad68, tc=0x1) at /home/adam/sources/ktorrent/plugins/infowidget/infowidgetplugin.cpp:160
#11 0xb7ea29f6 in kt::GUIInterface::notifyViewListeners (this=0x8d94770, tc=0x1) at /home/adam/sources/ktorrent/libktcore/interfaces/guiinterface.cpp:38


I'm not sure how we can arrive in this situation.
George
Moderator
Posts
5421
Karma
1

Sat Feb 14, 2009 4:03 pm
Can you try revision 926050, this should prevent this from happening.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar