X2Go Bug report logs - #1016
python-x2go breaks with gevent 1.1.0

version graph

Package: python-x2go; Maintainer for python-x2go is X2Go Developers <x2go-dev@lists.x2go.org>; Source for python-x2go is src:python-x2go.

Reported by: Cezary Statkiewicz <cezio@thelirium.net>

Date: Fri, 1 Apr 2016 17:40:02 UTC

Severity: normal

Tags: pending

Found in version 0.5.0.4

Fixed in version 0.5.0.5

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1016: python-x2go breaks with gevent 1.1.0
Reply-To: Cezary Statkiewicz <cezio@thelirium.net>, 1016@bugs.x2go.org
Resent-From: Cezary Statkiewicz <cezio@thelirium.net>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 01 Apr 2016 17:40:02 +0000
Resent-Message-ID: <handler.1016.B.145953225010418@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1016
X-X2Go-PR-Package: python-x2go
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.145953225010418
          (code B); Fri, 01 Apr 2016 17:40:02 +0000
Received: (at submit) by bugs.x2go.org; 1 Apr 2016 17:37:30 +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=0.8 required=3.0 tests=BAYES_50,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 2EBE55DA99
	for <submit@bugs.x2go.org>; Fri,  1 Apr 2016 19:37:29 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id cGI9qRw-2Xiu for <submit@bugs.x2go.org>;
	Fri,  1 Apr 2016 19:37:23 +0200 (CEST)
X-Greylist: delayed 551 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Fri, 01 Apr 2016 19:37:22 CEST
Received: from karaluch.thelirium.net (karaluch.thelirium.net [94.23.36.169])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id E2E9F5DA82
	for <submit@bugs.x2go.org>; Fri,  1 Apr 2016 19:37:22 +0200 (CEST)
Received: from gburek.localnet (109-207-48-160.ronus.pl [109.207.48.160])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by karaluch.thelirium.net (Postfix) with ESMTPSA id DE35E2600C8
	for <submit@bugs.x2go.org>; Fri,  1 Apr 2016 19:28:10 +0200 (CEST)
From: Cezary Statkiewicz <cezio@thelirium.net>
To: submit@bugs.x2go.org
Date: Fri, 01 Apr 2016 19:27:59 +0200
Message-ID: <2350558.GDfSlUhcah@gburek>
Organization: TheLirium.net
User-Agent: KMail/4.14.10 (Linux/4.4.1-gentoo; KDE/4.14.17; x86_64; ; )
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart3298884.tQilaBG0K5"; micalg="pgp-sha1"; protocol="application/pgp-signature"
[Message part 1 (text/plain, inline)]
Package: python-x2go
Version: 0.5.0.4

 Hi,

 I'm using x2go python bindings, and noticed that X2GoSession's .suspend() can 
break with gevent 1.1. I've downgraded gevent to 1.0.2 and unchanged code 
works fine with it.

 Sample code (i believe taken from a sample code):


 class Client(X2GoClient):
    def do_connect(self):
        ...
        sid = self.register_session(server=session_args.pop('server', None),
                                    username=session_args.pop('username', 
None),
                                    profile_name=session_args.pop('profile_name', 
None),
                                    port=session_args.pop('port', None),
                                    return_object=True)
        sid.update_params(session_args)
        sid.connect()
        self.clean_sessions(sid.uuid)
        sid.start(cmd='XFCE')

        session_name = sid.get_session_name()
        if session_name is None:
            log.error("X2Go session creation: Session name is None, 
terminating")
            return
        sid.suspend()
        ...


 Traceback:


  File "/usr/lib/python2.7/dist-packages/x2go/session.py", line 2303, in 
suspend
    self._lock.release()
  File "gevent/_semaphore.py", line 266, in 
gevent._semaphore.BoundedSemaphore.release (gevent/gevent._semaphore.c:4866)
  File "gevent/_semaphore.py", line 268, in 
gevent._semaphore.BoundedSemaphore.release (gevent/gevent._semaphore.c:4802)
thread.error: Semaphore released too many times



 Best Regards,

 Cezary Statkiewicz
 
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Sep 23 17:37:53 2020; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.