Application that crashed: krdc Version of the application: 4.3.00 (KDE 4.3.0) KDE Version: 4.3.00 (KDE 4.3.0) Qt Version: 4.5.2 Operating System: Linux 2.6.28-14-generic x86_64 Distribution: Ubuntu 9.04 What I was doing when the application crashed: Just opened a new rpd session and the program died -- Backtrace: Application: KRDC (krdc), signal: Segmentation fault [KCrash Handler] #5 0x0000000000421742 in MainWindow::updateActionStatus (this=0x13a6450) at /build/buildd/kdenetwork-4.3.0/krdc/mainwindow.cpp:842 #6 0x000000000042218e in MainWindow::tabChanged (this=0x13a6450, index=<value optimized out>) at /build/buildd/kdenetwork-4.3.0/krdc/mainwindow.cpp:1029 #7 0x00000000004277db in MainWindow::qt_metacall (this=0x13a6450, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3a2f0000) at /build/buildd/kdenetwork-4.3.0/obj-x86_64-linux-gnu/krdc/mainwindow.moc:145 #8 0x00007f132ed77ea2 in QMetaObject::activate (sender=0x1488530, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x0) at kernel/qobject.cpp:3113 #9 0x00007f132fd1903e in QTabWidget::currentChanged (this=0x2337680, _t1=0) at .moc/release-shared/moc_qtabwidget.cpp:194 #10 0x00007f132fd1a8ad in QTabWidgetPrivate::_q_showTab (this=0x1495880, index=0) at widgets/qtabwidget.cpp:724 #11 0x00007f132fd1aa78 in QTabWidget::qt_metacall (this=0x1488530, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3a2f01a0) at .moc/release-shared/moc_qtabwidget.cpp:136 #12 0x00007f1330872535 in KTabWidget::qt_metacall (this=0x2337680, _c=774087976, _id=65, _a=0x0) at /build/buildd/kde4libs-4.3.0/obj-x86_64-linux-gnu/kdeui/ktabwidget.moc:124 #13 0x00007f132ed77ea2 in QMetaObject::activate (sender=0x1492860, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x0) at kernel/qobject.cpp:3113 #14 0x00007f132fd0d7de in QTabBar::currentChanged (this=0x2337680, _t1=0) at .moc/release-shared/moc_qtabbar.cpp:201 #15 0x00007f132fd16863 in QTabBar::insertTab (this=0x1492860, index=0, icon=<value optimized out>, text=@0x7fff3a2f05b0) at widgets/qtabbar.cpp:804 #16 0x00007f132fd1a608 in QTabWidget::insertTab (this=0x1488530, index=0, w=<value optimized out>, icon=@0x7fff3a2f04e0, label=@0x7fff3a2f05b0) at widgets/qtabwidget.cpp:447 #17 0x0000000000422c0e in MainWindow::newConnection (this=0x13a6450, newUrl=<value optimized out>, switchFullscreenWhenConnected=false) at /build/buildd/kdenetwork-4.3.0/krdc/mainwindow.cpp:394 #18 0x00000000004279c2 in MainWindow::qt_metacall (this=0x13a6450, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3a2f07f0) at /build/buildd/kdenetwork-4.3.0/obj-x86_64-linux-gnu/krdc/mainwindow.moc:121 #19 0x00007f132ed77ea2 in QMetaObject::activate (sender=0x14feea0, from_signal_index=<value optimized out>, to_signal_index=33, argv=0x0) at kernel/qobject.cpp:3113 #20 0x00007f1331ebcc2d in KUrlNavigator::qt_metacall (this=0x14feea0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3a2f08f0) at /build/buildd/kde4libs-4.3.0/obj-x86_64-linux-gnu/kfile/kurlnavigator.moc:107 #21 0x00007f132ed77ea2 in QMetaObject::activate (sender=0x14fece0, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x0) at kernel/qobject.cpp:3113 #22 0x00007f132fcb82e6 in QLineEdit::keyPressEvent (this=0x14fece0, event=0x7fff3a2f1490) at widgets/qlineedit.cpp:1946 #23 0x00007f1330848ddd in KLineEdit::keyPressEvent (this=0x14fece0, e=0x7fff3a2f1490) at /build/buildd/kde4libs-4.3.0/kdeui/widgets/klineedit.cpp:896 #24 0x00007f132f931faa in QWidget::event (this=0x14fece0, event=0x7fff3a2f1490) at kernel/qwidget.cpp:7584 #25 0x00007f132fcb6689 in QLineEdit::event (this=0x14fece0, e=0x7fff3a2f1490) at widgets/qlineedit.cpp:1681 #26 0x00007f1330849f05 in KLineEdit::event (this=0x14fece0, ev=0x7fff3a2f1490) at /build/buildd/kde4libs-4.3.0/kdeui/widgets/klineedit.cpp:1323 #27 0x00007f132f8e0f4d in QApplicationPrivate::notify_helper (this=0x131d4f0, receiver=0x14fece0, e=0x7fff3a2f1490) at kernel/qapplication.cpp:4056 #28 0x00007f132f8ea0cf in QApplication::notify (this=<value optimized out>, receiver=0x14fece0, e=0x7fff3a2f1490) at kernel/qapplication.cpp:3662 #29 0x00007f133077f71b in KApplication::notify (this=0x7fff3a2f36a0, receiver=0x14fece0, event=0x7fff3a2f1490) at /build/buildd/kde4libs-4.3.0/kdeui/kernel/kapplication.cpp:302 #30 0x00007f132ed626ac in QCoreApplication::notifyInternal (this=0x7fff3a2f36a0, receiver=0x14fece0, event=0x7fff3a2f1490) at kernel/qcoreapplication.cpp:610 #31 0x00007f132f9766a4 in QKeyMapper::sendKeyEvent (keyWidget=0x14fece0, grab=<value optimized out>, type=QEvent::KeyPress, code=16777220, modifiers={i = 976164544}, text=@0x7fff3a2f16b0, autorepeat=false, count=1, nativeScanCode=36, nativeVirtualKey=65293, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1675 #32 0x00007f132f978a02 in QKeyMapperPrivate::translateKeyEvent (this=0x13596d0, keyWidget=0x14fece0, event=0x7fff3a2f32c0, grab=40) at kernel/qkeymapper_x11.cpp:1645 #33 0x00007f132f9510e6 in QApplication::x11ProcessEvent (this=0x7fff3a2f36a0, event=0x7fff3a2f32c0) at kernel/qapplication_x11.cpp:3443 #34 0x00007f132f97a454 in x11EventSourceDispatch (s=0x13211d0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #35 0x00007f132a9dd20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #36 0x00007f132a9e08e0 in ?? () from /usr/lib/libglib-2.0.so.0 #37 0x00007f132a9e0a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #38 0x00007f132ed8ba8f in QEventDispatcherGlib::processEvents (this=0x1303f40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #39 0x00007f132f979bdf in QGuiEventDispatcherGlib::processEvents (this=0x2337680, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #40 0x00007f132ed60f42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 976172464}) at kernel/qeventloop.cpp:149 #41 0x00007f132ed61314 in QEventLoop::exec (this=0x7fff3a2f35f0, flags={i = 976172544}) at kernel/qeventloop.cpp:201 #42 0x00007f132ed635e4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #43 0x0000000000428a4f in main (argc=3, argv=0x7fff3a2f3bd8) at /build/buildd/kdenetwork-4.3.0/krdc/main.cpp:101 This bug may be a duplicate of or related to bug 181209 Reported using DrKonqi
Can you reproduce this crash?
(In reply to comment #1) > Can you reproduce this crash? Ping; without your information I will not be able to fix this crash.
This particular crash shouldn't happen in 4.4 due to changes in the code. Still in 4.3 though.
If you still can reproduce this crash with KRDC from KDE SC 4.4, please reopen this bug.
Created attachment 48030 [details] New crash information added by DrKonqi I can reproduce this consistently. It requires opening a session in a tab, then closing the tab and opening another session: 1. Launch krdc 2. Click on an rdp host from the history pane. 3. Click on another entry to open a second session in a second tab. 4. Close the *first* tab. 5. Click on a history entry again to start a new session. krdc crashes immediately.
(In reply to comment #5) > I can reproduce this consistently. And that's with KDE 4.4. Please reopen the bug.
*** Bug 240395 has been marked as a duplicate of this bug. ***
Can you reproduce this crash with RDP *and* VNC?
*** Bug 243426 has been marked as a duplicate of this bug. ***
SVN commit 1145643 by murrant: Backport r1145624 by murrant from trunk to the 4.4 branch: Fix a typo that closed the wrong tab if you tried to close the non-active tab. Use a the safer removePage() function. CCBUG: 203007 M +2 -2 mainwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1145643
Created attachment 51235 [details] New crash information added by DrKonqi I had a few RDP tabs open and wanted to close one of the currently inactive tabs (next to the last one). It closed both - the one I wanted to close and the currently active one. Trying to reopen the one I did not want to get closed made krdc crash.
Patch in comment #10 fixes this bug. Unfortunately it was a week after 4.4.5 was tagged and there most likely won't be a 4.4.6. Your best bet is 4.5, but you could patch by hand.
Created attachment 54476 [details] New crash information added by DrKonqi krdc (4.5.1 (KDE 4.5.1)) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0 - What I was doing when the application crashed: Closing inactive first tab caused app crash. Sorry, I know it's closed, but it seems to be not fixed. -- Backtrace (Reduced): #7 0x08067f3c in MainWindow::updateActionStatus (this=0x92dc1c8) at ../../krdc/mainwindow.cpp:855 #8 0x08069a3c in MainWindow::tabChanged (this=0x92dc1c8, index=0) at ../../krdc/mainwindow.cpp:1049 #9 0x08070aed in MainWindow::qt_metacall (this=0x92dc1c8, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfd6d8d8) at ./mainwindow.moc:160 [...] [...] #12 0x020f9793 in QTabWidget::currentChanged (this=0x937f880, _t1=0) at .moc/release-shared/moc_qtabwidget.cpp:200 #13 0x020fb95e in QTabWidgetPrivate::_q_showTab (this=0x937f8a0, index=0) at widgets/qtabwidget.cpp:735