X2Go Bug report logs - #327
x2go client crashes if .bashrc prints anything

version graph

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

Reported by: "Dan Halbert" <halbert@halwitz.org>

Date: Mon, 21 Oct 2013 12:48:02 UTC

Severity: normal

Tags: confirmed, wontfix

Found in version 4.0.0.3

Full log


Report forwarded to x2go-dev@lists.berlios.de, X2Go Developers <x2go-dev@lists.berlios.de>:
Bug#327; Package x2goclient. (Mon, 21 Oct 2013 12:48:02 GMT) (full text, mbox, link).


Acknowledgement sent to "Dan Halbert" <halbert@halwitz.org>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.berlios.de>. (Mon, 21 Oct 2013 12:48:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 21 Oct 2013 12:41:43 +0000
From halbert@halwitz.org  Mon Oct 21 14:41:43 2013
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.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,
	RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_BLOCKED autolearn=no version=3.3.2
X-Greylist: delayed 4199 seconds by postgrey-1.34 at ymir; Mon, 21 Oct 2013 14:41:42 CEST
Received: from smtp122.dfw.emailsrvr.com (smtp122.dfw.emailsrvr.com [67.192.241.122])
	by ymir (Postfix) with ESMTPS id DBE4A5DB16
	for <submit@bugs.x2go.org>; Mon, 21 Oct 2013 14:41:42 +0200 (CEST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp12.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 14F15300DC
	for <submit@bugs.x2go.org>; Sat, 19 Oct 2013 12:22:47 -0400 (EDT)
X-Virus-Scanned: OK
Received: from smtp66.iad3a.emailsrvr.com (smtp66.iad3a.emailsrvr.com [173.203.187.66])
	by smtp12.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTPS id E72D230335
	for <submit@bugs.x2go.org>; Sat, 19 Oct 2013 12:22:46 -0400 (EDT)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp1.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 07F02600BB;
	Sat, 19 Oct 2013 12:22:44 -0400 (EDT)
X-Virus-Scanned: OK
Received: from app40.wa-webapps.iad3a (relay.iad3a.rsapps.net [172.27.255.110])
	by smtp1.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id DB48D600B8;
	Sat, 19 Oct 2013 12:22:43 -0400 (EDT)
Received: from halwitz.org (localhost.localdomain [127.0.0.1])
	by app40.wa-webapps.iad3a (Postfix) with ESMTP id 9C18F300044;
	Sat, 19 Oct 2013 12:22:43 -0400 (EDT)
Received: by beta.apps.rackspace.com
    (Authenticated sender: halbert@halwitz.org, from: halbert@halwitz.org) 
    with HTTP; Sat, 19 Oct 2013 12:22:43 -0400 (EDT)
Date: Sat, 19 Oct 2013 12:22:43 -0400 (EDT)
Subject: x2go client crashes if .bashrc prints anything
From: "Dan Halbert" <halbert@halwitz.org>
To: submit@bugs.x2go.org
MIME-Version: 1.0
Content-Type: multipart/alternative;boundary="----=_20131019122243000000_69938"
Importance: Normal
X-Priority: 3 (Normal)
X-Type: html
Message-ID: <1382199763.63727452@beta.apps.rackspace.com>
X-Mailer: webmail7.0
[Message part 1 (text/plain, inline)]
Package: x2goclient
Version: 4.0.0.3
 
If I put an
echo "testing"   # exact text doesn't matter
 
at the top of my .bashrc, then the x2goclient crashes immediately when trying to start a session.
 
(The crash does not occur if I put a similar statement in .bash_login.)
 
I have reproduced this on the Windows client; I believe a colleague saw it on both the Windows and Linux clients.
 
The x2go server being used is  4.0.1.6-0~712~precise1.

[Message part 2 (text/html, inline)]

Information forwarded to x2go-dev@lists.berlios.de, X2Go Developers <x2go-dev@lists.berlios.de>:
Bug#327; Package x2goclient. (Tue, 29 Oct 2013 08:48:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.berlios.de>. (Tue, 29 Oct 2013 08:48:02 GMT) (full text, mbox, link).


Message #10 received at 327@bugs.x2go.org (full text, mbox, reply):

Received: (at 327) by bugs.x2go.org; 29 Oct 2013 08:36:38 +0000
From mike.gabriel@das-netzwerkteam.de  Tue Oct 29 09:36:30 2013
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=unavailable version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir (Postfix) with ESMTPS id 1BED75DA6C;
	Tue, 29 Oct 2013 09:36:30 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 9F3511A54;
	Tue, 29 Oct 2013 09:36:29 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 7D7EB3BA28;
	Tue, 29 Oct 2013 09:36:29 +0100 (CET)
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 7zzox1wY+TUA; Tue, 29 Oct 2013 09:36:29 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 5A76C3BB39;
	Tue, 29 Oct 2013 09:36:29 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPSA id 0981D3BA28;
	Tue, 29 Oct 2013 09:36:29 +0100 (CET)
Received: from nocatv2.tng.de (nocatv2.tng.de [213.178.75.58]) by
 mail.das-netzwerkteam.de (Horde Framework) with HTTP; Tue, 29 Oct 2013
 08:36:28 +0000
Date: Tue, 29 Oct 2013 08:36:28 +0000
Message-ID: <20131029083628.Horde.8Mmv6w__TzqxxZW5QIjqjw9@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Dan Halbert <halbert@halwitz.org>, 327@bugs.x2go.org
Cc: control@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#327: x2go client crashes if .bashrc prints
 anything
References: <1382199763.63727452@beta.apps.rackspace.com>
In-Reply-To: <1382199763.63727452@beta.apps.rackspace.com>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.4)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 213.178.75.58
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101
 Firefox/23.0 Iceweasel/23.0
Content-Type: multipart/signed; boundary="=_nxfGQvizR5tIXlBF527JPg2";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
tag #327 confirmed
thanks

Hi Dan,

On  Sa 19 Okt 2013 18:22:43 CEST, Dan Halbert wrote:

> If I put an
> echo "testing"   # exact text doesn't matter

I presume, this on the server.

> at the top of my .bashrc, then the x2goclient crashes immediately  
> when trying to start a session.
>
> (The crash does not occur if I put a similar statement in .bash_login.)
>
> I have reproduced this on the Windows client; I believe a colleague  
> saw it on both the Windows and Linux clients.
>
> The x2go server being used is  4.0.1.6-0~712~precise1.

I can confirm that the issue exists with latest X2Go Client.

I could confirm this issue on Debian wheezy or Ubuntu precise as X2Go  
Server. On Ubuntu lucid, the problem does not occur.

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-keys, inline)]
[Message part 3 (application/pgp-signature, inline)]

Added tag(s) confirmed. Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to control@bugs.x2go.org. (Tue, 29 Oct 2013 08:48:02 GMT) (full text, mbox, link).


Information forwarded to x2go-dev@lists.berlios.de, X2Go Developers <x2go-dev@lists.berlios.de>:
Bug#327; Package x2goclient. (Tue, 29 Oct 2013 12:03:01 GMT) (full text, mbox, link).


Acknowledgement sent to Dan Halbert <halbert@halwitz.org>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.berlios.de>. (Tue, 29 Oct 2013 12:03:01 GMT) (full text, mbox, link).


Message #17 received at 327@bugs.x2go.org (full text, mbox, reply):

Received: (at 327) by bugs.x2go.org; 29 Oct 2013 12:01:47 +0000
From halbert@halwitz.org  Tue Oct 29 13:01:46 2013
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
X-Greylist: delayed 370 seconds by postgrey-1.34 at ymir; Tue, 29 Oct 2013 13:01:46 CET
Received: from smtp159.ord.emailsrvr.com (smtp159.ord.emailsrvr.com [173.203.6.159])
	by ymir (Postfix) with ESMTPS id 6BF255DA6C
	for <327@bugs.x2go.org>; Tue, 29 Oct 2013 13:01:46 +0100 (CET)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp20.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id 9B5E41C04CF;
	Tue, 29 Oct 2013 07:55:34 -0400 (EDT)
X-Virus-Scanned: OK
Received: by smtp20.relay.ord1a.emailsrvr.com (Authenticated sender: halbert-AT-halwitz.org) with ESMTPSA id 51F9F1C04FD;
	Tue, 29 Oct 2013 07:55:34 -0400 (EDT)
Message-ID: <526FA219.9030701@halwitz.org>
Date: Tue, 29 Oct 2013 07:55:05 -0400
From: Dan Halbert <halbert@halwitz.org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1
MIME-Version: 1.0
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 327@bugs.x2go.org
CC: control@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#327: x2go client crashes if .bashrc prints anything
References: <1382199763.63727452@beta.apps.rackspace.com> <20131029083628.Horde.8Mmv6w__TzqxxZW5QIjqjw9@mail.das-netzwerkteam.de>
In-Reply-To: <20131029083628.Horde.8Mmv6w__TzqxxZW5QIjqjw9@mail.das-netzwerkteam.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
On 10/29/2013 4:36 AM, Mike Gabriel wrote:
> If I put an
>> echo "testing"   # exact text doesn't matter
>
> I presume, this on the server.
Right, this is on the server. With the Windows client there is no 
.bashrc anyway. I confirmed with my colleague that he saw this on both 
the Windows and Ubuntu Precise clients.

Which windowing system chosen on the server does not seem to matter 
either. I saw it with UNITY and with just "Terminal".

> I could confirm this issue on Debian wheezy or Ubuntu precise as X2Go 
> Server. On Ubuntu lucid, the problem does not occur.
That's interesting. The reason for putting in the echo's was to debug a 
completely unrelated problem about which shell init got run when we were 
running some batch jobs. I had instrumented the init files before 
without difficulty. Thanks for looking at this.


Information forwarded to x2go-dev@lists.berlios.de, X2Go Developers <x2go-dev@lists.berlios.de>:
Bug#327; Package x2goclient. (Tue, 29 Oct 2013 12:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.berlios.de>. (Tue, 29 Oct 2013 12:27:05 GMT) (full text, mbox, link).


Message #22 received at 327@bugs.x2go.org (full text, mbox, reply):

Received: (at 327) by bugs.x2go.org; 29 Oct 2013 12:23:17 +0000
From mike.gabriel@das-netzwerkteam.de  Tue Oct 29 13:23:17 2013
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
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir (Postfix) with ESMTPS id 178C65DA6C;
	Tue, 29 Oct 2013 13:23:17 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 80010BBE;
	Tue, 29 Oct 2013 13:23:16 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 72CDA3BB6D;
	Tue, 29 Oct 2013 13:23:16 +0100 (CET)
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 ju2DA1wMpiu4; Tue, 29 Oct 2013 13:23:16 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 47CB63BB68;
	Tue, 29 Oct 2013 13:23:16 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPSA id 1982E3BB58;
	Tue, 29 Oct 2013 13:23:16 +0100 (CET)
Received: from m-047.informatik.uni-kiel.de (m-047.informatik.uni-kiel.de
 [134.245.254.47]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Tue, 29 Oct 2013 12:23:16 +0000
Date: Tue, 29 Oct 2013 12:23:16 +0000
Message-ID: <20131029122316.Horde.0UwNNkH8HU_JhQ-Y0lXJYw2@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Dan Halbert <halbert@halwitz.org>
Cc: 327@bugs.x2go.org, control@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#327: x2go client crashes if .bashrc prints
 anything
References: <1382199763.63727452@beta.apps.rackspace.com>
 <20131029083628.Horde.8Mmv6w__TzqxxZW5QIjqjw9@mail.das-netzwerkteam.de>
 <526FA219.9030701@halwitz.org>
In-Reply-To: <526FA219.9030701@halwitz.org>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.4)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 134.245.254.47
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101
 Firefox/23.0 Iceweasel/23.0
Content-Type: multipart/signed; boundary="=_DvYFWd4WI7oZv9DFGwFrZQ3";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
clone #327 -1
tag #327 wontfix
retitle -1 users can inject data into X2Go Client using .bashrc
severity -1 grave

Hi Dan,

On  Di 29 Okt 2013 12:55:05 CET, Dan Halbert wrote:

> On 10/29/2013 4:36 AM, Mike Gabriel wrote:
>> If I put an
>>> echo "testing"   # exact text doesn't matter
>>
>> I presume, this on the server.
> Right, this is on the server. With the Windows client there is no  
> .bashrc anyway. I confirmed with my colleague that he saw this on  
> both the Windows and Ubuntu Precise clients.
>
> Which windowing system chosen on the server does not seem to matter  
> either. I saw it with UNITY and with just "Terminal".
>
>> I could confirm this issue on Debian wheezy or Ubuntu precise as  
>> X2Go Server. On Ubuntu lucid, the problem does not occur.
> That's interesting. The reason for putting in the echo's was to  
> debug a completely unrelated problem about which shell init got run  
> when we were running some batch jobs. I had instrumented the init  
> files before without difficulty. Thanks for looking at this.

I have looked at this in depth this morning. Indeed an echoing .bashrc  
file breaks X2Go. But it also breaks everything else around SSH, esp.  
scp [1, 2].

The first link [1] also provides a solution that I want to quote here:

""" (file: ~/.bashrc)
[... normal .bashrc stuff ...]

if [[ $- =~ "i" ]]; then
   echo "SPEAK OUT LOUD!!!"
fi
"""

The i-flag in $- checks if the shell is interactive or not. With X2Go,  
this flag will not get set.

Greets,
Mike

[1]  
http://stackoverflow.com/questions/12440287/scp-doesnt-work-when-echo-in-bashrc
[2] https://bugzilla.redhat.com/show_bug.cgi?id=20527

-- 

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-keys, inline)]
[Message part 3 (application/pgp-signature, inline)]

Bug 327 cloned as bug 333 Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to control@bugs.x2go.org. (Tue, 29 Oct 2013 12:27:05 GMT) (full text, mbox, link).


Added tag(s) wontfix. Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to control@bugs.x2go.org. (Tue, 29 Oct 2013 12:27:05 GMT) (full text, mbox, link).


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#327; Package x2goclient. (Sat, 03 Oct 2015 10:15:01 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Mar 28 09:31:01 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.