Solved

socat serial - tcp forwarder

Posted on 2009-04-02
8
2,259 Views
Last Modified: 2013-12-27

the setup is we have a gsm modem which is plugged in the port server... i merely will serial port forward from my solaris 9 box to the port server and connect to this virtual modem from a hylafax application..

my socat command is this...
socat /dev/ptyp1,ignoreeof tcp:192.168.1.100:2102


1. i am getting an I/O error from socat...

"2009/04/01 17:59:38 sc[17530] E read(4, 69b30, 57600): I/O error"

what could be the cause of the I/O error.
btw. i am connecting to the modem as /dev/ttyp1, and the application that connects to the modem is hylafax.

2009/04/01 17:59:28 sc[17530] D getpid()
2009/04/01 17:59:28 sc[17530] D getpid() -> 17530
2009/04/01 17:59:28 sc[17530] D setenv("sc_PID", "17530", 1)
2009/04/01 17:59:28 sc[17530] D malloc(16)
2009/04/01 17:59:28 sc[17530] D malloc() -> 622b8
2009/04/01 17:59:28 sc[17530] D setenv() -> -1
2009/04/01 17:59:28 sc[17530] W setenv("sc_PID", "17530", 1): Bad file number
2009/04/01 17:59:28 sc[17530] D setenv("sc_PPID", "17530", 1)
2009/04/01 17:59:28 sc[17530] D malloc(17)
2009/04/01 17:59:28 sc[17530] D malloc() -> 671e0
2009/04/01 17:59:28 sc[17530] D setenv() -> -1
2009/04/01 17:59:28 sc[17530] W setenv("sc_PPID", "17530", 1): Bad file number
2009/04/01 17:59:28 sc[17530] I sc by Gerhard Rieger - see www.dest-unreach.org
2009/04/01 17:59:28 sc[17530] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2009/04/01 17:59:28 sc[17530] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2009/04/01 17:59:28 sc[17530] D sc version 1.7.0.0 on Nov  2 2008 05:10:38
2009/04/01 17:59:28 sc[17530] D setenv("sc_VERSION", "1.7.0.0", 1)
2009/04/01 17:59:28 sc[17530] D malloc(22)
2009/04/01 17:59:28 sc[17530] D malloc() -> 67200
2009/04/01 17:59:28 sc[17530] D setenv() -> -1
2009/04/01 17:59:28 sc[17530] W setenv("sc_VERSION", "1.7.0.0", 1): Bad file number
2009/04/01 17:59:28 sc[17530] D running on SunOS version Generic_118558-28, release 5.9, machine sun4us
2009/04/01 17:59:28 sc[17530] D argv[0]: "sc"
2009/04/01 17:59:28 sc[17530] D argv[1]: "-D"
2009/04/01 17:59:28 sc[17530] D argv[2]: "-d"
2009/04/01 17:59:28 sc[17530] D argv[3]: "-d"
2009/04/01 17:59:28 sc[17530] D argv[4]: "-d"
2009/04/01 17:59:28 sc[17530] D argv[5]: "-d"
2009/04/01 17:59:28 sc[17530] D argv[6]: "-u"
2009/04/01 17:59:28 sc[17530] D argv[7]: "-lf"
2009/04/01 17:59:28 sc[17530] D argv[8]: "/tmp/sc.log"
2009/04/01 17:59:28 sc[17530] D argv[9]: "-b"
2009/04/01 17:59:28 sc[17530] D argv[10]: "57600"
2009/04/01 17:59:28 sc[17530] D argv[11]: "/dev/ptyp1,ignoreeof"
2009/04/01 17:59:28 sc[17530] D argv[12]: "tcp:192.168.1.100:2102,ignoreeof"
2009/04/01 17:59:28 sc[17530] D signal(1, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(2, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(3, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(4, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(10, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(8, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(11, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D signal(15, 1d1dc)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D atexit(1ddec)
2009/04/01 17:59:28 sc[17530] D atexit() -> 0
2009/04/01 17:59:28 sc[17530] D signal(13, 1)
2009/04/01 17:59:28 sc[17530] D signal() -> 0
2009/04/01 17:59:28 sc[17530] D calloc(1, 704)
2009/04/01 17:59:28 sc[17530] D calloc() -> 679c0
2009/04/01 17:59:28 sc[17530] I interpreting address "/dev/ptyp1" as file name
2009/04/01 17:59:28 sc[17530] D malloc(256)
2009/04/01 17:59:28 sc[17530] D malloc() -> 67c88
2009/04/01 17:59:28 sc[17530] I setting option "ignoreeof" to 1
2009/04/01 17:59:28 sc[17530] D stat64(/dev/ptyp1, ffbff210)
2009/04/01 17:59:28 sc[17530] D stat64(, {8388736,0,011156,8630,1,0,6553601,0,8192,0,...}) -> 0
2009/04/01 17:59:28 sc[17530] D _groupbits(8630) -> 65540
2009/04/01 17:59:28 sc[17530] I "/dev/ptyp1" is not a socket, open()'ing it
2009/04/01 17:59:28 sc[17530] N opening character device "/dev/ptyp1" for reading
2009/04/01 17:59:28 sc[17530] D open("/dev/ptyp1", 00, 0666)
2009/04/01 17:59:28 sc[17530] I open("/dev/ptyp1", 00, 0666) -> 4
2009/04/01 17:59:28 sc[17530] D ioctl(4, 0x5302, 44b78{1886676333})
2009/04/01 17:59:28 sc[17530] D ioctl() -> -1
2009/04/01 17:59:28 sc[17530] D ioctl(4, 0x5302, 44b80{1818522725})
2009/04/01 17:59:28 sc[17530] D ioctl() -> -1
2009/04/01 17:59:28 sc[17530] D ioctl(4, 0x5302, 44b88{1953784687})
2009/04/01 17:59:28 sc[17530] D ioctl() -> -1
2009/04/01 17:59:28 sc[17530] D isatty(4)
2009/04/01 17:59:28 sc[17530] D isatty() -> 0
2009/04/01 17:59:28 sc[17530] D fcntl(4, 2, 1)
2009/04/01 17:59:28 sc[17530] D fcntl() -> 0
2009/04/01 17:59:28 sc[17530] D calloc(1, 704)
2009/04/01 17:59:28 sc[17530] D calloc() -> 67d90
2009/04/01 17:59:28 sc[17530] D malloc(256)
2009/04/01 17:59:28 sc[17530] D malloc() -> 68058
2009/04/01 17:59:28 sc[17530] I setting option "ignoreeof" to 1
2009/04/01 17:59:28 sc[17530] D getaddrinfo("192.168.1.100", NULL, {40,2,2,6,0,0,0,0}, ffbff158)
2009/04/01 17:59:28 sc[17530] D getaddrinfo(,,,{{AF=2 192.168.1.100:0, }) -> 0
2009/04/01 17:59:28 sc[17530] D malloc(64)
2009/04/01 17:59:28 sc[17530] D malloc() -> 68160
2009/04/01 17:59:28 sc[17530] N opening connection to AF=2 192.168.1.100:2102
2009/04/01 17:59:28 sc[17530] I starting connect loop
2009/04/01 17:59:28 sc[17530] D socket(2, 2, 6)
2009/04/01 17:59:28 sc[17530] I socket(2, 2, 6) -> 5
2009/04/01 17:59:28 sc[17530] D fcntl(5, 2, 1)
2009/04/01 17:59:28 sc[17530] D fcntl() -> 0
2009/04/01 17:59:28 sc[17530] D connect(5, {2,AF=2 192.168.1.100:2102}, 16)
2009/04/01 17:59:28 sc[17530] D connect() -> 0
2009/04/01 17:59:28 sc[17530] D getsockname(5, ffbff198, ffbff0fc{112})
2009/04/01 17:59:28 sc[17530] D getsockname(, {AF=2 192.168.1.14:60296}, {16}) -> 0
2009/04/01 17:59:28 sc[17530] N successfully connected from local address AF=2 192.168.1.14:60296
2009/04/01 17:59:28 sc[17530] I resolved and opened all sock addresses
2009/04/01 17:59:28 sc[17530] D malloc(115201)
2009/04/01 17:59:28 sc[17530] D malloc() -> 69b30
2009/04/01 17:59:28 sc[17530] N starting data transfer loop with FDs [4,4] and [5,5]
2009/04/01 17:59:28 sc[17530] D data loop: sock1->eof=0, sock2->eof=0, closing=0, wasaction=1, total_to={0.000000}
2009/04/01 17:59:28 sc[17530] D select(6, &0x10, &0x20, &0x0, NULL/0.000000)
2009/04/01 17:59:28 sc[17530] D select -> (, 0x0, 0x20, 0x0, NULL/0.000000), 1
2009/04/01 17:59:28 sc[17530] D data loop: sock1->eof=0, sock2->eof=0, closing=0, wasaction=1, total_to={0.000000}
2009/04/01 17:59:28 sc[17530] D select(5, &0x10, &0x0, &0x0, NULL/0.000000)
2009/04/01 17:59:38 sc[17530] D select -> (, 0x10, 0x0, 0x0, NULL/0.000000), 1
2009/04/01 17:59:38 sc[17530] D read(4, 69b30, 57600)
2009/04/01 17:59:38 sc[17530] D read -> -1
2009/04/01 17:59:38 sc[17530] E read(4, 69b30, 57600): I/O error
2009/04/01 17:59:38 sc[17530] N exit(1)
2009/04/01 17:59:38 sc[17530] I shutdown(5, 2)
2009/04/01 17:59:38 sc[17530] D shutdown()  -> 0

2. ...and would there be an alternative way of writing the socat command? as i really need to connect the modem to the port server and connect to it from my solaris 9 box.

TIA.
0
Comment
Question by:migraine007ph
  • 4
  • 4
8 Comments
 
LVL 22

Expert Comment

by:blu
Comment Utility
From the man page:

A physical I/O error has occurred, or the process
is  in a background process group and is attempting
to read from its  controlling  terminal,  and
either  the  process  is ignoring or blocking the
SIGTTIN signal or the process group of  the  process
is orphaned.

That is the first time the program attempts to read from that device, so it may be that something isn't set up right. How did you decide which pty to use?
0
 

Author Comment

by:migraine007ph
Comment Utility
thanks blu.

re "How did you decide which pty to use?" - the setup is that i need to virtually map/link  a modem (which is connected to a port server) to a solaris box(remote unix box), i just chose this pseudo device, but is there any other pseudo (type) device to use in mapping it to socat?

fyi. i am using this pseudo device /dev/ttypX (virtual modem) in a fax application which is then mapped to /dev/ptypX...  

or maybe there is an alternative way to write this in socat, or any other switches (nonblock, waitslave, etc.. )?

aarrgh..

tia.
0
 
LVL 22

Expert Comment

by:blu
Comment Utility
I don't think you can use the ptyp device like that. I think you need to use the socat pty device options:

http://www.dest-unreach.org/socat/doc/socat.html#EXAMPLE_ADDRESS_PTY
0
 

Author Comment

by:migraine007ph
Comment Utility
thanks for replying blu.

i have already looked at that example, and it is different to what we need. the virtual modem is accessed locally (/dev/ttyS0) then mapped to stdio ("-") then accessed remotely(ssh) to a virtual device.. what we need is to access it directly to a port (tcp/raw/ipv4) server...  

btw. i can communicate with the modem with the above settings for socat using tip / cu. i am just wondering in sometime i am getting that IO error; and everytime i use the modem with my hylafax application....




0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 22

Expert Comment

by:blu
Comment Utility
Okay, try this. Run the socat command with truss and capture the output to a file:

truss -faled -o /tmp/sc.truss

Use the above followed by the socat command line (enter it on the same line as the above)

Run it until you get the I/O error, then kill the truss and post the resulting sc.truss file.
0
 

Author Comment

by:migraine007ph
Comment Utility
@blu


fyi.

i am using ptyp1 -> ttyp1

here's the logs...

btw. the error in socat is the "2009/04/08 12:03:11 socat[25702] E read(4, 69b30, 8192): I/O error"

tnx.

socat logs....
2009/04/08 12:02:48 socat[25702] D getpid()
2009/04/08 12:02:48 socat[25702] D getpid() -> 25702
2009/04/08 12:02:48 socat[25702] D setenv("SOCAT_PID", "25702", 1)
2009/04/08 12:02:48 socat[25702] D malloc(16)
2009/04/08 12:02:48 socat[25702] D malloc() -> 622b8
2009/04/08 12:02:48 socat[25702] D setenv() -> -1
2009/04/08 12:02:48 socat[25702] W setenv("SOCAT_PID", "25702", 1): Bad file number
2009/04/08 12:02:48 socat[25702] D setenv("SOCAT_PPID", "25702", 1)
2009/04/08 12:02:48 socat[25702] D malloc(17)
2009/04/08 12:02:48 socat[25702] D malloc() -> 671e0
2009/04/08 12:02:48 socat[25702] D setenv() -> -1
2009/04/08 12:02:48 socat[25702] W setenv("SOCAT_PPID", "25702", 1): Bad file number
2009/04/08 12:02:48 socat[25702] I socat by Gerhard Rieger - see www.dest-unreach.org
2009/04/08 12:02:48 socat[25702] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2009/04/08 12:02:48 socat[25702] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2009/04/08 12:02:48 socat[25702] D socat version 1.7.0.0 on Nov  2 2008 05:10:38
2009/04/08 12:02:48 socat[25702] D setenv("SOCAT_VERSION", "1.7.0.0", 1)
2009/04/08 12:02:48 socat[25702] D malloc(22)
2009/04/08 12:02:48 socat[25702] D malloc() -> 67200
2009/04/08 12:02:48 socat[25702] D setenv() -> -1
2009/04/08 12:02:48 socat[25702] W setenv("SOCAT_VERSION", "1.7.0.0", 1): Bad file number
2009/04/08 12:02:48 socat[25702] D running on SunOS version Generic_118558-28, release 5.9, machine sun4us

2009/04/08 12:02:48 socat[25702] D argv[0]: "socat"
2009/04/08 12:02:48 socat[25702] D argv[1]: "-d"
2009/04/08 12:02:48 socat[25702] D argv[2]: "-d"
2009/04/08 12:02:48 socat[25702] D argv[3]: "-d"
2009/04/08 12:02:48 socat[25702] D argv[4]: "-d"
2009/04/08 12:02:48 socat[25702] D argv[5]: "-lf"
2009/04/08 12:02:48 socat[25702] D argv[6]: "/tmp/sc.log"
2009/04/08 12:02:48 socat[25702] D argv[7]: "-s"
2009/04/08 12:02:48 socat[25702] D argv[8]: "/dev/ptyp1,ignoreeof"
2009/04/08 12:02:48 socat[25702] D argv[9]: "tcp:192.168.1.100:2102,ignoreeof,nonblock"
2009/04/08 12:02:48 socat[25702] D signal(1, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(2, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(3, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(4, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(10, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(8, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(11, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D signal(15, 1d1dc)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D atexit(1ddec)
2009/04/08 12:02:48 socat[25702] D atexit() -> 0
2009/04/08 12:02:48 socat[25702] D signal(13, 1)
2009/04/08 12:02:48 socat[25702] D signal() -> 0
2009/04/08 12:02:48 socat[25702] D calloc(1, 704)
2009/04/08 12:02:48 socat[25702] D calloc() -> 679c0
2009/04/08 12:02:48 socat[25702] I interpreting address "/dev/ptyp1" as file name
2009/04/08 12:02:48 socat[25702] D malloc(256)
2009/04/08 12:02:48 socat[25702] D malloc() -> 67c88
2009/04/08 12:02:48 socat[25702] I setting option "ignoreeof" to 1
2009/04/08 12:02:48 socat[25702] D stat64(/dev/ptyp1, ffbff290)
2009/04/08 12:02:48 socat[25702] D stat64(, {8388736,0,011156,8630,1,0,6553601,0,8192,0,...}) -> 0
2009/04/08 12:02:48 socat[25702] D _groupbits(8630) -> 65540
2009/04/08 12:02:48 socat[25702] I "/dev/ptyp1" is not a socket, open()'ing it
2009/04/08 12:02:48 socat[25702] N opening character device "/dev/ptyp1" for reading and writing
2009/04/08 12:02:48 socat[25702] D open("/dev/ptyp1", 012, 0666)
2009/04/08 12:02:48 socat[25702] I open("/dev/ptyp1", 012, 0666) -> 4
2009/04/08 12:02:48 socat[25702] D ioctl(4, 0x5302, 44b78{1886676333})
2009/04/08 12:02:48 socat[25702] D ioctl() -> -1
2009/04/08 12:02:48 socat[25702] D ioctl(4, 0x5302, 44b80{1818522725})
2009/04/08 12:02:48 socat[25702] D ioctl() -> -1
2009/04/08 12:02:48 socat[25702] D ioctl(4, 0x5302, 44b88{1953784687})
2009/04/08 12:02:48 socat[25702] D ioctl() -> -1
2009/04/08 12:02:48 socat[25702] D isatty(4)
2009/04/08 12:02:48 socat[25702] D isatty() -> 0
2009/04/08 12:02:48 socat[25702] D fcntl(4, 2, 1)
2009/04/08 12:02:48 socat[25702] D fcntl() -> 0
2009/04/08 12:02:48 socat[25702] D calloc(1, 704)
2009/04/08 12:02:48 socat[25702] D calloc() -> 67d90
2009/04/08 12:02:48 socat[25702] D malloc(256)
2009/04/08 12:02:48 socat[25702] D malloc() -> 68058
2009/04/08 12:02:48 socat[25702] I setting option "ignoreeof" to 1
2009/04/08 12:02:48 socat[25702] I setting option "o-nonblock" to 1
2009/04/08 12:02:48 socat[25702] D getaddrinfo("192.168.1.100", NULL, {40,2,2,6,0,0,0,0}, ffbff1d8)
2009/04/08 12:02:48 socat[25702] D getaddrinfo(,,,{{AF=2 192.168.1.100:0, }) -> 0
2009/04/08 12:02:48 socat[25702] D malloc(96)
2009/04/08 12:02:48 socat[25702] D malloc() -> 68160
2009/04/08 12:02:48 socat[25702] N opening connection to AF=2 192.168.1.100:2102
2009/04/08 12:02:48 socat[25702] I starting connect loop
2009/04/08 12:02:48 socat[25702] D socket(2, 2, 6)
2009/04/08 12:02:48 socat[25702] I socket(2, 2, 6) -> 5
2009/04/08 12:02:48 socat[25702] D fcntl(5, 3)
2009/04/08 12:02:48 socat[25702] D fcntl() -> 2
2009/04/08 12:02:48 socat[25702] D fcntl(5, 4, 130)
2009/04/08 12:02:48 socat[25702] D fcntl() -> 0
2009/04/08 12:02:48 socat[25702] D fcntl(5, 2, 1)
2009/04/08 12:02:48 socat[25702] D fcntl() -> 0
2009/04/08 12:02:48 socat[25702] D connect(5, {2,AF=2 192.168.1.100:2102}, 16)
2009/04/08 12:02:48 socat[25702] D connect() -> -1
2009/04/08 12:02:48 socat[25702] D getsockname(5, ffbff218, ffbff17c{112})
2009/04/08 12:02:48 socat[25702] D getsockname(, {AF=2 192.168.1.14:62655}, {16}) -> 0
2009/04/08 12:02:48 socat[25702] W connect(5, AF=2 192.168.1.100:2102, 16): Operation now in progress
2009/04/08 12:02:48 socat[25702] N successfully connected from local address AF=2 192.168.1.14:62655
2009/04/08 12:02:48 socat[25702] I resolved and opened all sock addresses
2009/04/08 12:02:48 socat[25702] D malloc(16385)
2009/04/08 12:02:48 socat[25702] D malloc() -> 69b30
2009/04/08 12:02:48 socat[25702] N starting data transfer loop with FDs [4,4] and [5,5]
2009/04/08 12:02:48 socat[25702] D data loop: sock1->eof=0, sock2->eof=0, closing=0, wasaction=1, total_to={0.000000}
2009/04/08 12:02:48 socat[25702] D select(6, &0x30, &0x30, &0x0, NULL/0.000000)
2009/04/08 12:02:49 socat[25702] D select -> (, 0x0, 0x20, 0x0, NULL/0.000000), 1
2009/04/08 12:02:49 socat[25702] D data loop: sock1->eof=0, sock2->eof=0, closing=0, wasaction=1, total_to={0.000000}
2009/04/08 12:02:49 socat[25702] D select(6, &0x30, &0x10, &0x0, NULL/0.000000)
2009/04/08 12:03:10 socat[25702] D select -> (, 0x0, 0x10, 0x0, NULL/0.000000), 1
2009/04/08 12:03:10 socat[25702] D data loop: sock1->eof=0, sock2->eof=0, closing=0, wasaction=1, total_to={0.000000}
2009/04/08 12:03:10 socat[25702] D select(6, &0x30, &0x0, &0x0, NULL/0.000000)
2009/04/08 12:03:11 socat[25702] D select -> (, 0x10, 0x0, 0x0, NULL/0.000000), 1
2009/04/08 12:03:11 socat[25702] D read(4, 69b30, 8192)
2009/04/08 12:03:11 socat[25702] D read -> -1
2009/04/08 12:03:11 socat[25702] E read(4, 69b30, 8192): I/O error
2009/04/08 12:03:11 socat[25702] N socket 1 to socket 2 is in error
2009/04/08 12:03:11 socat[25702] N socket 1 (fd 4) is at EOF
2009/04/08 12:03:11 socat[25702] I shutdown(5, 1)
2009/04/08 12:03:11 socat[25702] D shutdown()  -> 0
2009/04/08 12:03:11 socat[25702] D data loop: sock1->eof=2, sock2->eof=0, closing=1, wasaction=1, total_to={0.000000}
2009/04/08 12:03:11 socat[25702] D select(6, &0x20, &0x0, &0x0, &0.500000)
2009/04/08 12:03:11 socat[25702] D select -> (, 0x20, 0x0, 0x0, &0.500000), 1
2009/04/08 12:03:11 socat[25702] D read(5, 69b30, 8192)
2009/04/08 12:03:11 socat[25702] D read -> 0
2009/04/08 12:03:11 socat[25702] N socket 1 (fd 4) is at EOF
2009/04/08 12:03:11 socat[25702] I shutdown(5, 1)
2009/04/08 12:03:11 socat[25702] D shutdown()  -> 0
2009/04/08 12:03:11 socat[25702] N socket 2 (fd 5) is at EOF
2009/04/08 12:03:11 socat[25702] I shutdown(5, 2)
2009/04/08 12:03:11 socat[25702] D shutdown()  -> 0
2009/04/08 12:03:11 socat[25702] N exiting with status 0
2009/04/08 12:03:11 socat[25702] D exit(0)


truss log...
Base time stamp:  1239163368.9508  [ Wed Apr  8 12:02:48 SGT 2009 ]
25702/1:       0.0000      execve("/usr/local/bin/socat", 0xFFBFFC7C, 0xFFBFFCA8)  argc = 10
25702/1:       argv: socat -d -d -d -d -lf /tmp/sc.log -s
25702/1:        /dev/ptyp1,ignoreeof
25702/1:        tcp:192.168.1.100:2102,ignoreeof,nonblock
25702/1:       envp: PWD=/tmp TZ=Singapore HZ= HOSTNAME=tyco-dev-01
25702/1:        LD_LIBRARY_PATH=:/usr/lib:/usr/local/lib:/usr/sfw/lib:/usr/lib:/usr/local/lib:/usr/sfw/lib
25702/1:        HISTFILESIZE=500 MACHTYPE=sparc-sun-solaris2.9 OLDPWD=/
25702/1:        LINES=24 JAVA_HOME=/usr/java/ LOGNAME=root SHLVL=1 COLUMNS=80
25702/1:        SHELL=/bin/bash HOSTTYPE=sparc IGNOREEOF=10 OSTYPE=solaris2.9
25702/1:        HOME=/ TERM=xterm
25702/1:        PATH=/usr/sbin:/usr/bin:.:/usr/local/sbin:/usr/sfw/lib:/usr/local/bin:/usr/java/bin:.:/usr/local/sbin:/usr/sfw/lib:/usr/local/bin:/usr/java/bin
25702/1:        _=/usr/bin/truss
25702/1:       0.0027      resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
25702/1:       0.0029      resolvepath("/usr/local/bin/socat", "/usr/local/bin/socat", 1023) = 20
25702/1:       0.0029      stat("/usr/local/bin/socat", 0xFFBFFA50)      = 0
25702/1:       0.0030      open("/var/ld/ld.config", O_RDONLY)            Err#2 ENOENT
25702/1:       0.0031      stat("./librt.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0032      stat("/usr/lib/librt.so.1", 0xFFBFF558)            = 0
25702/1:       0.0032      resolvepath("/usr/lib/librt.so.1", "/usr/lib/librt.so.1", 1023) = 19
25702/1:       0.0033      open("/usr/lib/librt.so.1", O_RDONLY)            = 3
25702/1:       0.0033      mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
25702/1:       0.0034      mmap(0x00010000, 98304, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF380000
25702/1:       0.0035      mmap(0xFF380000, 21378, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF380000
25702/1:       0.0035      mmap(0xFF396000, 1736, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 24576) = 0xFF396000
25702/1:       0.0036      munmap(0xFF386000, 65536)                  = 0
25702/1:       0.0037      memcntl(0xFF380000, 9364, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0037      close(3)                              = 0
25702/1:       0.0038      stat("./libsocket.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0038      stat("/usr/lib/libsocket.so.1", 0xFFBFF558)      = 0
25702/1:       0.0039      resolvepath("/usr/lib/libsocket.so.1", "/usr/lib/libsocket.so.1", 1023) = 23
25702/1:       0.0040      open("/usr/lib/libsocket.so.1", O_RDONLY)      = 3
25702/1:       0.0040      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0041      mmap(0x00010000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF360000
25702/1:       0.0041      mmap(0xFF360000, 39550, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF360000
25702/1:       0.0041      mmap(0xFF37A000, 4333, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 40960) = 0xFF37A000
25702/1:       0.0042      munmap(0xFF36A000, 65536)                  = 0
25702/1:       0.0043      memcntl(0xFF360000, 13792, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0043      close(3)                              = 0
25702/1:       0.0044      stat("./libnsl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0044      stat("/usr/lib/libnsl.so.1", 0xFFBFF558)      = 0
25702/1:       0.0045      resolvepath("/usr/lib/libnsl.so.1", "/usr/lib/libnsl.so.1", 1023) = 20
25702/1:       0.0046      open("/usr/lib/libnsl.so.1", O_RDONLY)            = 3
25702/1:       0.0046      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0047      mmap(0x00010000, 712704, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000
25702/1:       0.0047      mmap(0xFF280000, 580014, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
25702/1:       0.0048      mmap(0xFF31E000, 32868, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 581632) = 0xFF31E000
25702/1:       0.0049      mmap(0xFF328000, 22880, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF328000
25702/1:       0.0049      munmap(0xFF30E000, 65536)                  = 0
25702/1:       0.0050      memcntl(0xFF280000, 82424, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0051      close(3)                              = 0
25702/1:       0.0051      mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF350000
25702/1:       0.0052      stat("./libiconv.so.2", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0052      stat("/usr/lib/libiconv.so.2", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0053      stat("/usr/local/lib/libiconv.so.2", 0xFFBFF558) = 0
25702/1:       0.0054      resolvepath("/usr/local/lib/libiconv.so.2", "/usr/local/lib/libiconv.so.2.2.0", 1023) = 32
25702/1:       0.0054      open("/usr/local/lib/libiconv.so.2", O_RDONLY)      = 3
25702/1:       0.0055      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0056      mmap(0x00010000, 966656, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF180000
25702/1:       0.0056      mmap(0xFF180000, 894663, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF180000
25702/1:       0.0056      mmap(0xFF26A000, 6560, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 892928) = 0xFF26A000
25702/1:       0.0057      munmap(0xFF25C000, 57344)                  = 0
25702/1:       0.0058      memcntl(0xFF180000, 11276, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0058      close(3)                              = 0
25702/1:       0.0059      stat("./libresolv.so.2", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0059      stat("/usr/lib/libresolv.so.2", 0xFFBFF558)      = 0
25702/1:       0.0060      resolvepath("/usr/lib/libresolv.so.2", "/usr/lib/libresolv.so.2", 1023) = 23
25702/1:       0.0061      open("/usr/lib/libresolv.so.2", O_RDONLY)      = 3
25702/1:       0.0061      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0062      mmap(0x00010000, 335872, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF120000
25702/1:       0.0062      mmap(0xFF120000, 246673, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF120000
25702/1:       0.0063      mmap(0xFF16E000, 10548, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 253952) = 0xFF16E000
25702/1:       0.0063      munmap(0xFF15E000, 65536)                  = 0
25702/1:       0.0065      memcntl(0xFF120000, 35568, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0065      close(3)                              = 0
25702/1:       0.0065      stat("./libreadline.so.5", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0066      stat("/usr/lib/libreadline.so.5", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0067      stat("/usr/local/lib/libreadline.so.5", 0xFFBFF558) = 0
25702/1:       0.0067      resolvepath("/usr/local/lib/libreadline.so.5", "/usr/local/lib/libreadline.so.5", 1023) = 31
25702/1:       0.0068      open("/usr/local/lib/libreadline.so.5", O_RDONLY) = 3
25702/1:       0.0069      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0069      mmap(0x00010000, 270336, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF0D0000
25702/1:       0.0069      mmap(0xFF0D0000, 182957, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF0D0000
25702/1:       0.0070      mmap(0xFF10C000, 21692, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 180224) = 0xFF10C000
25702/1:       0.0071      munmap(0xFF0FE000, 57344)                  = 0
25702/1:       0.0072      memcntl(0xFF0D0000, 52836, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0072      close(3)                              = 0
25702/1:       0.0073      stat("./libncurses.so.5", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0073      stat("/usr/lib/libncurses.so.5", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0074      stat("/usr/local/lib/libncurses.so.5", 0xFFBFF558) = 0
25702/1:       0.0075      resolvepath("/usr/local/lib/libncurses.so.5", "/usr/local/lib/libncurses.so.5.6", 1023) = 32
25702/1:       0.0075      open("/usr/local/lib/libncurses.so.5", O_RDONLY) = 3
25702/1:       0.0076      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0076      mmap(0x00010000, 385024, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF060000
25702/1:       0.0077      mmap(0xFF060000, 279917, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF060000
25702/1:       0.0077      mmap(0xFF0B4000, 37560, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 278528) = 0xFF0B4000
25702/1:       0.0078      munmap(0xFF0A6000, 57344)                  = 0
25702/1:       0.0079      memcntl(0xFF060000, 75568, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0080      close(3)                              = 0
25702/1:       0.0080      stat("./libssl.so.0.9.8", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0081      stat("/usr/lib/libssl.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0082      stat("/usr/local/lib/libssl.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0083      stat("/usr/sfw/lib/libssl.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0083      stat("/usr/lib/libssl.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0084      stat("/usr/local/lib/libssl.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0084      stat("/usr/sfw/lib/libssl.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0085      stat("/usr/local/lib/libssl.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0086      stat("/usr/lib/libssl.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0086      stat("/usr/openwin/lib/libssl.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0087      stat("/usr/local/ssl/lib/libssl.so.0.9.8", 0xFFBFF558) = 0
25702/1:       0.0087      resolvepath("/usr/local/ssl/lib/libssl.so.0.9.8", "/usr/local/ssl/lib/libssl.so.0.9.8", 1023) = 34
25702/1:       0.0088      open("/usr/local/ssl/lib/libssl.so.0.9.8", O_RDONLY) = 3
25702/1:       0.0089      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0089      mmap(0x00010000, 344064, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF000000
25702/1:       0.0090      mmap(0xFF000000, 257894, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF000000
25702/1:       0.0090      mmap(0xFF04E000, 20812, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 253952) = 0xFF04E000
25702/1:       0.0091      munmap(0xFF040000, 57344)                  = 0
25702/1:       0.0092      memcntl(0xFF000000, 55072, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0093      close(3)                              = 0
25702/1:       0.0094      stat("./libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0095      stat("/usr/lib/libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0096      stat("/usr/local/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0096      stat("/usr/sfw/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0097      stat("/usr/lib/libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0097      stat("/usr/local/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0098      stat("/usr/sfw/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0099      stat("/usr/local/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0099      stat("/usr/lib/libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0100      stat("/usr/openwin/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0100      stat("/usr/local/ssl/lib/libcrypto.so.0.9.8", 0xFFBFF558) = 0
25702/1:       0.0101      resolvepath("/usr/local/ssl/lib/libcrypto.so.0.9.8", "/usr/local/ssl/lib/libcrypto.so.0.9.8", 1023) = 37
25702/1:       0.0102      open("/usr/local/ssl/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
25702/1:       0.0103      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0103      mmap(0x00010000, 1441792, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEE80000
25702/1:       0.0104      mmap(0xFEE80000, 1270827, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEE80000
25702/1:       0.0104      mmap(0xFEFC6000, 90052, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 1269760) = 0xFEFC6000
25702/1:       0.0105      mmap(0xFEFDC000, 9160, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEFDC000
25702/1:       0.0105      munmap(0xFEFB8000, 57344)                  = 0
25702/1:       0.0108      memcntl(0xFEE80000, 283248, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0109      close(3)                              = 0
25702/1:       0.0109      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0110      stat("/usr/lib/libc.so.1", 0xFFBFF558)            = 0
25702/1:       0.0110      resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
25702/1:       0.0111      open("/usr/lib/libc.so.1", O_RDONLY)            = 3
25702/1:       0.0111      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0112      mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED80000
25702/1:       0.0112      mmap(0xFED80000, 702900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFED80000
25702/1:       0.0113      mmap(0xFEE3C000, 24688, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFEE3C000
25702/1:       0.0114      munmap(0xFEE2C000, 65536)                  = 0
25702/1:       0.0116      memcntl(0xFED80000, 117444, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0116      close(3)                              = 0
25702/1:       0.0117      stat("./libaio.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0117      stat("/usr/lib/libaio.so.1", 0xFFBFF558)      = 0
25702/1:       0.0118      resolvepath("/usr/lib/libaio.so.1", "/usr/lib/libaio.so.1", 1023) = 20
25702/1:       0.0118      open("/usr/lib/libaio.so.1", O_RDONLY)            = 3
25702/1:       0.0119      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0120      mmap(0x00010000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEE60000
25702/1:       0.0120      mmap(0xFEE60000, 32913, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEE60000
25702/1:       0.0120      mmap(0xFEE7A000, 1756, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 40960) = 0xFEE7A000
25702/1:       0.0121      munmap(0xFEE6A000, 65536)                  = 0
25702/1:       0.0122      mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF340000
25702/1:       0.0123      memcntl(0xFEE60000, 6796, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0123      close(3)                              = 0
25702/1:       0.0123      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0124      stat("./libmd5.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0125      stat("/usr/lib/libmd5.so.1", 0xFFBFF558)      = 0
25702/1:       0.0125      resolvepath("/usr/lib/libmd5.so.1", "/usr/lib/libmd5.so.1", 1023) = 20
25702/1:       0.0126      open("/usr/lib/libmd5.so.1", O_RDONLY)            = 3
25702/1:       0.0127      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0127      mmap(0x00010000, 81920, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED60000
25702/1:       0.0128      mmap(0xFED60000, 5864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFED60000
25702/1:       0.0128      mmap(0xFED72000, 456, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 8192) = 0xFED72000
25702/1:       0.0128      munmap(0xFED62000, 65536)                  = 0
25702/1:       0.0129      memcntl(0xFED60000, 1268, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0130      close(3)                              = 0
25702/1:       0.0130      stat("./libnsl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0131      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0131      stat("./libdl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0132      stat("/usr/lib/libdl.so.1", 0xFFBFF558)            = 0
25702/1:       0.0133      resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
25702/1:       0.0133      open("/usr/lib/libdl.so.1", O_RDONLY)            = 3
25702/1:       0.0134      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0134      mmap(0x00002000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3FA000
25702/1:       0.0135      mmap(0xFF3FA000, 1894, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3FA000
25702/1:       0.0136      close(3)                              = 0
25702/1:       0.0136      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0137      stat("./libmp.so.2", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0137      stat("/usr/lib/libmp.so.2", 0xFFBFF558)            = 0
25702/1:       0.0138      resolvepath("/usr/lib/libmp.so.2", "/usr/lib/libmp.so.2", 1023) = 19
25702/1:       0.0138      open("/usr/lib/libmp.so.2", O_RDONLY)            = 3
25702/1:       0.0139      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0139      mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED40000
25702/1:       0.0140      mmap(0xFED40000, 10804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFED40000
25702/1:       0.0140      mmap(0xFED54000, 849, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFED54000
25702/1:       0.0141      munmap(0xFED44000, 65536)                  = 0
25702/1:       0.0142      memcntl(0xFED40000, 2464, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0142      close(3)                              = 0
25702/1:       0.0142      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0143      stat("./libgcc_s.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0144      stat("/usr/lib/libgcc_s.so.1", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0144      stat("/usr/local/lib/libgcc_s.so.1", 0xFFBFF558) = 0
25702/1:       0.0145      resolvepath("/usr/local/lib/libgcc_s.so.1", "/usr/local/lib/libgcc_s.so.1", 1023) = 28
25702/1:       0.0146      open("/usr/local/lib/libgcc_s.so.1", O_RDONLY)      = 3
25702/1:       0.0147      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0147      mmap(0x00010000, 106496, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED20000
25702/1:       0.0148      mmap(0xFED20000, 34112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFED20000
25702/1:       0.0148      mmap(0xFED38000, 3532, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 32768) = 0xFED38000
25702/1:       0.0149      munmap(0xFED2A000, 57344)                  = 0
25702/1:       0.0149      memcntl(0xFED20000, 6540, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
25702/1:       0.0150      close(3)                              = 0
25702/1:       0.0150      stat("./libsocket.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0151      stat("./libnsl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0151      stat("./libdl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0152      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0153      stat("./libgcc_s.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0153      stat("/usr/lib/libgcc_s.so.1", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0154      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0155      stat("./libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0156      stat("/usr/lib/libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0156      stat("/usr/local/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0157      stat("/usr/sfw/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0157      stat("/usr/lib/libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0158      stat("/usr/local/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0158      stat("/usr/sfw/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0159      stat("/usr/local/lib/libcrypto.so.0.9.8", 0xFFBFF558) Err#2 ENOENT
25702/1:       0.0160      stat("/usr/lib/libcrypto.so.0.9.8", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0160      stat("./libsocket.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0161      stat("./libnsl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0161      stat("./libdl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0162      stat("./libgcc_s.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0163      stat("/usr/lib/libgcc_s.so.1", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0163      stat("./libsocket.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0164      stat("./libnsl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0165      stat("./libdl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0165      stat("./libgcc_s.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0166      stat("/usr/lib/libgcc_s.so.1", 0xFFBFF558)      Err#2 ENOENT
25702/1:       0.0166      stat("./libdl.so.1", 0xFFBFF558)            Err#2 ENOENT
25702/1:       0.0167      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0168      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0168      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0169      stat("./libc.so.1", 0xFFBFF558)                  Err#2 ENOENT
25702/1:       0.0172      stat("/usr/platform/FJSV,GPUZC-M/lib/libc_psr.so.1", 0xFFBFF268) = 0
25702/1:       0.0172      resolvepath("/usr/platform/FJSV,GPUZC-M/lib/libc_psr.so.1", "/usr/platform/FJSV,GPUZC-M/lib/libc_psr.so.1", 1023) = 44
25702/1:       0.0173      open("/usr/platform/FJSV,GPUZC-M/lib/libc_psr.so.1", O_RDONLY) = 3
25702/1:       0.0174      mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
25702/1:       0.0174      mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFF0000
25702/1:       0.0175      close(3)                              = 0
25702/1:       0.0205      mprotect(0xFF060000, 279917, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
25702/1:       0.0213      mprotect(0xFF060000, 279917, PROT_READ|PROT_EXEC) = 0
25702/1:       0.0272      getustack(0xFFBFF894)
25702/1:       0.0272      getrlimit(RLIMIT_STACK, 0xFFBFF88C)            = 0
25702/1:       0.0273      getcontext(0xFFBFF6C8)
25702/1:       0.0273      setustack(0xFEE43A74)
25702/1:       0.0274      sysconfig(_CONFIG_SEM_VALUE_MAX)            = 2147483647
25702/1:       0.0276      sysconfig(_CONFIG_STACK_PROT)                  = 3
25702/1:       0.0278      brk(0x00061E48)                              = 0
25702/1:       0.0278      brk(0x00063E48)                              = 0
25702/1:       0.0280      fstat(-1, 0xFFBFF600)                        Err#9 EBADF
25702/1:       0.0282      open("/tmp/sc.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
25702/1:       0.0283      llseek(3, 0, SEEK_END)                        = 0
25702/1:       0.0283      brk(0x00063E48)                              = 0
25702/1:       0.0284      brk(0x00065E48)                              = 0
25702/1:       0.0285      open("/usr/share/lib/zoneinfo/Singapore", O_RDONLY) = 4
25702/1:       0.0285      fstat64(4, 0xFFBFF1C8)                        = 0
25702/1:       0.0286      read(4, " T Z i f\0\0\0\0\0\0\0\0".., 152)      = 152
25702/1:       0.0286      close(4)                              = 0
25702/1:       0.0287      getpid()                              = 25702 [25701]
25702/1:       0.0288      fstat64(3, 0xFFBFF160)                        = 0
25702/1:       0.0289      brk(0x00065E48)                              = 0
25702/1:       0.0289      brk(0x00067E48)                              = 0
25702/1:       0.0290      fstat64(3, 0xFFBFF008)                        = 0
25702/1:       0.0290      ioctl(3, TCGETA, 0xFFBFF0EC)                  Err#25 ENOTTY
25702/1:       0.0291      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 44)      = 44
25702/1:       0.0292      getpid()                              = 25702 [25701]
25702/1:       0.0292      getpid()                              = 25702 [25701]
25702/1:       0.0293      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0294      getpid()                              = 25702 [25701]
25702/1:       0.0294      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 67)      = 67
25702/1:       0.0295      getpid()                              = 25702 [25701]
25702/1:       0.0295      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 46)      = 46
25702/1:       0.0296      getpid()                              = 25702 [25701]
25702/1:       0.0296      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0297      getpid()                              = 25702 [25701]
25702/1:       0.0297      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0298      getpid()                              = 25702 [25701]
25702/1:       0.0298      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 84)      = 84
25702/1:       0.0299      getpid()                              = 25702 [25701]
25702/1:       0.0299      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 68)      = 68
25702/1:       0.0300      getpid()                              = 25702 [25701]
25702/1:       0.0300      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 46)      = 46
25702/1:       0.0301      getpid()                              = 25702 [25701]
25702/1:       0.0301      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0302      getpid()                              = 25702 [25701]
25702/1:       0.0302      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0303      getpid()                              = 25702 [25701]
25702/1:       0.0303      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 85)      = 85
25702/1:       0.0304      getpid()                              = 25702 [25701]
25702/1:       0.0304      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 86)      = 86
25702/1:       0.0305      getpid()                              = 25702 [25701]
25702/1:       0.0305      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 157)      = 157
25702/1:       0.0306      getpid()                              = 25702 [25701]
25702/1:       0.0306      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 108)      = 108
25702/1:       0.0307      getpid()                              = 25702 [25701]
25702/1:       0.0307      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 81)      = 81
25702/1:       0.0308      getpid()                              = 25702 [25701]
25702/1:       0.0308      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 73)      = 73
25702/1:       0.0309      getpid()                              = 25702 [25701]
25702/1:       0.0309      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 46)      = 46
25702/1:       0.0310      getpid()                              = 25702 [25701]
25702/1:       0.0310      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0311      getpid()                              = 25702 [25701]
25702/1:       0.0311      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0312      getpid()                              = 25702 [25701]
25702/1:       0.0312      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 90)      = 90
25702/1:       0.0313      uname(0xFFBFF6F0)                        = 1
25702/1:       0.0313      getpid()                              = 25702 [25701]
25702/1:       0.0314      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 108)      = 108
25702/1:       0.0314      getpid()                              = 25702 [25701]
25702/1:       0.0315      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0315      getpid()                              = 25702 [25701]
25702/1:       0.0316      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0316      getpid()                              = 25702 [25701]
25702/1:       0.0316      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0317      getpid()                              = 25702 [25701]
25702/1:       0.0317      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0318      getpid()                              = 25702 [25701]
25702/1:       0.0318      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0319      getpid()                              = 25702 [25701]
25702/1:       0.0319      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0320      getpid()                              = 25702 [25701]
25702/1:       0.0320      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 58)      = 58
25702/1:       0.0321      getpid()                              = 25702 [25701]
25702/1:       0.0321      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0322      getpid()                              = 25702 [25701]
25702/1:       0.0322      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 67)      = 67
25702/1:       0.0323      getpid()                              = 25702 [25701]
25702/1:       0.0324      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 88)      = 88
25702/1:       0.0324      getpid()                              = 25702 [25701]
25702/1:       0.0325      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0325      sigaction(SIGHUP, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0326      getpid()                              = 25702 [25701]
25702/1:       0.0326      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0327      getpid()                              = 25702 [25701]
25702/1:       0.0327      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0328      sigaction(SIGINT, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0328      getpid()                              = 25702 [25701]
25702/1:       0.0329      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0329      getpid()                              = 25702 [25701]
25702/1:       0.0330      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0330      sigaction(SIGQUIT, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0331      getpid()                              = 25702 [25701]
25702/1:       0.0331      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0332      getpid()                              = 25702 [25701]
25702/1:       0.0332      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0333      sigaction(SIGILL, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0333      getpid()                              = 25702 [25701]
25702/1:       0.0333      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0334      getpid()                              = 25702 [25701]
25702/1:       0.0334      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0335      sigaction(SIGBUS, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0335      getpid()                              = 25702 [25701]
25702/1:       0.0336      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0336      getpid()                              = 25702 [25701]
25702/1:       0.0337      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0337      sigaction(SIGFPE, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0338      getpid()                              = 25702 [25701]
25702/1:       0.0338      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0339      getpid()                              = 25702 [25701]
25702/1:       0.0339      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0339      sigaction(SIGSEGV, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0340      getpid()                              = 25702 [25701]
25702/1:       0.0340      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0341      getpid()                              = 25702 [25701]
25702/1:       0.0341      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0342      sigaction(SIGTERM, 0xFFBFF558, 0xFFBFF5D8)      = 0
25702/1:       0.0342      getpid()                              = 25702 [25701]
25702/1:       0.0343      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0343      getpid()                              = 25702 [25701]
25702/1:       0.0344      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0344      getpid()                              = 25702 [25701]
25702/1:       0.0345      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0345      getpid()                              = 25702 [25701]
25702/1:       0.0346      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0346      sigaction(SIGPIPE, 0xFFBFF4E8, 0xFFBFF568)      = 0
25702/1:       0.0346      getpid()                              = 25702 [25701]
25702/1:       0.0347      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0347      getpid()                              = 25702 [25701]
25702/1:       0.0348      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0349      getpid()                              = 25702 [25701]
25702/1:       0.0349      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0350      getpid()                              = 25702 [25701]
25702/1:       0.0350      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 82)      = 82
25702/1:       0.0351      getpid()                              = 25702 [25701]
25702/1:       0.0352      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 47)      = 47
25702/1:       0.0352      getpid()                              = 25702 [25701]
25702/1:       0.0353      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0353      getpid()                              = 25702 [25701]
25702/1:       0.0354      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 67)      = 67
25702/1:       0.0354      getpid()                              = 25702 [25701]
25702/1:       0.0355      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 64)      = 64
25702/1:       0.0355      stat64("/dev/ptyp1", 0xFFBFF290)            = 0
25702/1:       0.0356      getpid()                              = 25702 [25701]
25702/1:       0.0357      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 99)      = 99
25702/1:       0.0357      getpid()                              = 25702 [25701]
25702/1:       0.0358      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 61)      = 61
25702/1:       0.0358      getpid()                              = 25702 [25701]
25702/1:       0.0359      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 79)      = 79
25702/1:       0.0359      getpid()                              = 25702 [25701]
25702/1:       0.0359      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 97)      = 97
25702/1:       0.0360      getpid()                              = 25702 [25701]
25702/1:       0.0360      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 65)      = 65
25702/1:       0.0361      open("/dev/ptyp1", O_RDWR|O_APPEND)            = 4
25702/1:       0.0362      getpid()                              = 25702 [25701]
25702/1:       0.0362      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 70)      = 70
25702/1:       0.0363      getpid()                              = 25702 [25701]
25702/1:       0.0363      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 71)      = 71
25702/1:       0.0364      ioctl(4, I_PUSH, "ptem")                  Err#25 ENOTTY
25702/1:       0.0365      getpid()                              = 25702 [25701]
25702/1:       0.0365      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0366      getpid()                              = 25702 [25701]
25702/1:       0.0366      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 71)      = 71
25702/1:       0.0367      ioctl(4, I_PUSH, "ldterm")                  Err#25 ENOTTY
25702/1:       0.0367      getpid()                              = 25702 [25701]
25702/1:       0.0368      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0368      getpid()                              = 25702 [25701]
25702/1:       0.0369      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 71)      = 71
25702/1:       0.0369      ioctl(4, I_PUSH, "ttcompat")                  Err#25 ENOTTY
25702/1:       0.0370      getpid()                              = 25702 [25701]
25702/1:       0.0370      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0371      getpid()                              = 25702 [25701]
25702/1:       0.0371      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 45)      = 45
25702/1:       0.0372      ioctl(4, TCGETA, 0xFFBFF2B4)                  Err#25 ENOTTY
25702/1:       0.0372      getpid()                              = 25702 [25701]
25702/1:       0.0373      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0373      getpid()                              = 25702 [25701]
25702/1:       0.0374      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0374      fcntl(4, F_SETFD, 0x00000001)                  = 0
25702/1:       0.0375      getpid()                              = 25702 [25701]
25702/1:       0.0375      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 48)      = 48
25702/1:       0.0376      getpid()                              = 25702 [25701]
25702/1:       0.0376      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0377      brk(0x00067E48)                              = 0
25702/1:       0.0377      brk(0x00069E48)                              = 0
25702/1:       0.0378      getpid()                              = 25702 [25701]
25702/1:       0.0378      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0379      getpid()                              = 25702 [25701]
25702/1:       0.0379      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 47)      = 47
25702/1:       0.0380      getpid()                              = 25702 [25701]
25702/1:       0.0380      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0381      getpid()                              = 25702 [25701]
25702/1:       0.0381      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 67)      = 67
25702/1:       0.0382      getpid()                              = 25702 [25701]
25702/1:       0.0382      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 68)      = 68
25702/1:       0.0383      getpid()                              = 25702 [25701]
25702/1:       0.0384      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 100)      = 100
25702/1:       0.0385      open("/etc/netconfig", O_RDONLY|O_LARGEFILE)      = 5
25702/1:       0.0386      fcntl(5, F_DUPFD, 0x00000100)                  Err#22 EINVAL
25702/1:       0.0387      read(5, " # p r a g m a   i d e n".., 1024)      = 1024
25702/1:       0.0388      read(5, " t s           t p i _ c".., 1024)      = 215
25702/1:       0.0388      read(5, 0x00068170, 1024)                  = 0
25702/1:       0.0389      lseek(5, 0, SEEK_SET)                        = 0
25702/1:       0.0389      read(5, " # p r a g m a   i d e n".., 1024)      = 1024
25702/1:       0.0390      read(5, " t s           t p i _ c".., 1024)      = 215
25702/1:       0.0391      read(5, 0x00068170, 1024)                  = 0
25702/1:       0.0392      close(5)                              = 0
25702/1:       0.0394      open("/dev/udp", O_RDONLY)                  = 5
25702/1:       0.0396      ioctl(5, 0xC00C6982, 0xFFBFEC6C)            = 0
25702/1:       0.0397      close(5)                              = 0
25702/1:       0.0399      getpid()                              = 25702 [25701]
25702/1:       0.0400      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 82)      = 82
25702/1:       0.0401      getpid()                              = 25702 [25701]
25702/1:       0.0401      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 46)      = 46
25702/1:       0.0402      getpid()                              = 25702 [25701]
25702/1:       0.0402      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0403      getpid()                              = 25702 [25701]
25702/1:       0.0403      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 81)      = 81
25702/1:       0.0404      getpid()                              = 25702 [25701]
25702/1:       0.0404      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 57)      = 57
25702/1:       0.0405      getpid()                              = 25702 [25701]
25702/1:       0.0405      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 51)      = 51
25702/1:       0.0406      so_socket(PF_INET, SOCK_STREAM, IPPROTO_TCP, "", 1) = 5
25702/1:       0.0407      getpid()                              = 25702 [25701]
25702/1:       0.0408      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 56)      = 56
25702/1:       0.0408      getpid()                              = 25702 [25701]
25702/1:       0.0409      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 47)      = 47
25702/1:       0.0409      fcntl(5, F_GETFL, 0x00000020)                  = 2
25702/1:       0.0410      getpid()                              = 25702 [25701]
25702/1:       0.0410      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 48)      = 48
25702/1:       0.0411      getpid()                              = 25702 [25701]
25702/1:       0.0411      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:       0.0412      fcntl(5, F_SETFL, 0x00000082)                  = 0
25702/1:       0.0412      getpid()                              = 25702 [25701]
25702/1:       0.0412      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 48)      = 48
25702/1:       0.0413      getpid()                              = 25702 [25701]
25702/1:       0.0413      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:       0.0414      fcntl(5, F_SETFD, 0x00000001)                  = 0
25702/1:       0.0414      getpid()                              = 25702 [25701]
25702/1:       0.0415      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 48)      = 48
25702/1:       0.0415      getpid()                              = 25702 [25701]
25702/1:       0.0416      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 79)      = 79
25702/1:       0.0417      connect(5, 0xFFBFF438, 16, 1)                  Err#150 EINPROGRESS
25702/1:       0.0418      getpid()                              = 25702 [25701]
25702/1:       0.0418      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 51)      = 51
25702/1:       0.0419      getpid()                              = 25702 [25701]
25702/1:       0.0419      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 75)      = 75
25702/1:       0.0420      getsockname(5, 0xFFBFF218, 0xFFBFF17C, 1)      = 0
25702/1:       0.0420      getpid()                              = 25702 [25701]
25702/1:       0.0421      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 87)      = 87
25702/1:       0.0422      getpid()                              = 25702 [25701]
25702/1:       0.0422      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 102)      = 102
25702/1:       0.0423      getpid()                              = 25702 [25701]
25702/1:       0.0423      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 101)      = 101
25702/1:       0.0424      getpid()                              = 25702 [25701]
25702/1:       0.0424      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 74)      = 74
25702/1:       0.0425      getpid()                              = 25702 [25701]
25702/1:       0.0425      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 49)      = 49
25702/1:       0.0425      brk(0x00069E48)                              = 0
25702/1:       0.0426      brk(0x0006DE48)                              = 0
25702/1:       0.0427      getpid()                              = 25702 [25701]
25702/1:       0.0427      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 53)      = 53
25702/1:       0.0428      getpid()                              = 25702 [25701]
25702/1:       0.0428      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 88)      = 88
25702/1:       0.0429      getpid()                              = 25702 [25701]
25702/1:       0.0429      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 118)      = 118
25702/1:       0.0430      getpid()                              = 25702 [25701]
25702/1:       0.0430      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 80)      = 80
25702/1:       0.0498      poll(0xFFBFF310, 2, -1)                        = 1
25702/1:       0.0498      getpid()                              = 25702 [25701]
25702/1:       0.0499      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 82)      = 82
25702/1:       0.0499      getpid()                              = 25702 [25701]
25702/1:       0.0500      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 118)      = 118
25702/1:       0.0500      getpid()                              = 25702 [25701]
25702/1:       0.0501      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 80)      = 80
25702/1:       1.0497          Stopped by signal #24, SIGTSTP, in poll()
25702/1:       1.7519          Continued with signal #25, SIGCONT [default]
25702/1:      21.1732      poll(0xFFBFF310, 2, -1)                        = 1
25702/1:      21.1733      getpid()                              = 25702 [25701]
25702/1:      21.1734      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 82)      = 82
25702/1:      21.1735      getpid()                              = 25702 [25701]
25702/1:      21.1735      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 118)      = 118
25702/1:      21.1736      getpid()                              = 25702 [25701]
25702/1:      21.1736      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 79)      = 79
25702/1:      22.1701      poll(0xFFBFF310, 2, -1)                        = 1
25702/1:      22.1702      getpid()                              = 25702 [25701]
25702/1:      22.1703      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 82)      = 82
25702/1:      22.1704      getpid()                              = 25702 [25701]
25702/1:      22.1705      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 56)      = 56
25702/1:      22.1705      read(4, 0x00069B30, 8192)                  Err#5 EIO
25702/1:      22.1706      getpid()                              = 25702 [25701]
25702/1:      22.1706      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 46)      = 46
25702/1:      22.1707      getpid()                              = 25702 [25701]
25702/1:      22.1707      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 67)      = 67
25702/1:      22.1708      getpid()                              = 25702 [25701]
25702/1:      22.1708      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 68)      = 68
25702/1:      22.1709      getpid()                              = 25702 [25701]
25702/1:      22.1709      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 61)      = 61
25702/1:      22.1710      getpid()                              = 25702 [25701]
25702/1:      22.1710      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:      22.1711      shutdown(5, 1, 1)                        = 0
25702/1:      22.1712      getpid()                              = 25702 [25701]
25702/1:      22.1712      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:      22.1713      getpid()                              = 25702 [25701]
25702/1:      22.1713      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 118)      = 118
25702/1:      22.1714      getpid()                              = 25702 [25701]
25702/1:      22.1714      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 75)      = 75
25702/1:      22.1767      poll(0xFFBFF310, 1, 500)                  = 1
25702/1:      22.1768      getpid()                              = 25702 [25701]
25702/1:      22.1768      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 78)      = 78
25702/1:      22.1769      getpid()                              = 25702 [25701]
25702/1:      22.1769      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 56)      = 56
25702/1:      22.1770      read(5, 0x00069B30, 8192)                  = 0
25702/1:      22.1770      getpid()                              = 25702 [25701]
25702/1:      22.1770      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 45)      = 45
25702/1:      22.1771      getpid()                              = 25702 [25701]
25702/1:      22.1771      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 61)      = 61
25702/1:      22.1772      getpid()                              = 25702 [25701]
25702/1:      22.1773      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:      22.1773      shutdown(5, 1, 1)                        = 0
25702/1:      22.1774      getpid()                              = 25702 [25701]
25702/1:      22.1774      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:      22.1775      getpid()                              = 25702 [25701]
25702/1:      22.1775      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 61)      = 61
25702/1:      22.1776      getpid()                              = 25702 [25701]
25702/1:      22.1776      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 50)      = 50
25702/1:      22.1776      shutdown(5, 2, 1)                        = 0
25702/1:      22.1777      getpid()                              = 25702 [25701]
25702/1:      22.1777      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 52)      = 52
25702/1:      22.1778      getpid()                              = 25702 [25701]
25702/1:      22.1778      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 57)      = 57
25702/1:      22.1779      getpid()                              = 25702 [25701]
25702/1:      22.1779      write(3, " 2 0 0 9 / 0 4 / 0 8   1".., 43)      = 43
25702/1:      22.1781      _exit(0)

0
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
Comment Utility
Well, there is nothing obvious in there. I still think that you should be using the PTY source type in socat. You should be able to just change the source to match what you are using and leave the destination designator alone.
0
 

Author Closing Comment

by:migraine007ph
Comment Utility
thanks man
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now