From vtselfa@gmail.com Fri Jan 23 00:18:55 2015 Received: (at submit) by bugs.x2go.org; 22 Jan 2015 23:18:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 237895DA51 for ; Fri, 23 Jan 2015 00:18:55 +0100 (CET) Received: by mail-lb0-f180.google.com with SMTP id b6so4274932lbj.11 for ; Thu, 22 Jan 2015 15:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ecra0L7o1nCmpCGrpL741SkbelWpNP67akKX2cq0z24=; b=c4V+nxPN8abmi9LNahkXkBF6cC9H16zZ+BZBlteJsux6jLNyl5w9KFM0b5SbAnu3hh 14NqTQluoeb/EzAn3g6bmCc18jf8SDbgWrNzJLW7K3Ja3osLqpwsvmtsrzo+zGp3ZfJ5 ssFJXGJnxow86FV1PyCjP2Qgx1aFkWM1ICrEqtU5JaWVnmq1ql9WJ/LWC2J38Dx3BeQo 41v1ZK7uMy5kO9Qfxe7zp4Ht2v34y8ClzWTgcOfYcDFyeb3Q0fWkEltZby23/moA1QaN bZXE+qOKrMS6emkn7E4EyjKXwW38/6llgY+5RtO1nLTRC9SlTQQckUmDDmFAqnbb8POL PrGg== X-Received: by 10.152.225.138 with SMTP id rk10mr4307048lac.18.1421968734436; Thu, 22 Jan 2015 15:18:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.189.106 with HTTP; Thu, 22 Jan 2015 15:18:34 -0800 (PST) From: Vicent Date: Fri, 23 Jan 2015 00:18:34 +0100 Message-ID: Subject: x2goclient segfaults if terminate button is repeatedly clicked To: submit@bugs.x2go.org Content-Type: multipart/mixed; boundary=001a1133b73e4c5aa3050d45e5ad --001a1133b73e4c5aa3050d45e5ad Content-Type: multipart/alternative; boundary=001a1133b73e4c5a9e050d45e5ab --001a1133b73e4c5a9e050d45e5ab Content-Type: text/plain; charset=UTF-8 Package: x2goclient Version: 4.0.3.1 Tag: patch When the Terminate button is clicked, several seconds pass until the session is efectively terminated and the window reflects the changes. If the botton is pressed another time, the program segfaults. *The steps you took to produce the bug* Start any connection. Terminate connection with Terminate button or closing the window. Repeatedly click terminate button. *Any exact error messages* Segfault *What you expected to happen* The button should do nothing if clicked a segond time. *What actually happened* Crash *The client machine's OS* Archlinux fully updated *The client machine's version of X2GoClient* Latest version from git, also in the one in archlinux repo *Any relevant session settings in X2GoClient, PyHoca-GUI or Pyhoca-CLI* Nothing *The server's OS* Archlinux, fully updated Latest stable version of the software is used in the server, from Archlinux repositories, but server software is not relevant. *Backtrace* #0 0x00007ffff5b032e0 in QProcess::terminate() () from /usr/lib/libQtCore.so.4 #1 0x0000000000471ced in ONMainWindow::termSession (this=0xa92620, sessId=..., warn=false) at ../onmainwindow.cpp:5968 #2 0x00000000004698cb in ONMainWindow::slotTermSessFromSt (this=0xa92620) at ../onmainwindow.cpp:4587 #3 0x00000000004f43cd in ONMainWindow::qt_static_metacall (_o=0xa92620, _c=QMetaObject::InvokeMetaMethod, _id=42, _a=0x7fffffffd7d0) at moc_onmainwindow.cpp:366 #4 0x00007ffff5b89d9c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #5 0x00007ffff6a7f962 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4 #6 0x00007ffff67beef3 in ?? () from /usr/lib/libQtGui.so.4 #7 0x00007ffff67c02a4 in ?? () from /usr/lib/libQtGui.so.4 #8 0x00007ffff67c03b4 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4 #9 0x00007ffff68824ba in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4 #10 0x00007ffff6442c08 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #11 0x00007ffff63ef9ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #12 0x00007ffff63f656f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #13 0x00007ffff5b7528d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #14 0x00007ffff63f5bcf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/libQtGui.so.4 #15 0x00007ffff646c7a2 in ?? () from /usr/lib/libQtGui.so.4 #16 0x00007ffff646b19c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4 #17 0x00007ffff64932e2 in ?? () from /usr/lib/libQtGui.so.4 #18 0x00007ffff1f0ea0d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #19 0x00007ffff1f0ecf8 in ?? () from /usr/lib/libglib-2.0.so.0 #20 0x00007ffff1f0edac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #21 0x00007ffff5ba437d in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #22 0x00007ffff64933a6 in ?? () from /usr/lib/libQtGui.so.4 #23 0x00007ffff5b73de1 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #24 0x00007ffff5b74145 in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #25 0x00007ffff5b796e9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #26 0x00000000004dccd6 in x2goMain (argc=1, argv=0x7fffffffe688) at ../ongetpass.cpp:108 #27 0x00000000004f354c in main (argc=1, argv=0x7fffffffe688) at ../x2goclient.cpp:22 --001a1133b73e4c5a9e050d45e5ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Package: x2goclient
Version: 4.0.3.1
Tag: patch

When the Terminate button is clicked, several seconds pas= s until the session is efectively terminated and the window reflects the ch= anges.
If the botton is pressed another time, the =
program segfaults.


The steps you = took to produce the bug

Start any connection. Terminate connecti= on with Terminate button or closing the window. Repeatedly click terminate = button.

Any exact error messages

Segfault

Wh= at you expected to happen

The button should do nothing if clicke= d a segond time.

What actually happened

Crash

<= b>The client machine's OS

Archlinux fully updated

= The client machine's version of X2GoClient

Latest version fr= om git, also in the one in archlinux repo

Any relevant session se= ttings in X2GoClient, PyHoca-GUI or Pyhoca-CLI

Nothing

The server's OS

Archlinux, fully updated

Latest stable ve= rsion of the software is used in the server, from Archlinux repositories, b= ut server software is not relevant.

Backtrace=


#0 0x00007ffff5b032e0 in QProcess::terminate() () from /usr/lib/li= bQtCore.so.4
#1 0x0000000000471ced in ONMainWindow::termSession (this= =3D0xa92620, sessId=3D..., warn=3Dfalse) at ../onmainwindow.cpp:5968
#2 = 0x00000000004698cb in ONMainWindow::slotTermSessFromSt (this=3D0xa92620) a= t ../onmainwindow.cpp:4587
#3 0x00000000004f43cd in ONMainWindow::qt_st= atic_metacall (_o=3D0xa92620, _c=3DQMetaObject::InvokeMetaMethod, _id=3D42,= _a=3D0x7fffffffd7d0) at moc_onmainwindow.cpp:366
#4 0x00007ffff5b89d9c= in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () fro= m /usr/lib/libQtCore.so.4
#5 0x00007ffff6a7f962 in QAbstractButton::cli= cked(bool) () from /usr/lib/libQtGui.so.4
#6 0x00007ffff67beef3 in ?? (= ) from /usr/lib/libQtGui.so.4
#7 0x00007ffff67c02a4 in ?? () from /usr/= lib/libQtGui.so.4
#8 0x00007ffff67c03b4 in QAbstractButton::mouseReleas= eEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#9 0x00007ffff68824= ba in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGu= i.so.4
#10 0x00007ffff6442c08 in QWidget::event(QEvent*) () from /usr/li= b/libQtGui.so.4
#11 0x00007ffff63ef9ac in QApplicationPrivate::notify_he= lper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007ffff63= f656f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.= so.4
#13 0x00007ffff5b7528d in QCoreApplication::notifyInternal(QObject*= , QEvent*) () from /usr/lib/libQtCore.so.4
#14 0x00007ffff63f5bcf in QAp= plicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*= , QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.= so.4
#15 0x00007ffff646c7a2 in ?? () from /usr/lib/libQtGui.so.4
#16 = 0x00007ffff646b19c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/= lib/libQtGui.so.4
#17 0x00007ffff64932e2 in ?? () from /usr/lib/libQtGui= .so.4
#18 0x00007ffff1f0ea0d in g_main_context_dispatch () from /usr/lib= /libglib-2.0.so.0
#19 0x00007ffff1f0ecf8 in ?? () from /usr/lib/libglib-= 2.0.so.0
#20 0x00007ffff1f0edac in g_main_context_iteration () from /usr= /lib/libglib-2.0.so.0
#21 0x00007ffff5ba437d in QEventDispatcherGlib::pr= ocessEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/l= ibQtCore.so.4
#22 0x00007ffff64933a6 in ?? () from /usr/lib/libQtGui.so.= 4
#23 0x00007ffff5b73de1 in QEventLoop::processEvents(QFlags<QEventLo= op::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007ff= ff5b74145 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) = () from /usr/lib/libQtCore.so.4
#25 0x00007ffff5b796e9 in QCoreApplicati= on::exec() () from /usr/lib/libQtCore.so.4
#26 0x00000000004dccd6 in x2g= oMain (argc=3D1, argv=3D0x7fffffffe688) at ../ongetpass.cpp:108
#27 0x00= 000000004f354c in main (argc=3D1, argv=3D0x7fffffffe688) at ../x2goclient.c= pp:22

--001a1133b73e4c5a9e050d45e5ab-- --001a1133b73e4c5aa3050d45e5ad Content-Type: text/x-patch; charset=US-ASCII; name="0001-Fix-segfault-terminating-sessions.patch" Content-Disposition: attachment; filename="0001-Fix-segfault-terminating-sessions.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i58rek8k0 RnJvbSBkOGFhNjkxNzRjMTZiNmNjMjQ3MTdmYzQyM2ViMjE5ODJjMTFjYjY2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBWaWNlbnQgU2VsZmEgPHZ0c2VsZmFAZ21haWwuY29tPgpEYXRl OiBGcmksIDIzIEphbiAyMDE1IDAwOjE0OjA2ICswMTAwClN1YmplY3Q6IFtQQVRDSF0gRml4IHNl Z2ZhdWx0IHRlcm1pbmF0aW5nIHNlc3Npb25zCgotLS0KIG9ubWFpbndpbmRvdy5jcHAgfCAzICsr KwogMSBmaWxlIGNoYW5nZWQsIDMgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL29ubWFpbndp bmRvdy5jcHAgYi9vbm1haW53aW5kb3cuY3BwCmluZGV4IDhlMmUxMWEuLjk2MjU1MmQgMTAwNjQ0 Ci0tLSBhL29ubWFpbndpbmRvdy5jcHAKKysrIGIvb25tYWlud2luZG93LmNwcApAQCAtNTkzNSw2 ICs1OTM1LDkgQEAgdm9pZCBPTk1haW5XaW5kb3c6OnN1c3BlbmRTZXNzaW9uICggUVN0cmluZyBz ZXNzSWQgKQogCiBib29sIE9OTWFpbldpbmRvdzo6dGVybVNlc3Npb24gKCBRU3RyaW5nIHNlc3NJ ZCwgYm9vbCB3YXJuICkKIHsKKwlpZiAoICFueHByb3h5ICkKKwkJcmV0dXJuIHRydWU7CisKICAg ICBpZiAoIHdhcm4gKQogICAgIHsKICAgICAgICAgYm9vbCBoaWRlX2FmdGVyPWZhbHNlOwotLSAK Mi4yLjIKCg== --001a1133b73e4c5aa3050d45e5ad-- From orion@cora.nwra.com Tue Jan 27 00:09:08 2015 Received: (at 761) by bugs.x2go.org; 26 Jan 2015 23:09:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 X-Greylist: delayed 354 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Tue, 27 Jan 2015 00:09:08 CET Received: from mail.nwra.com (mail.nwra.com [192.163.220.161]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 8EF063BC69 for <761@bugs.x2go.org>; Tue, 27 Jan 2015 00:09:08 +0100 (CET) Received: from [10.10.20.7] (NORTHWEST-R.edge3.Denver1.Level3.net [4.28.99.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.nwra.com (Postfix) with ESMTPSA id 803236021E for <761@bugs.x2go.org>; Mon, 26 Jan 2015 15:03:08 -0800 (PST) Message-ID: <54C6C7AC.7090308@cora.nwra.com> Date: Mon, 26 Jan 2015 16:03:08 -0700 From: Orion Poplawski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: 761@bugs.x2go.org Subject: Fwd: [Bug 1186025] New: [abrt] x2goclient: QProcess::terminate(): x2goclient killed by SIGSEGV References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit This looks very similar. Also, looks like bug 762 is duplicate of this. -------- Forwarded Message -------- Subject: [Bug 1186025] New: [abrt] x2goclient: QProcess::terminate(): x2goclient killed by SIGSEGV Date: Mon, 26 Jan 2015 20:43:59 +0000 From: bugzilla@redhat.com To: orion@cora.nwra.com https://bugzilla.redhat.com/show_bug.cgi?id=1186025 Bug ID: 1186025 Summary: [abrt] x2goclient: QProcess::terminate(): x2goclient killed by SIGSEGV Product: Fedora Version: 20 Component: x2goclient Assignee: orion@cora.nwra.com Reporter: christopher.bollinger@momentumtelecom.com QA Contact: extras-qa@fedoraproject.org CC: orion@cora.nwra.com Description of problem: Problem occurred upon breaking a connection. I closed the window showing my remote X display using the 'X' at the top right of the window. Version-Release number of selected component: x2goclient-4.0.3.1-1.fc20 Additional info: reporter: libreport-2.2.3 backtrace_rating: 4 cmdline: x2goclient crash_function: QProcess::terminate executable: /usr/bin/x2goclient kernel: 3.17.8-200.fc20.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #0 QProcess::terminate at io/qprocess.cpp:2112 #1 ONMainWindow::termSession at ../onmainwindow.cpp:5952 #2 ONMainWindow::slotTermSessFromSt at ../onmainwindow.cpp:4573 #3 ONMainWindow::qt_static_metacall at moc_onmainwindow.cpp:366 #4 QMetaObject::activate at kernel/qobject.cpp:3567 #5 QAbstractButton::clicked at .moc/release-shared/moc_qabstractbutton.cpp:219 #6 QAbstractButtonPrivate::emitClicked at widgets/qabstractbutton.cpp:548 #7 QAbstractButtonPrivate::click at widgets/qabstractbutton.cpp:541 #8 QAbstractButton::mouseReleaseEvent at widgets/qabstractbutton.cpp:1123 #9 QToolButton::mouseReleaseEvent at widgets/qtoolbutton.cpp:723 -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.