Hello,
I have developed a middleware few years ago which run on various Unix,
GNU Linux and UWin.
A customer use my soft (BLOG) on UWin 2.88 and UWin 3.0 without any problem.
But I have some trouble with UWin 4.2.
sum posix.dll ast54.dll
54826 1144 posix.dll
60730 1248 ast54.dll
I write in syslog all errors.
So I give you uwin_log and the corresponding syslog.
socket.c: line 536: DuplicateHandle failed err=6
fork failed: (11) Try again
I have a lot of pleasure with UWin.
I am ready to send you all information you need (sources ...) and I am
ready to make any tests you request.
Thanks and regards,
Yves
==== uwin_log ====
2008-11-05 04:51:09: 718-58112: 1: 1820: 18: () posix.dll
system=UWIN-XP release=4.2/5.1 arch=i686 magic=0
2008-11-05 04:51:21: 980-77824: 77184: (at.svc) socket.c: line 536:
DuplicateHandle failed err=6
2008-11-05 04:51:21: 980-77824: 77184: (at.svc) socket.c: line 536:
DuplicateHandle failed err=6
2008-11-05 04:51:21: 980-77824: 77184: (at.svc) fsnt.c: line 3169:
SetHandleInformation failed err=6
2008-11-05 04:51:22: 9dc-80256: 66048: (BLOG.exe) socket.c: line 536:
DuplicateHandle failed err=6
2008-11-05 04:51:22: 9dc-80256: 66048: (BLOG.exe) socket.c: line 536:
DuplicateHandle failed err=6
2008-11-05 04:51:22: 9dc-80256: 66048: (BLOG.exe) fsnt.c: line 3169:
SetHandleInformation failed err=6
2008-11-05 04:51:22: 9dc-80256: 66048: (BLOG.exe) socket.c: line 536:
DuplicateHandle failed err=6
2008-11-05 04:51:36: 718-58112: 1: 3136: 18: (ums.exe) UWIN Exception:
EXCEPTION_ACCESS_VIOLATION state=0 exitcode=0 count=0
pc=7c92888f,ntdll.dll+1888f
2008-11-05 04:51:51: cb0-103936: 66048: (load.exe) fsnt.c: line 3993:
CreateFile \\.\pipe\uwin_setuid failed err=2
2008-11-05 04:51:52: d3c-108416: 106368: (ksh.exe) spawnve.c: line
2735: DuplicateHandle failed err=5
==== syslog ====
Nov 05 04:51:22 PLU101.pastacorp.com BusLogiciel: BLog ready ...
Nov 05 04:51:22 PLU101.pastacorp.com BusLogiciel: setsockopt failed
TCP_NODELAY value 1: (38) Socket operation on non-socket
Nov 05 04:51:22 PLU101.pastacorp.com BusLogiciel[80256]:
SetSocketTcpNoDelay inet failed: (38) Socket operation on non-socket
Nov 05 04:51:22 PLU101.pastacorp.com BusLogiciel[80256]: setsockopt
failed TCP_NODELAY value 1: (38) Socket operation on non-socket
Nov 05 04:51:22 PLU101.pastacorp.com BusLogiciel[80256]:
SetSocketTcpNoDelay inet failed: (38) Socket operation on non-socket
Nov 05 04:51:22 PLU101.pastacorp.com BusLogiciel[80256]: SYSTEM
ERROR:shutdown failed on 5: (38) Socket operation on non-socket
It is really a socket!
Here is the corresponding code:
------------------------------------------------------------
sock = socket(PF_INET,SOCK_STREAM,whoami.proto);
if (sock<0){
err_ret("CreatLine: Can't get sock");
return NO_SOCKET_FD;
}
SetSocketOptions(sock,len);
set_fl(sock,FD_CLOEXEC);
static EXTERN_INLINE void SetSocketOptions(const int sock,const int buf_size)
{
assert(sock>=0);
assert(buf_size>0);
if (sock<0) return;
if (SetSocketSize(NO_BLOG_THREAD,sock,SO_RCVBUF,buf_size)==FALSE){
err_ret("SetSocketSize inet RCV failed");
}
if (SetSocketSize(NO_BLOG_THREAD,sock,SO_SNDBUF,buf_size)==FALSE){
err_ret("SetSocketSize inet SND failed");
}
if (cfg->socket.tcp_nodelay==TRUE){
#if USE_TCP_NODELAY
if (SetSocketTcpNoDelay(NO_BLOG_THREAD,sock,1)==FALSE){
err_ret("SetSocketTcpNoDelay inet failed");
}
#endif /* USE_TCP_NODELAY */
}
if (cfg->socket.keepalive==TRUE){
if (SetSocketKeepAlive(NO_BLOG_THREAD,sock,1)==FALSE){
err_ret("SetSocketKeepAlive inet failed");
}
}
}
------------------------------------------------------------
Due to errors, the process stop. Our supervisor process reload it.
==== uwin_log ====
2008-11-05 04:55:00: ef8-122625: 1: () spawnve.c: line 699:
DuplicateHandle failed err=6
2008-11-05 04:55:00: ef8-122625: 1: () spawnve.c: line 838:
dup_to_init failed err=6
2008-11-05 04:55:00: ef8-122625: 1: (login.exe) spawnve.c: line 2718:
blkptr failed err=0
2008-11-05 04:55:00: ef8-122625: 1: (login.exe) spawnve.c: line 626:
CreateFile \\.\pipe\init_724 failed err=2
==== syslog ====
Nov 05 04:56:50 PLU101.pastacorp.com BLOG_GATE-c[74752]: SYSTEM
ERROR:shutdown 3: (38) Socket operation on non-socket
Nov 05 04:56:50 PLU101.pastacorp.com BLOG_GATE[82689]: fork failed:
(11) Try again
Nov 05 04:56:50 PLU101.pastacorp.com BLOG_GATE[82689]: fork failed:
(11) Try again
Nov 05 04:56:52 PLU101.pastacorp.com BLOG_GATE[82689]: fork failed:
(11) Try again
Nov 05 04:56:54 PLU101.pastacorp.com BLOG_GATE[82689]: fork failed:
(11) Try again
Nov 05 04:56:54 PLU101.pastacorp.com BLOG_GATE[82689]: fork failed:
(11) Try again
==== uwin_log ====
2008-11-05 04:56:49: 9dc-80256: 66048: (BLOG.exe) socket.c: line 536:
DuplicateHandle failed err=6
2008-11-05 04:56:50: a18-82689: 80256: (BLOG_GATE.exe) socket.c: line
536: DuplicateHandle failed err=6
2008-11-05 04:56:50: a18-82689: 80256: (BLOG_GATE.exe) socket.c: line
536: DuplicateHandle failed err=6
2008-11-05 04:56:50: a18-82689: 80256: (BLOG_GATE.exe) socket.c: line
536: DuplicateHandle failed err=6
2008-11-05 04:56:50: a18-82689: 80256: (BLOG_GATE.exe) socket.c: line
536: DuplicateHandle failed err=6
2008-11-05 04:56:52: a18-82689: 80256: (BLOG_GATE.exe) socket.c: line
536: DuplicateHandle failed err=6
2008-11-05 04:56:53: a18-82689: 80256: (BLOG_GATE.exe) socket.c: line
536: DuplicateHandle failed err=6
_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users