[FreeNX-kNX] nxnode --resumesession hangs on 'read CMDLINE'

Matthew Richardson M.Richardson at ed.ac.uk
Fri Aug 21 11:38:49 UTC 2009


Some more digging into why my sessions aren't resuming properly on a
master/slave pool has uncovered the following.

When the client reconnects to the master, I see the following processes
on the master:

/bin/bash /usr/bin/nxserver -c /usr/bin/nxserver --login
/usr/bin/expect /usr/bin/nxnode-login -- ssh user 22 /usr/bin/nxnode \
--resumesession
ssh -2 -x -l user culrain.see.ed.ac.uk -o NumberOfPasswordPrompts 1 -p \
22 /usr/bin/nxnode --resumesession

This results on the client having the processes:

/bin/bash /usr/bin/nxnode --resumesession
tail -n1 -f \
/tmp/.nx-user/.nx/C-culrain.see.ed.ac.uk-1003-3998EF6506748C739BC10454FB0B8\
D63/session


An strace on at 'nxnode --resumesession' shows it is hung on a read(0,

running 'sh -x nxnode --resumesession' as the user shows the following:

+ echo 'NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not
detected)'
NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected)
+ '[' --resumesession '!=' --check -a --resumesession '!=' --setkey -a
--resumesession '!=' --agent -a --resumesession '!=' --slave ']'
+ read CMDLINE


It then pauses waiting for input (the read(0, in strace).  Sending input
it then tries to do some bash magic to split the input into lots of
other variables, e.g:

 CMDLINE='a=b&STRING'
+ '[' --resumesession = --slave ']'
+ nxnode_func --resumesession
+ case "$1" in
+ startsession restore
++ getparam user
++ stringinstring '&user=' 'a=b&STRING'
++ case "$2" in
++ return 1
++ return 1
+ user=

This occurs for all variables, including 'session', as a result, the
session isn't ever found and resumed properly.

Where should this CMDLINE be coming from, and what form should it take?

Thanks,

Matthew







-- 

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20090821/7b4489a6/attachment.sig>


More information about the FreeNX-kNX mailing list