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

SVN plugins bug which could lead to a crash [SOLVED]

Tags: None
(comma "," separated)
J
Registered Member
Posts
86
Karma
0
The plugin's buttons are not removed after a plugin is unloaded. Loading, unloading and loading a plugin again will result in multiple buttons (sets of buttons) being displayed. Clicking the obsolete ones results in a crash.

Simple steps to reproduce:
1) Load logviewer plugin
2) Unload logviewer plugin
3) Push on logviewer button at the bottom of the window

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47361729538560 (LWP 19514)]
0x000000000049835a in DDockWindow::selectWidget (this=0x6f5080, button=0x17ff350) at ddockwindow.cpp:292
292 m_widgets[button]->setFocus();
(gdb) bt
#0 0x000000000049835a in DDockWindow::selectWidget (this=0x6f5080, button=0x17ff350) at ddockwindow.cpp:292
#1 0x000000000049837f in DDockWindow::selectWidget (this=0x6f5080) at ddockwindow.cpp:297
#2 0x00000000004983e6 in DDockWindow::qt_invoke (this=0x6f5080, _id=51, _o=0x7fff6c8fb470) at ddockwindow.moc:113
#3 0x00002b13402f79bc in QObject::activate_signal (this=0x17ff350, clist=0x3810650, o=0x7fff6c8fb470) at kernel/qobject.cpp:2356
#4 0x00002b13402f88f3 in QObject::activate_signal (this=0x17ff350, signal=4) at kernel/qobject.cpp:2325
#5 0x00002b13406f209d in QButton::clicked (this=0x17ff350) at .moc/debug-shared-mt/moc_qbutton.cpp:152
#6 0x00002b13403abe15 in QButton::mouseReleaseEvent (this=0x17ff350, e=0x7fff6c8fbaf0) at widgets/qbutton.cpp:836
#7 0x00002b1340337422 in QWidget::event (this=0x17ff350, e=0x7fff6c8fbaf0) at kernel/qwidget.cpp:4677
#8 0x00002b1340284b5a in QApplication::internalNotify (this=0x7fff6c8fc500, receiver=0x17ff350, e=0x7fff6c8fbaf0)
at kernel/qapplication.cpp:2635
#9 0x00002b1340286e7e in QApplication::notify (this=0x7fff6c8fc500, receiver=0x17ff350, e=0x7fff6c8fbaf0) at kernel/qapplication.cpp:2421
#10 0x00002b133f53ce6e in KApplication::notify () from /usr/kde/3.5/lib64/libkdecore.so.4
#11 0x00002b134020d1b6 in QApplication::sendSpontaneousEvent (receiver=0x17ff350, event=0x7fff6c8fbaf0) at kernel/qapplication.h:499
#12 0x00002b134020bdc0 in QETWidget::translateMouseEvent (this=0x17ff350, event=0x7fff6c8fc170) at kernel/qapplication_x11.cpp:4296
#13 0x00002b1340209e4c in QApplication::x11ProcessEvent (this=0x7fff6c8fc500, event=0x7fff6c8fc170) at kernel/qapplication_x11.cpp:3447
#14 0x00002b1340222817 in QEventLoop::processEvents (this=0x65a2c0, flags=4) at kernel/qeventloop_x11.cpp:192
#15 0x00002b13402a26aa in QEventLoop::enterLoop (this=0x65a2c0) at kernel/qeventloop.cpp:198
#16 0x00002b13402a24b3 in QEventLoop::exec (this=0x65a2c0) at kernel/qeventloop.cpp:145
#17 0x00002b13402867ae in QApplication::exec (this=0x7fff6c8fc500) at kernel/qapplication.cpp:2758
#18 0x00000000004533bb in main (argc=4, argv=0x7fff6c8fc828) at main.cpp:127
#19 0x00002b1342ee9374 in __libc_start_main () from /lib/libc.so.6
#20 0x000000000042cc49 in _start ()
(gdb) f 0
#0 0x000000000049835a in DDockWindow::selectWidget (this=0x6f5080, button=0x17ff350) at ddockwindow.cpp:292
292 m_widgets[button]->setFocus();
(gdb) list
287 if (m_toggledButton)
288 m_toggledButton->setOn(false);
289 m_toggledButton = button;
290 setVisible(true);
291 m_widgetStack->raiseWidget(m_widgets[button]);
292 m_widgets[button]->setFocus();
293 }
294
295 void DDockWindow::selectWidget()
296 {

Last edited by J on Fri Apr 06, 2007 6:36 am, edited 1 time in total.


Thank you KTorrent developers! :)
_________________
"Thou shalt not steal." - STOP PIRACY NOW!
George
Moderator
Posts
5421
Karma
1

Thu Apr 05, 2007 6:02 pm
It's fixed
J
Registered Member
Posts
86
Karma
0

Fri Apr 06, 2007 6:36 am
Yep, thanks.


Thank you KTorrent developers! :)
_________________
"Thou shalt not steal." - STOP PIRACY NOW!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]