Bug 230478 - KRDC crash after disconnect
Summary: KRDC crash after disconnect
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 230871 242815 (view as bug list)
Depends on: 185464
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-12 18:29 UTC by RussianNeuroMancer
Modified: 2010-10-17 17:42 UTC (History)
2 users (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 RussianNeuroMancer 2010-03-12 18:29:24 UTC
Application: krdc (4.4.1 (KDE 4.4.1))
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-16-generic x86_64
Distribution: Ubuntu lucid (development branch)

-- Information about the crash:
KRDC crash after disconnect VNC-connection to Krfb.

 -- Backtrace:
Application: KRDC (krdc), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f706f044800 (LWP 4401))]

Thread 3 (Thread 0x7f705da12710 (LWP 4402)):
[KCrash Handler]
#5  0x00007f705e38753c in FillRectangle (client=0x7f705d1ba010, x=1343, y=<value optimized out>, w=<value optimized out>, h=234, colour=6710886) at rfbproto.c:140
#6  0x00007f705e38c9ef in HandleTight32 (client=0x7f705d1ba010, rx=<value optimized out>, ry=<value optimized out>, rw=<value optimized out>, rh=<value optimized out>) at tight.c:134
#7  0x00007f705e395979 in HandleRFBServerMessage (client=0x7f705d1ba010) at rfbproto.c:1434
#8  0x00007f705e5a8235 in VncClientThread::run (this=0x1255270) at ../../../krdc/vnc/vncclientthread.cpp:292
#9  0x00007f706c06e785 in QThreadPrivate::start (arg=0x1255270) at thread/qthread_unix.cpp:248
#10 0x00007f7069ed49ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007f706ba4638d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f705aee7710 (LWP 4403)):
#0  0x00007f706ba39bd3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7067e380e9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f7067e384bc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f706c18c4d6 in QEventDispatcherGlib::processEvents (this=0x109fc70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f706c161902 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f706c161cdc in QEventLoop::exec (this=0x7f705aee6d10, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f706c06bd69 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f706c142118 in QInotifyFileSystemWatcherEngine::run (this=0x10615d0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f706c06e785 in QThreadPrivate::start (arg=0x10615d0) at thread/qthread_unix.cpp:248
#9  0x00007f7069ed49ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f706ba4638d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 1 (Thread 0x7f706f044800 (LWP 4401)):
#0  0x00007f706ba39bd3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f706630229a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f70663027d7 in ?? () from /usr/lib/libxcb.so.1
#3  0x00007f7066302a85 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0x00007f706aa166fa in _XSend () from /usr/lib/libX11.so.6
#5  0x00007f706b4c3427 in XRenderCompositeText32 () from /usr/lib/libXrender.so.1
#6  0x00007f706ccdf70a in QX11PaintEngine::drawFreetype (this=<value optimized out>, p=<value optimized out>, ti=<value optimized out>) at painting/qpaintengine_x11.cpp:2439
#7  0x00007f706cc3da4b in QPainter::drawTextItem (this=<value optimized out>, p=<value optimized out>, _ti=...) at painting/qpainter.cpp:6250
#8  0x00007f706cd426f8 in QTextLine::draw (this=<value optimized out>, p=<value optimized out>, pos=<value optimized out>, selection=0x0) at text/qtextlayout.cpp:2242
#9  0x00007f706cd434c8 in QTextLayout::draw (this=<value optimized out>, p=<value optimized out>, pos=<value optimized out>, selections=<value optimized out>, clip=<value optimized out>)
    at text/qtextlayout.cpp:1273
#10 0x00007f706cd7ad6f in QTextDocumentLayoutPrivate::drawBlock (this=<value optimized out>, offset=<value optimized out>, painter=<value optimized out>, context=..., bl=<value optimized out>, 
    inRootFrame=<value optimized out>) at text/qtextdocumentlayout.cpp:1318
#11 0x00007f706cd7b701 in QTextDocumentLayoutPrivate::drawFlow (this=0x1395090, offset=<value optimized out>, painter=<value optimized out>, context=..., it=) at text/qtextdocumentlayout.cpp:1216
#12 0x00007f706cd7cc71 in QTextDocumentLayoutPrivate::drawFrame (this=<value optimized out>, offset=<value optimized out>, painter=<value optimized out>, context=..., frame=<value optimized out>)
    at text/qtextdocumentlayout.cpp:1067
#13 0x00007f706cd83cd6 in QTextDocumentLayout::draw (this=<value optimized out>, painter=0x7fff7fd9fc90, context=...) at text/qtextdocumentlayout.cpp:2803
#14 0x00007f706cd2e677 in QTextControl::drawContents (this=0x1077240, p=0x7fff7fd9fc90, rect=..., widget=0x1072e40) at text/qtextcontrol.cpp:2921
#15 0x00007f706ceddff6 in QLabel::paintEvent (this=0x1072e40) at widgets/qlabel.cpp:1027
#16 0x00007f706cb32112 in QWidget::event (this=0x1072e40, event=0x7fff7fda0510) at kernel/qwidget.cpp:8144
#17 0x00007f706ced9406 in QFrame::event (this=0x1072e40, e=0x7fff7fda0510) at widgets/qframe.cpp:557
#18 0x00007f706cadc22c in QApplicationPrivate::notify_helper (this=0xed6170, receiver=0x1072e40, e=0x7fff7fda0510) at kernel/qapplication.cpp:4300
#19 0x00007f706cae26fb in QApplication::notify (this=0x7fff7fda32c0, receiver=0x1072e40, e=0x7fff7fda0510) at kernel/qapplication.cpp:4183
#20 0x00007f706d7e7506 in KApplication::notify (this=0x7fff7fda32c0, receiver=0x1072e40, event=0x7fff7fda0510) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x00007f706c162fdc in QCoreApplication::notifyInternal (this=0x7fff7fda32c0, receiver=0x1072e40, event=0x7fff7fda0510) at kernel/qcoreapplication.cpp:704
#22 0x00007f706cb3a77d in QCoreApplication::sendSpontaneousEvent (this=0x1394a30, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x1212d60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#23 QWidgetPrivate::drawWidget (this=0x1394a30, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1212d60)
    at kernel/qwidget.cpp:5339
#24 0x00007f706cb3b418 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=1, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5452
#25 0x00007f706cb3b249 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5439
#26 0x00007f706cb3b249 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=3, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5439
#27 0x00007f706cb3b249 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=4, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5439
#28 0x00007f706cb3b249 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=5, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5439
#29 0x00007f706cb3b249 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=6, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5439
#30 0x00007f706cb3a4da in QWidgetPrivate::drawWidget (this=0x13891f0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x1212d60) at kernel/qwidget.cpp:5388
#31 0x00007f706cb3b418 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5452
#32 0x00007f706cb3a4da in QWidgetPrivate::drawWidget (this=0x10ae4c0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x1212d60) at kernel/qwidget.cpp:5388
#33 0x00007f706cb3b418 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=0, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5452
#34 0x00007f706cb3a4da in QWidgetPrivate::drawWidget (this=0x10ae280, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x1212d60) at kernel/qwidget.cpp:5388
#35 0x00007f706cb3b418 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=9, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5452
#36 0x00007f706cb3b249 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=18, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x1212d60) at kernel/qwidget.cpp:5439
#37 0x00007f706cb3a4da in QWidgetPrivate::drawWidget (this=0x1029de0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x1212d60) at kernel/qwidget.cpp:5388
#38 0x00007f706ccf4795 in QWidgetBackingStore::sync (this=0x1212d60) at painting/qbackingstore.cpp:1291
#39 0x00007f706cb2bb20 in QWidgetPrivate::syncBackingStore (this=0x1029de0) at kernel/qwidget.cpp:1672
#40 0x00007f706cb32815 in QWidget::event (this=0x1029c70, event=0x105b990) at kernel/qwidget.cpp:8291
#41 0x00007f706cef4bcb in QMainWindow::event (this=0x1029c70, event=0x105b990) at widgets/qmainwindow.cpp:1433
#42 0x00007f706d8fe5d3 in KXmlGuiWindow::event (this=0x7fff7fd9bad0, ev=0x1) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#43 0x00007f706cadc22c in QApplicationPrivate::notify_helper (this=0xed6170, receiver=0x1029c70, e=0x105b990) at kernel/qapplication.cpp:4300
#44 0x00007f706cae26fb in QApplication::notify (this=0x7fff7fda32c0, receiver=0x1029c70, e=0x105b990) at kernel/qapplication.cpp:4183
#45 0x00007f706d7e7506 in KApplication::notify (this=0x7fff7fda32c0, receiver=0x1029c70, event=0x105b990) at ../../kdeui/kernel/kapplication.cpp:302
#46 0x00007f706c162fdc in QCoreApplication::notifyInternal (this=0x7fff7fda32c0, receiver=0x1029c70, event=0x105b990) at kernel/qcoreapplication.cpp:704
#47 0x00007f706c165757 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xebee80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#48 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xebee80) at kernel/qcoreapplication.cpp:1345
#49 0x00007f706c18c943 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#50 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#51 0x00007f7067e34492 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#52 0x00007f7067e38308 in ?? () from /lib/libglib-2.0.so.0
#53 0x00007f7067e384bc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#54 0x00007f706c18c483 in QEventDispatcherGlib::processEvents (this=0xebe5d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#55 0x00007f706cb8c21e in QGuiEventDispatcherGlib::processEvents (this=0x7fff7fd9bad0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#56 0x00007f706c161902 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#57 0x00007f706c161cdc in QEventLoop::exec (this=0x7fff7fda3200, flags=) at kernel/qeventloop.cpp:201
#58 0x00007f706c165a1b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#59 0x000000000042780b in main (argc=<value optimized out>, argv=<value optimized out>) at ../../krdc/main.cpp:103
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Urs Wolfer 2010-03-15 22:09:57 UTC
*** Bug 230871 has been marked as a duplicate of this bug. ***
Comment 2 Tony Murray 2010-05-26 18:37:11 UTC
SVN commit 1130864 by murrant:

Workaround for a common crash when disconnecting a VNC connection.

This is included in KDE SC 4.5 Beta 2.  Please test and confirm.  The patch can be found here: 
http://reviewboard.kde.org/r/4041/diff/raw/

REVIEW: 4041
CCBUG: 220262
CCBUG: 220456
CCBUG: 220688
CCBUG: 229295
CCBUG: 229944
CCBUG: 230478
CCBUG: 231773
CCBUG: 232762
CCBUG: 233780


 M  +15 -16    mainwindow.cpp  
 M  +3 -3      vnc/vncclientthread.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130864
Comment 3 Urs Wolfer 2010-06-29 18:09:43 UTC
*** Bug 242815 has been marked as a duplicate of this bug. ***
Comment 4 Urs Wolfer 2010-10-17 17:42:02 UTC
Closing as fixed since nobody can reproduce this crashes anymore with the fixes from KRDC 4.5.