Subject: Re: [X2Go-Dev] Bug#249: Segfaults in x2goclient as well as in pyhoca-gui (both stable on Wheezy) when trying to connect to a nightly server on Ubuntu 14.04

From: Mike Gabriel <[email-masked]>
Date: Fri, 09 May 2014 10:47:52 +0000

Hi Axel,

I don't think that this is related to #249. (see below).

On  Do 08 Mai 2014 20:05:11 CEST, Axel Beckert wrote:

> Hi,
>
> I just installed x2goserver (4.1.0.0-0~971~ubuntu14.04.1) on Ubuntu
> 14.04 Trusty and connected to it with x2goclient
> (4.0.2.0-0x2go1+git20140410.586+wheezy.main.1) and later also with
> pyhoca-gui (0.4.0.9-0x2go1+git20140108.1126+wheezy.main.1).
>
> Both segfaulted while they worked fine when connecting to Wheezy
> servers with x2goserver stable.
>
> gdb Backtrace from pyhoca-gui:
>
> Starting program: /usr/bin/python /usr/bin/pyhoca-gui -P xtaran@bluesky
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Xlib.protocol.request.QueryExtension
> pyhoca-gui[8842] (PyHoca-GUI) WARN: the current release of  
> PyHoca-GUI does not support client configuration
> pyhoca-gui[8842] (PyHoca-GUI) NOTICE: opening default session  
> profile xtaran@bluesky
> pyhoca-gui[8842] (x2gosessregistry-pylib) NOTICE: registering X2Go  
> session xtaran@bluesky...
> pyhoca-gui[8842] (x2goclient-pylib) NOTICE: initializing X2Go session...
> pyhoca-gui[8842] (x2gocontrolsession-pylib) NOTICE: connecting to  
> [bluesky]:22
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004d3e9d in ?? ()
> (gdb) bt
> #0  0x00000000004d3e9d in ?? ()
> #1  0x00000000004f3482 in PyErr_WarnEx ()
> #2  0x00007fffe78b5b84 in ?? () from  
> /usr/lib/python2.7/dist-packages/gobject/_gobject.so
> #3  0x00007ffff11fb473 in g_logv () from  
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #4  0x00007ffff11fb622 in g_log () from  
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #5  0x00007ffff16c5b6f in g_signal_handler_disconnect () from  
> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> #6  0x00007fffe5ab14d0 in ?? () from  
> /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-uim.so
> #7  0x00007ffff16ba638 in g_object_unref () from  
> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> #8  0x00007ffff2db1fb1 in ?? () from  
> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
> #9  0x00007ffff2db21e0 in ?? () from  
> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
> #10 0x00007ffff16ba638 in g_object_unref () from  
> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> #11 0x00007ffff3f81aa6 in wxWindow::~wxWindow() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #12 0x00007ffff441df53 in  
> wxSplashScreenWindow::~wxSplashScreenWindow() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-2.8.so.0
> #13 0x00007ffff4049dd6 in wxWindowBase::DestroyChildren() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #14 0x00007ffff3f81a32 in wxWindow::~wxWindow() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #15 0x00007ffff441d5b9 in wxSplashScreen::~wxSplashScreen() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-2.8.so.0
> #16 0x00007ffff3fe0422 in wxAppBase::DeletePendingObjects() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #17 0x00007ffff3fe05cb in wxAppBase::ProcessIdle() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #18 0x00007ffff3f5adae in ?? () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #19 0x00007ffff11f4355 in g_main_context_dispatch () from  
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #20 0x00007ffff11f4688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #21 0x00007ffff11f4a82 in g_main_loop_run () from  
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #22 0x00007ffff2dc7797 in gtk_main () from  
> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
> #23 0x00007ffff3f6e268 in wxEventLoop::Run() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #24 0x00007ffff3fe033c in wxAppBase::MainLoop() () from  
> /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
> #25 0x00007ffff5350497 in wxPyApp::MainLoop() () from  
> /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so
> #26 0x00007ffff537732c in ?? () from  
> /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so
> #27 0x00000000004ae547 in PyEval_EvalFrameEx ()
> #28 0x00000000004b1ef8 in PyEval_EvalCodeEx ()
> #29 0x00000000004b2a6c in ?? ()
> #30 0x00000000004c4894 in ?? ()
> #31 0x00000000004aab70 in PyEval_EvalFrameEx ()
> #32 0x00000000004aad10 in PyEval_EvalFrameEx ()
> #33 0x00000000004aad10 in PyEval_EvalFrameEx ()
> #34 0x00000000004b1ef8 in PyEval_EvalCodeEx ()
> #35 0x000000000053b343 in ?? ()
> #36 0x000000000044cc58 in PyRun_FileExFlags ()
> #37 0x000000000044d152 in PyRun_SimpleFileExFlags ()
> #38 0x000000000044dd42 in Py_Main ()
> #39 0x00007ffff6fb4ead in __libc_start_main (main=<optimized out>,  
> argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>,
>     fini=<optimized out>, rtld_fini=<optimized out>,  
> stack_end=0x7fffffffdf08) at libc-start.c:244
> #40 0x00000000004c78b9 in _start ()
>
> gdb Backtrace from x2goclient:
>
> Starting program: /usr/bin/x2goclient --session=xtaran@bluesky
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> x2go-INFO-1> "Starting x2goclient..."
> x2go-WARNING-1> "Can't load translator: :/x2goclient_en_us"
> x2go-WARNING-2> "Can't load translator: :/qt_en_US"
> x2go-INFO-3> "Started  x2goclient."
> x2go-INFO-8> "Starting connection to server: bluesky:22"
> [New Thread 0x7fffe9288700 (LWP 16089)]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff5b50b67 in QString::operator=(QString const&) () from  
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> (gdb) bt
> #0  0x00007ffff5b50b67 in QString::operator=(QString const&) () from  
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #1  0x00000000004602d0 in ?? ()
> #2  0x0000000000479486 in ?? ()
> #3  0x000000000047bd20 in ?? ()
> #4  0x00000000004e1906 in ?? ()
> #5  0x00007ffff5c1754f in QMetaObject::activate(QObject*,  
> QMetaObject const*, int, void**) () from  
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #6  0x00000000004e31e0 in ?? ()
> #7  0x00000000004b4eb2 in ?? ()
> #8  0x00000000004e33be in ?? ()
> #9  0x00007ffff5c16a2e in QObject::event(QEvent*) () from  
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #10 0x00007ffff647670c in  
> QApplicationPrivate::notify_helper(QObject*, QEvent*) () from  
> /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> #11 0x00007ffff647ab8a in QApplication::notify(QObject*, QEvent*) ()  
> from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> #12 0x00007ffff5c01b5e in QCoreApplication::notifyInternal(QObject*,  
> QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #13 0x00007ffff5c059e1 in  
> QCoreApplicationPrivate::sendPostedEvents(QObject*, int,  
> QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #14 0x00007ffff5c300e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #15 0x00007ffff25ca355 in g_main_context_dispatch () from  
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #16 0x00007ffff25ca688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #17 0x00007ffff25ca744 in g_main_context_iteration () from  
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #18 0x00007ffff5c30276 in  
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)  
> () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #19 0x00007ffff651783e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> #20 0x00007ffff5c008af in  
> QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()  
> from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #21 0x00007ffff5c00b38 in  
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from  
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #22 0x00007ffff5c05cf8 in QCoreApplication::exec() () from  
> /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> #23 0x00000000004d7073 in ?? ()
> #24 0x00007ffff4d5dead in __libc_start_main (main=<optimized out>,  
> argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>,
>     fini=<optimized out>, rtld_fini=<optimized out>,  
> stack_end=0x7fffffffdf18) at libc-start.c:244
> #25 0x000000000041ba71 in ?? ()
> #26 0x00007fffffffdf18 in ?? ()
> #27 0x000000000000001c in ?? ()
> #28 0x0000000000000002 in ?? ()
> #29 0x00007fffffffe28c in ?? ()
> #30 0x00007fffffffe2a0 in ?? ()
> #31 0x0000000000000000 in ?? ()
>
> The segfaults on the Wheezy based clients vanished when I downgraded
> the packages on Ubuntu 14.04 from the nightly debs to the stable debs
> (i.e. x2goserver downgraded from 4.1.0.0-0~971~ubuntu14.04.1 to
> 4.0.1.15-0~847~ubuntu14.04.1)
>
> HTH.
>
> 		Kind regards, Axel

Can you please try to re-install x2goserver from the nightly builds  
and check if the issue is gone?

Two commits ago, code was added to x2goserver that requires a DB  
update. I have now added this call (x2godbadmin --updatedb) to the  
postinst script of libx2go-server-db-perl.

Regards,
Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email-masked], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb