X2Go Bug report logs - #558
Empty $USER env var makes x2go start an infinite loop

version graph

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

Reported by: Jacques-Olivier Goussard <jogoussard@gmail.com>

Date: Fri, 25 Jul 2014 15:50:02 UTC

Severity: normal

Tags: pending

Fixed in version

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#558: Empty $USER env var makes x2go start an infinite loop
Reply-To: Jacques-Olivier Goussard <jogoussard@gmail.com>, 558@bugs.x2go.org
Resent-From: Jacques-Olivier Goussard <jogoussard@gmail.com>
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, 25 Jul 2014 15:50:02 +0000
Resent-Message-ID: <handler.558.B.140630313730696@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 558
X-X2Go-PR-Package: x2goserver
Received: via spool by submit@bugs.x2go.org id=B.140630313730696
          (code B); Fri, 25 Jul 2014 15:50:02 +0000
Received: (at submit) by bugs.x2go.org; 25 Jul 2014 15:45:37 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id F0D625DB51
	for <submit@bugs.x2go.org>; Fri, 25 Jul 2014 17:45:35 +0200 (CEST)
Received: by mail-qg0-f50.google.com with SMTP id q108so5214515qgd.37
        for <submit@bugs.x2go.org>; Fri, 25 Jul 2014 08:45:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
MIME-Version: 1.0
X-Received: by with SMTP id h9mr27727091qab.67.1406303134206; Fri,
 25 Jul 2014 08:45:34 -0700 (PDT)
Received: by with HTTP; Fri, 25 Jul 2014 08:45:34 -0700 (PDT)
Date: Fri, 25 Jul 2014 11:45:34 -0400
Message-ID: <CAEpoP_kENqprO5aC_OcqF0=iozuXUWROw8whmEDS+z_U7JdVew@mail.gmail.com>
From: Jacques-Olivier Goussard <jogoussard@gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary=001a11c2b70ac2cf5704ff067624
[Message part 1 (text/plain, inline)]
Package: x2goserver
Version: x2goserver.x86_64
OS: Centos 5

I accidentally stumbled upon this one: if the $USER env var is empty (in my
case that was a bug in my .bashrc that generated that), then X2GO doesn't
properly reject and log the connection attempt. The client freezes in
'Connecting' state and the sqllite scripts seem to enter an infinite loop
trying to do insert session.
Once I kill the x2gostartagent process, I get the list of calls in
x2gosqllitewrapper.pm and can see that the provided session ID is missing
the username part (as USER is empty).
Instead of being stuck in session insertion, the fact that USER is empty
should be caught earlier, properly reported in syslog and session cleanly
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Sep 18 03:32:48 2019; 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.