On Fri, Oct 24, 2014 at 05:18:51PM -0500, Jeff Epler wrote:
>     1) If it works in 2.6 (or 2.5) between two 32-bit x86 machines,
>        write a test of the form that goes in tests/.
>        
>        Mark the test as an expected failure in conditions where it
>        doesn't work (such as the host being a 64-bit platform)

I went ahead and did this in branch jepler/test-nml-over-tcp.  It is
based on master branch.

It passes on a 32-bit Ubuntu Lucid machine and fails on a 64-bit Debian
Wheezy machine.

For me, the specific failure messages on 64-bit are:

    libnml/buffer/recvn.c 131: Recv timed out.
    libnml/buffer/recvn.c 137: recvn(fd=4, vptr=0x18a904c, int n=40, int 
flags=0, double _timeout=10.000000,bytes_read=0) failed.
    (time=1414197133.637499,pid=22732): Socket opened by host with IP address 
127.0.0.1.
    (time=1414197133.637545,pid=22732): read 20 bytes from 5
    (time=1414197133.637556,pid=22732): TCPSVR request recieved: fd = 5, 
serial_number=1, request_type=2, buffer_number=0
    libnml/cms/cms_srv.cc 611: CMS_SERVER: Cannot find local port for buffer 
number 0
    libnml/buffer/recvn.c 198: Recv timed out.
    libnml/buffer/recvn.c 198: Recv timed out.
    libnml/buffer/tcpmem.cc 498: connect error: 111 -- Connection refused
    libnml/buffer/tcpmem.cc 500: TCPMEM: Error trying to connect to TCP port 
5005 of host localhost(127.0.0.1). sin_family=2
    libnml/cms/cms_cfg.cc 886: cms_config: Error  -10( CMS_NO_SERVER_ERROR: The 
server has not been started or could not be contacted.) occured during TPCMEM 
create.
    libnml/nml/nml.cc 368: NML: cms_config returned -1.

    **********************************************************
    * Current Directory = /usr/src/linuxcnc/tests/linuxcncrsh-tcp
    * 
    **********************************************************
    * BufferName = emcStatus
    * BufferType = 0
    * ProcessName = xemc
    * Configuration File = tcp.nml
    * CMS Status = -10 ( CMS_NO_SERVER_ERROR: The server has not been started 
or could not be contacted.)
    * Recent errors repeated:
    NML: cms_config returned -1.

    connect error: 111 -- Connection refused

    TCPMEM: Error trying to connect to TCP port 5005 of host 
localhost(127.0.0.1). sin_family=2

    cms_config: Error  -10( CMS_NO_SERVER_ERROR: The server has not been 
started or could not be contac
    * BufferLine: B emcStatus             SHMEM   localhost       16384   0     
  0       2       16 1002 TCP=5005 xdr
    * ProcessLine: P xemc          emcStatus       REMOTE   localhost       R   
    0       10.0    0       10
    * Config File = tcp.nml
    * error_type = 0 (NML_NO_ERROR)
    ************************************************************
[followed by more of the same]

Jeff

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to