I have a program that sets up a server on UDP port 59; it runs with no problem under windows XP. Under wine it fails, the log shows "Permission denied" for the WS_bind function. Has anyone else seen this? Does anyone know how to work around this? trace:winsock:WSAStartup succeeded trace:winsock:WS_socket af=2 type=1 protocol=0 trace:winsock:WSASocketA af=2 type=1 protocol=0 protocol_info=(nil) group=0 flags=0x1 trace:winsock:WSASocketW af=2 type=1 protocol=0 protocol_info=(nil) group=0 flags=0x1 trace:winsock:WSASocketW created 0048 trace:winsock:WS_bind socket 0048, ptr 0x32fbec { family 2, address 127.0.0.1, port 0 }, length 16 trace:winsock:WS_listen socket 0048, backlog 3 trace:winsock:WS_getsockname socket: 0048, ptr 0x32fc0c, len 10 trace:winsock:DllMain 0x7ee60000 0x2 (nil) trace:winsock:WS_socket af=2 type=1 protocol=0 trace:winsock:WSASocketA af=2 type=1 protocol=0 protocol_info=(nil) group=0 flags=0x1 trace:winsock:WSASocketW af=2 type=1 protocol=0 protocol_info=(nil) group=0 flags=0x1 trace:winsock:WSASocketW created 0054 trace:winsock:WS_connect socket 0054, ptr 0x7e85169c { family 2, address 127.0.0.1, port 56208 }, length 16 trace:winsock:DllMain 0x7ee60000 0x3 (nil) trace:winsock:WS_select read 0x8210b0, write (nil), excp (nil) timeout 0x32fb9c trace:winsock:__WSAFDIsSet (72,0x8210b0(1)) trace:winsock:WS_accept socket 0048 trace:winsock:WS_getpeername socket: 004c, ptr 0x32fbfc, len 00000010 trace:winsock:WS_closesocket socket 0048 trace:winsock:WS_select read 0x8210b0, write (nil), excp (nil) timeout 0x32fb6c trace:winsock:WS_socket af=2 type=2 protocol=0 trace:winsock:WSASocketA af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x1 trace:winsock:WSASocketW af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x1 trace:winsock:WSASocketW created 0048 trace:winsock:WS_bind socket 0048, ptr 0x32fbe4 { family 2, address 0.0.0.0, port 59 }, length 16 warn:winsock:WS_bind failure - errno = 13 warn:winsock:wsaErrno errno 13, (Permission denied). trace:winsock:WS_closesocket socket 0048 - This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.winehq.org/pipermail/wine-users/attachments/20090209/466a04e6/attachment.htm
On Mon, Feb 9, 2009 at 10:35 AM, Steve Ramm <Steve.Ramm at imgtec.com> wrote:> I have a program that sets up a server on UDP port 59; it runs with no > problem under windows XP. Under wine it fails, the log shows "Permission > denied" for the WS_bind function. > > Has anyone else seen this? Does anyone know how to work around this? > > > > trace:winsock:WSAStartup succeeded > > trace:winsock:WS_socket af=2 type=1 protocol=0 > > trace:winsock:WSASocketA af=2 type=1 protocol=0 protocol_info=(nil) > group=0 flags=0x1 > > trace:winsock:WSASocketW af=2 type=1 protocol=0 protocol_info=(nil) > group=0 flags=0x1 > > trace:winsock:WSASocketW created 0048 > > trace:winsock:WS_bind socket 0048, ptr 0x32fbec { family 2, address > 127.0.0.1, port 0 }, length 16 > > trace:winsock:WS_listen socket 0048, backlog 3 > > trace:winsock:WS_getsockname socket: 0048, ptr 0x32fc0c, len 10 > > trace:winsock:DllMain 0x7ee60000 0x2 (nil) > > trace:winsock:WS_socket af=2 type=1 protocol=0 > > trace:winsock:WSASocketA af=2 type=1 protocol=0 protocol_info=(nil) > group=0 flags=0x1 > > trace:winsock:WSASocketW af=2 type=1 protocol=0 protocol_info=(nil) > group=0 flags=0x1 > > trace:winsock:WSASocketW created 0054 > > trace:winsock:WS_connect socket 0054, ptr 0x7e85169c { family 2, address > 127.0.0.1, port 56208 }, length 16 > > trace:winsock:DllMain 0x7ee60000 0x3 (nil) > > trace:winsock:WS_select read 0x8210b0, write (nil), excp (nil) timeout > 0x32fb9c > > trace:winsock:__WSAFDIsSet (72,0x8210b0(1)) > > trace:winsock:WS_accept socket 0048 > > trace:winsock:WS_getpeername socket: 004c, ptr 0x32fbfc, len 00000010 > > trace:winsock:WS_closesocket socket 0048 > > trace:winsock:WS_select read 0x8210b0, write (nil), excp (nil) timeout > 0x32fb6c > > trace:winsock:WS_socket af=2 type=2 protocol=0 > > trace:winsock:WSASocketA af=2 type=2 protocol=0 protocol_info=(nil) > group=0 flags=0x1 > > trace:winsock:WSASocketW af=2 type=2 protocol=0 protocol_info=(nil) > group=0 flags=0x1 > > trace:winsock:WSASocketW created 0048 > > trace:winsock:WS_bind socket 0048, ptr 0x32fbe4 { family 2, address > 0.0.0.0, port 59 }, length 16 > > warn:winsock:WS_bind failure - errno = 13 > > warn:winsock:wsaErrno errno 13, (Permission denied). > > trace:winsock:WS_closesocket socket 0048 > > - > This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm > - > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://www.winehq.org/pipermail/wine-users/attachments/20090209/466a04e6/attachment.htm >Port 59 is reserved for root on Linux. You could use POSIX capabilities to work around it, or install/run the program as root (not recommended for most apps, except circumstances like these, because it gives the application access to your entire system). -- -Austin
> Steve Ramm wrote: > > The uncovered problem seems to be something to do with the following > > warnings and error: > > > > warn:sync:SetNamedPipeHandleState stub: 0x78 0x7e7344e8/2 (nil)(nil)> > err:service:service_control_dispatcher failed to create control pipe > > error = 3 > > warn:rpc:RPCRT4_receive_fragment Short read of header, -1 bytes > > warn:rpc:RPCRT4_io_thread receive failed with error 6be > > > > Is this something not implemented in kernel32? > >James McKenzie wrote:> Can you try running this program on Wine 1.1.15?Yes - it is now different: warn:winsock:wsaErrno errno 22, (Invalid argument). warn:sync:SetNamedPipeHandleState stub: 0x78 0x7e72a4e8/2 (nil) (nil) fixme:wtsapi:WTSQuerySessionInformationA Stub (nil) 0xffffffff 4 0x7e5b2204 0x7e5b21f4 warn:winsock:WS_bind failure - errno = 99 So the program now progresses to a hanging state rather than exiting. The first warning (and perhaps the second as a result) is not an immediate problem - I think it is the fixme that causes the failure. Cheers Steve - This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm Imagination Technologies Ltd is a limited company registered in England and Wales. Registered Number: 1306335 Registered Office: Imagination House, Home Park Estate, Kings Langley, Hertfordshire, WD4 8LZ. Email to and from the company may be monitored for compliance and other administrative purposes. -