[FreeNX-kNX] Porting to FreeBSD, trans_socket log, partial success

Mathias Picker Mathias.Picker at gmx.de
Wed Jun 20 13:04:35 UTC 2007


Can anyone comment on this log by nxagent compiled with NX_TRANS_[INFO|
WARN|DEBUG|...] defined (in programs/Xserver/os and lib/X11)

What actually happens:

nxagent seems to stay indefinitely in a loop, polling ... (what? local x
server?). If I press ^C, it stops with this and starts listening on port
5000 for a remote connection. Then I can connect to it with 
nxproxy -C localhost:1000.

So, what does it do in that poll loop, and why? Should it fail there and
doesn't for some reason? Any ideas?

The log:

InitAuthorization: Going to propagate auth file
'/Users/mathiasp/.Xauthority' to the environment.
NXVerifyRgbPath: Looking for [/usr/share/X11/rgb] file.
NXVerifyRgbPath: Can't find the rgb file [/usr/share/X11/rgb].
NXVerifyRgbPath: Looking for [/usr/share/X11/rgb.txt] file.
NXVerifyRgbPath: Can't find the rgb file [/usr/share/X11/rgb.txt].
NXVerifyRgbPath: Looking for [/etc/X11/rgb] file.
NXVerifyRgbPath: Can't find the rgb file [/etc/X11/rgb].
NXVerifyRgbPath: Looking for [/etc/X11/rgb.txt] file.
NXVerifyRgbPath: Can't find the rgb file [/etc/X11/rgb.txt].
_NXGetRgbPath: Using default rgb file path [/usr/X11R6/lib/X11/rgb].
_XSERVTransMakeAllCOTSServerListeners(1000,8492a6c)
_XSERVTransMakeAllCOTSServerListeners: opening tcp/:1000
_XSERVTransOpenCOTSServer(tcp/:1000)
_XSERVTransOpen(2,tcp/:1000)
_XSERVTransParseAddress(tcp/:1000)
_XSERVTransSelectTransport(tcp)
_XSERVTransSocketOpenCOTSServer(tcp,mp.virtual-earth.de,1000)
_XSERVTransSocketSelectFamily(tcp)
_XSERVTransSocketOpen(1,1)
_XSERVTransSocketINETCreateListener(1000)
_XSERVTransSocketCreateListener(84c10c0,0)
SocketCreateListener: Creating listener for ciptr at [0x84c10c0] on path
[TCP].
SocketCreateListener: Set flags to [1] for ciptr [0x84c10c0].
_XSERVTransSocketINETGetAddr(84c10c0)
_XSERVTransMakeAllCOTSServerListeners: opened listener for tcp, 0
_XSERVTransMakeAllCOTSServerListeners: opening local/:1000
_XSERVTransOpenCOTSServer(local/:1000)
_XSERVTransOpen(2,local/:1000)
_XSERVTransParseAddress(local/:1000)
_XSERVTransSelectTransport(local)
_XSERVTransSocketOpenCOTSServer(local,mp.virtual-earth.de,1000)
_XSERVTransSocketSelectFamily(local)
_XSERVTransSocketOpen(3,1)
_XSERVTransSocketUNIXCreateListener(1000)
_XSERVTrans_NXGetUnixDir(/tmp/.X11-unix)
_NXGetUnixDir: Trying with the NX_TEMP environment.
_NXGetUnixDir: Trying with the TEMP environment.
_NXGetUnixDir: Returning default X11 Unix directory [/tmp/.X11-unix].
_XSERVTrans_NXGetUnixPath(/tmp/.X11-unix/X)
_XSERVTrans_NXGetUnixDir(/tmp/.X11-unix)
_NXGetUnixPath: Got X11 Unix directory [/tmp/.X11-unix].
_NXGetUnixPath: Returning X11 Unix path [/tmp/.X11-unix/X].
SocketUNIXCreateListener: Unlinking path [/tmp/.X11-unix/X1000] for
ciptr at [0x84c1100].
_XSERVTransSocketCreateListener(84c1100,1)
SocketCreateListener: Creating listener for ciptr at [0x84c1100] on path
[/tmp/.X11-unix/X1000].
SocketCreateListener: Set flags to [1] for ciptr [0x84c1100].
_XSERVTransMakeAllCOTSServerListeners: opened listener for local, 1
_XSERVTransMakeAllCLTSServerListeners: partial=0, actual=2, complete=2 

NXAGENT - Version 2.1.0

Copyright (C) 2001, 2006 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Agent running with pid '56235'.
Session: Starting session at 'Wed Jun 20 14:19:55 2007'.

XOpenDisplay: Called with display [nx/nx,link=lan:1000].
_X11TransConnectDisplay: Called with display_name [nx/nx,link=lan:1000].
_X11TransConnectDisplay: Forced protocol to [nx].
_X11TransConnectDisplay: Checking hostname [nx,link=lan:1000].
_X11TransConnectDisplay: Forced hostname [nx,link=lan].
_X11TransConnectDisplay: Converted protocol to [local].
_X11TransConnectDisplay: Entering connection loop.
_X11TransConnectDisplay: Going to call _X11TransOpenCOTSClient(address)
with address [local/nx,link=lan:1000].
_X11TransOpenCOTSClient(local/nx,link=lan:1000)
_X11TransOpen(1,local/nx,link=lan:1000)
_X11TransParseAddress(local/nx,link=lan:1000)
_X11TransSelectTransport(local)
_X11TransSocketOpenCOTSClient(local,nx,link=lan,1000)
_X11TransSocketSelectFamily(local)
SocketCreateConnInfo: Going to create the NX connection info.
SocketCreateConnInfo: Going to create the NX socketpair.
SocketCreateConnInfo: X socket end is [3] NX proxy end is [4].
SocketCreateConnInfo: Allocated new _NXProxyConnInfo for [3].
_X11TransConnectDisplay: Going to call
_X11TransConnect(trans_conn,address).
_X11TransConnect(3,local/nx,link=lan:1000)
_X11TransParseAddress(local/nx,link=lan:1000)
_X11TransSocketUNIXConnect(3,nx,link=lan,1000)
_X11Trans_NXGetUnixPath(/tmp/.X11-unix/X)
_X11Trans_NXGetUnixDir(/tmp/.X11-unix)
_NXGetUnixDir: Trying with the NX_TEMP environment.
_NXGetUnixDir: Trying with the TEMP environment.
_NXGetUnixDir: Returning default X11 Unix directory [/tmp/.X11-unix].
_NXGetUnixPath: Got X11 Unix directory [/tmp/.X11-unix].
_NXGetUnixPath: Returning X11 Unix path [/tmp/.X11-unix/X].
SocketConnectConnInfo: Going to connect NX fd [3] to host [nx,link=lan]
port [1000].
SocketConnectConnInfo: Setting close-on-exec flag on local NX descriptor
[3].
SocketConnectConnInfo: Creating the NX transport with display
[nx,link=lan:1000].
SocketConnectConnInfo: Starting the NX agent with descriptor [4].
_X11TransConnectDisplay: Going to call _X11TransGetPeerAddr(trans_conn,
&family, &saddrlen, &saddr).
_X11TransGetPeerAddr(3)
_X11TransConnectDisplay: Going to call _X11TransConvertAddress(&family,
&saddrlen, &saddr).
_X11TransConvertAddress(1,22,84cc640)
_X11TransConnectDisplay: Out of connection loop.
_X11TransSetOption(3,2,1)

XOpenDisplay: Connected display with dpy->fd = [3].
_X11TransSocketWritev(3,bfbfe6a0,1)
_X11TransSetOption(3,1,1)
_X11TransSocketRead(3,bfbfe7f8,8)
SocketRead: Read from descriptor [3] would block.
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
_XSERVTransSocketRejectConnection(84c10c0)
_XSERVTransSocketRejectConnection(84c1100)
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
_XSERVTransSocketRejectConnection(84c10c0)
_XSERVTransSocketRejectConnection(84c1100)
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
_XSERVTransSocketRejectConnection(84c10c0)
_XSERVTransSocketRejectConnection(84c1100)
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
_XSERVTransSocketRejectConnection(84c10c0)
_XSERVTransSocketRejectConnection(84c1100)
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
_XSERVTransSocketRejectConnection(84c10c0)
_XSERVTransSocketRejectConnection(84c1100)
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
_XSERVTransSocketRejectConnection(84c10c0)
_XSERVTransSocketRejectConnection(84c1100)
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XWaitForReadable: Calling poll().
GiveUp: Called with signal [2].
_XWaitForReadable: Out of select with result [-1] and errno [4].
_X11TransSocketCongestionChange(84c1200)
SocketCongestionChange: Checking congestion on fd [3] with old state
[0].
SocketCongestionChange: No change on fd [3] with current state [0].
_XIOError: Resetting the display buffers.
_XIOError: Resetting the display buffers.
_X11TransSocketDisconnect(84c1200,3)
_X11TransClose(3)
_X11TransSocketUNIXClose(84c1200,3)
SocketCloseConnInfo: Going to close the NX fd [3].
SocketCloseConnInfo: Freeing _NXProxyConnInfo structure for [3].
SocketCloseConnInfo: Should now close the local descriptor [3].
SocketUNIXClose: Flags are [0] for ciptr at [0x84c1200] check is [0].
_X11TransFreeConnInfo(84c1200)

******** Pressing Strg-C here ********

Warning: Signal 'SIGINT not installed in process with pid '56235'.
Warning: Signal 'SIGTERM not installed in process with pid '56235'.
Warning: Signal 'SIGHUP not installed in process with pid '56235'.

Fatal server error:
Error: Unable to open display 'nx/nx,link=lan:1000'.

AbortServer: Going to abort the current server.
AbortServer: Going to clean up NX resources and exit.
Info: Proxy running in server mode with pid '56235'.
Info: Waiting for connection from any host on port '5000'.
Info: Accepted connection from '127.0.0.1' with port '64214'.
Info: Connection with remote proxy established.
Info: Synchronizing local and remote caches.
Info: Handshaking with remote proxy completed.
Error: Failed to set TCP_NODELAY flag on FD#4 to 1. Error is 22 'Invalid
argument'.
Info: Using lan link parameters 1536/24/1/0.
Info: Using agent parameters 5000/50/0/0.
Info: Using image streaming parameters 50/128/1024KB/6144/768.
Info: Using image cache parameters 1/1/32768KB.
Info: Using pack method '16m-rle-9' with session ''.
Info: Not using NX delta compression.
Info: Not using ZLIB data compression.
Info: Not using ZLIB stream compression.
Info: Not using persistent cache.
Warning: Child process '1301' died because of signal 6, 'SIGABRT'.
Info: Established X client connection.
Info: End of NX transport requested by agent.
Info: Your session has died before reaching an usable state.
Info: This can be due to the remote X server refusing access to the
client.
Info: Please check the authorization provided by your X application.
Info: Waiting the cleanup timeout to complete.
Info: End of NX transport requested by remote.
Info: Shutting down the NX transport.
Warning: Child process '1639' died because of signal 6, 'SIGABRT'.
zsh: abort (core dumped)  ./nxagent -display "nx/nx,link=lan:1000" :1000
>> nxagent.out 2>&1




More information about the FreeNX-kNX mailing list