Bug 345778 - Krfb crashes when trying to connect from KRDC client
Summary: Krfb crashes when trying to connect from KRDC client
Status: RESOLVED DUPLICATE of bug 344571
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: George Goldberg
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-04-01 21:56 UTC by Rodrigo Borges
Modified: 2015-05-03 09:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Borges 2015-04-01 21:56:33 UTC
Application: krfb (4.14.6)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.16.7-7-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
After setting up Krfb desktop sharing, the server crashes when trying to connect from another machine's krdc

-- Backtrace:
Application: Compartilhamento de Ambiente de Trabalho (krfb), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f2f60ebc187 in raise () at /lib64/libc.so.6
#6  0x00007f2f60ebd538 in abort () at /lib64/libc.so.6
#7  0x00007f2f60ef9844 in  () at /lib64/libc.so.6
#8  0x00007f2f60f7c4d7 in __fortify_fail () at /lib64/libc.so.6
#9  0x00007f2f60f7a6f0 in __readonly_area () at /lib64/libc.so.6
#10 0x00007f2f60f7c447 in  () at /lib64/libc.so.6
#11 0x00007f2f64834208 in rfbProcessNewConnection () at /usr/lib64/libvncserver.so.0
#12 0x00007f2f618ea1fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#13 0x00007f2f6193510e in QSocketNotifier::activated(int) () at /usr/lib64/libQtCore.so.4
#14 0x00007f2f618f2fab in QSocketNotifier::event(QEvent*) () at /usr/lib64/libQtCore.so.4
#15 0x00007f2f6256176c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#16 0x00007f2f62567cad in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#17 0x00007f2f63b4ecea in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#18 0x00007f2f618d62ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#19 0x00007f2f61903e18 in  () at /usr/lib64/libQtCore.so.4
#20 0x00007f2f5dd2da04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#21 0x00007f2f5dd2dc48 in  () at /usr/lib64/libglib-2.0.so.0
#22 0x00007f2f5dd2dcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#23 0x00007f2f619030be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#24 0x00007f2f625fe676 in  () at /usr/lib64/libQtGui.so.4
#25 0x00007f2f618d4e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#26 0x00007f2f618d5165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#27 0x00007f2f618da5b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#28 0x000000000040f325 in  ()
#29 0x00007f2f60ea8b05 in __libc_start_main () at /lib64/libc.so.6
#30 0x000000000040f3d4 in _start ()

Reported using DrKonqi
Comment 1 Howard 2015-04-29 05:29:52 UTC
I have the same problem on a 32-bit system.
Linux 3.16.7-21-default
openSUSE 13.2 (Harlequin) (i586)
Application: krfb (4.14.6)
KDE Platform Version: 4.14.6

Still trying to generate a useful backtrace.
Comment 2 Howard 2015-04-29 05:45:27 UTC
Connection works correctly if krfb version is downgraded to 4.14.3-4.2
Comment 3 Howard 2015-04-29 22:20:33 UTC
Back to Application: krfb (4.14.6)
results of gdb are below.


howard@X41base-oS132:~> gdb krfb
GNU gdb (GDB; openSUSE 13.2) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...

warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
Reading symbols from krfb...Reading symbols from /usr/lib/debug/usr/bin/krfb.debug...done.
done.
(gdb) run
Starting program: /usr/bin/krfb 
Got object file from memory but can't read symbols: File truncated.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Detaching after fork from child process 5328.
tp-qt 0.9.5 DEBUG: Register StreamTubeServer with name  "krfb_rfb_handler"  
tp-qt 0.9.5 DEBUG: Client registered - busName: "org.freedesktop.Telepathy.Client.krfb_rfb_handler" objectPath: "/org/freedesktop/Telepathy/Client/krfb_rfb_handler" interfaces: ("org.freedesktop.Telepathy.Client.Handler")  
krfb(5328) KXMLGUIClient::setXMLFile: cannot find .rc file "krfbui.rc" for component "krfb" 
[Inferior 1 (process 5324) exited normally]
(gdb) *** buffer overflow detected ***: /usr/bin/krfb terminated
======= Backtrace: =========
/lib/libc.so.6(+0x6cdf3)[0xb6071df3]
/lib/libc.so.6(__fortify_fail+0x45)[0xb6100475]
/lib/libc.so.6(+0xf94ca)[0xb60fe4ca]
/lib/libc.so.6(+0xfb38a)[0xb610038a]
/usr/lib/libvncserver.so.0(rfbProcessNewConnection+0x123)[0xb7f702f3]
/usr/bin/krfb[0x8060f5e]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x245)[0xb644e6a5]
/usr/lib/libQtCore.so.4(_ZN15QSocketNotifier9activatedEi+0x45)[0xb649f045]
/usr/lib/libQtCore.so.4(_ZN15QSocketNotifier5eventEP6QEvent+0x13f)[0xb6457b0f]                                                                 
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xa4)[0xb6a308b4]                                             
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1f0)[0xb6a372a0]                                                           
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x34)[0xb7a779d4]                                                            
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7a)[0xb643978a]                                              
/usr/lib/libQtCore.so.4(+0x1afded)[0xb6469ded]                                                                                                 
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x273)[0xb5997fd3]                                                                           
/usr/lib/libglib-2.0.so.0(+0x4a258)[0xb5998258]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x38)[0xb5998318]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73)[0xb6468f73]
/usr/lib/libQtGui.so.4(+0x1fc86e)[0xb6ae086e]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x43)[0xb6438143]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x179)[0xb6438469]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x8e)[0xb643df4e]
/usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x24)[0xb6a2ed54]
/usr/bin/krfb[0x8054265]
/lib/libc.so.6(__libc_start_main+0xf3)[0xb601e993]
/usr/bin/krfb[0x805432a]
======= Memory map: ========
[omitted]
KCrash: Application 'krfb' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/howard/.kde4/socket-X41base-oS132.site/kdeinit4__0
(gdb) quit
howard@X41base-oS132:~> 

end of gdb results

Howard
Comment 4 Christoph Feck 2015-05-03 09:21:15 UTC

*** This bug has been marked as a duplicate of bug 344571 ***