From: Michael K. <mic...@gm...> - 2011-08-20 20:35:39
|
On 08/19/2011 11:46 PM, Michael Kappert wrote: > On 08/19/2011 10:44 PM, Michael Kappert wrote: >> (DEFPARAMETER *SOCKET-1* (SHOW (SOCKET-CONNECT (SOCKET-SERVER-PORT *SERVER*) "lo >> calhost" :TIMEOUT 0))) >> [OS-ERROR]: OS-ERROR(22) : Invalid argument > > In the debugger I see > > create_client_socket (hostname=0x277cb0 "localhost", port=49566, > timeout=0x277d38) at ../src/socket.d:886 > 886 } > (gdb) > C_socket_connect () at ../src/stream.d:14251 > 14251 if (handle == INVALID_SOCKET) { ANSIC_error(); } > (gdb) > > *** - OS-ERROR(NIL) : No error I don't understand this. The problem seems to be caused by ioctl() returning -1 in socket.d:831, but subsequently errcode being 0. gdb won't step into ioctl() --why?? Looking at gllib/ioctl.c, execute_all_ioctl_hooks should be called, but the breakpoint in this function was not hit. gdb tells me primary_ioctl() is not defined ?! config.h: /* Define to 1 when the gnulib module ioctl should be tested. */ #define GNULIB_TEST_IOCTL 1 /* Define to 1 if you have the `ioctl' function. */ /* #undef HAVE_IOCTL */ /* Define if WSAStartup is needed. */ #define WINDOWS_SOCKETS 1 Any suggestions? Michael |