X2Go Bug report logs - #543
x2golistdesktops locks up if xwininfo does

version graph

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

Reported by: "Gregory R. Warnes" <greg@warnes.net>

Date: Wed, 9 Jul 2014 22:00:02 UTC

Severity: normal

Tags: patch, pending

Found in version 3.1.1.1-0~131~ubuntu12

Fixed in version 4.0.1.16

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

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#543: [X2Go-Dev] Bug#543: x2golistdesktops locks up if xwininfo does
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 543@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 10 Jul 2014 23:25:01 +0000
Resent-Message-ID: <handler.543.B543.140503453421330@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 543
X-X2Go-PR-Package: x2godesktopsharing
X-X2Go-PR-Keywords: 
Received: via spool by 543-submit@bugs.x2go.org id=B543.140503453421330
          (code B ref 543); Thu, 10 Jul 2014 23:25:01 +0000
Received: (at 543) by bugs.x2go.org; 10 Jul 2014 23:22:14 +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 autolearn=ham
	version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 15DB75DB0D
	for <543@bugs.x2go.org>; Fri, 11 Jul 2014 01:22:14 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id C4B4815B1;
	Fri, 11 Jul 2014 01:22:13 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id BCF4B3BA64;
	Fri, 11 Jul 2014 01:22:13 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id j6y07iYnco0p; Fri, 11 Jul 2014 01:22:13 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 74DFA3BA25;
	Fri, 11 Jul 2014 01:22:13 +0200 (CEST)
Received: from p5B3B9AEF.dip0.t-ipconnect.de (p5B3B9AEF.dip0.t-ipconnect.de
 [91.59.154.239]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Thu, 10 Jul 2014 23:22:13 +0000
Date: Thu, 10 Jul 2014 23:22:13 +0000
Message-ID: <20140710232213.Horde.cTXi9G5e8PkovCdLzkXIdg3@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: "Gregory R. Warnes" <greg@warnes.net>, 543@bugs.x2go.org
References: <DF03EDF1-51CB-4E07-B316-4411BC0D97CB@warnes.net>
In-Reply-To: <DF03EDF1-51CB-4E07-B316-4411BC0D97CB@warnes.net>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.7)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 91.59.154.239
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101
 Firefox/30.0 Iceweasel/30.0
Content-Type: multipart/signed; boundary="=_q5A1jhLufgFzl0vMfue6Rw1";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Control: tag -1 patch

On  Mi 09 Jul 2014 23:57:09 CEST, Gregory R. Warnes wrote:


> Hi,  my server had a ?weird? file in /tmp/.X11-unix/ for which  
> xwininfo would never return, locking up x2golistdesktops.
>
> The solution is to provide a timeout for the shell call to xwininfo.  
>  This can be accomplished either using the shell command ?timeout?  
> or the Perl IPC::Run module (as described in the first response to  
> http://stackoverflow.com/questions/16918005/time-out-when-using-system-cmd-in-perl).
>
> For my purpose, I?ve used the shell timeout command. Patch below.
>
> -Greg
>
>
> --- /usr/bin/x2golistdesktops	2014-04-03 10:14:22.000000000 -0500
> +++ x2golistdesktops	2014-07-09 16:43:54.000000000 -0500
> @@ -43,7 +43,7 @@
>  	$serv=hostname;
>  }
>
> -my $rsess=`x2golistsessions x2goserver |grep _stR`;
> +my $rsess=`timeout 1s x2golistsessions x2goserver |grep _stR`;
>  my @rsess=split("\n","$rsess");
>  my @rdisplays;
>  for (my $i=0;$i<@rsess;$i++)
> @@ -67,7 +67,7 @@
>  	$checkdisp="${checkdisp}I";
>  	if (!( $rdisp =~ m/$checkdisp/ ))
>  	{
> -		my $inf=`xwininfo -root -display $display 2> /dev/null`;
> +		my $inf=`timeout 1s xwininfo -root -display $display 2> /dev/null`;
>  		if ( $inf=~ m/geometry/)
>  		{
>  			print "$uname\@$display\n";
> @@ -88,4 +88,4 @@
>  }
>
>  # closing syslog
> -closelog;
> \ No newline at end of file
> +closelog;
> w

The glorious question here is, actually: Why does xwininfo hang in the  
first place?

Mike
-- 

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

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Mon Jul 22 09:57:50 2024; 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.