X2Go Bug report logs -
#968
x2go runs "bash -c bash -c ..." on session create, causing dot bashrc issues
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#968
; Package x2goserver
.
(Sun, 22 Nov 2015 16:00:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Maarten Boekhold <boekhold@gmx.com>
:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Sun, 22 Nov 2015 16:00:02 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):
Package: x2goserver
Version: 4.0.1.19
When establishing a new x2go session, I noticed that my .bashrc file is
read/sourced/executed many times, in the end screwing up my PATH and
LD_LIBRARY_PATH settings (amongst others). I was surprised, because
.bashrc is only supposed to be read when opening an interactive shell,
and I am not expecting x2go to run interactive shells here.
I did some debugging by placing the following at the start of my .bashrc:
echo "bashrc" >> ~/slog
ps -fea | grep boekhold >> ~/slog
and based on this I can see x2go constantly running commands like:
bash -c bash -c 'echo
"X2GODATABEGIN:60b25f89-31db-46ec-8a7c-c93002fbfa50"; export
PATH="/usr/local/bin:/usr/bin:/bin"; export HOSTNAME && x2golist
still at first glance no reason for bash to process .bashrc. However,
further testing:
boekhold@xbmc:~$ rm slog
rm: cannot remove ‘slog’: No such file or directory
boekhold@xbmc:~$ bash -c date
Sun Nov 22 19:39:09 GST 2015
boekhold@xbmc:~$ cat slog
cat: slog: No such file or directory
boekhold@xbmc:~$ bash -c bash -c date
boekhold@xbmc:~$ cat slog
bashrc
boekhold 1147 1 1 Nov21 ? 00:20:20 .....
.....
See there? Running "bash -c bash -c" suddenly tricks bash into reading
the .bashrc file. No idea how, but it happens.
This is on Linux Mint 17.2, but I'm experiencing the same issue on a
Centos 7 system with the x2go EPEL packages. Client is x2goclient on
Windows 7 Professional SP1.
I can't figure out where that "bash -c bash -c" command is being
generated, hope that somebody from the X2Go team can provide some
guidance here?
Maarten
Information forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#968
; Package x2goserver
.
(Sat, 13 Aug 2016 22:35:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Mihai Moldovan <ionic@ionic.de>
:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Sat, 13 Aug 2016 22:35:02 GMT) (full text, mbox, link).
Message #10 received at 968@bugs.x2go.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: reassign -1 x2goclient 4.0.5.0
Control: tag -1 moreinfo
Is this a problem with the current client version?
.bashrc should still be executed, but probably not more than once per command.
Mihai
[signature.asc (application/pgp-signature, attachment)]
Bug reassigned from package 'x2goserver' to 'x2goclient'.
Request was from Mihai Moldovan <ionic@ionic.de>
to 968-submit@bugs.x2go.org
.
(Sat, 13 Aug 2016 22:35:03 GMT) (full text, mbox, link).
No longer marked as found in versions 4.0.1.19.
Request was from Mihai Moldovan <ionic@ionic.de>
to 968-submit@bugs.x2go.org
.
(Sat, 13 Aug 2016 22:35:03 GMT) (full text, mbox, link).
Marked as found in versions 4.0.5.0.
Request was from Mihai Moldovan <ionic@ionic.de>
to 968-submit@bugs.x2go.org
.
(Sat, 13 Aug 2016 22:35:03 GMT) (full text, mbox, link).
Added tag(s) moreinfo.
Request was from Mihai Moldovan <ionic@ionic.de>
to 968-submit@bugs.x2go.org
.
(Sat, 13 Aug 2016 22:35:03 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
X2Go Developers <owner@bugs.x2go.org>.
Last modified:
Sun Dec 22 05:14:38 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.