bug report: recv failure

Ragnar Kurm ragnar at uninet.ee
Tue Dec 28 10:02:06 GMT 1999


i'm not sure where to post bug reports...


i upgraded my samba from 1.9.17alpha5 to samba-2.0.5a.
uname -srvmpi
 SunOS 5.5.1 Generic i86pc i386 i86pc

new server fails. following error appeared. log reads:

  Copyright Andrew Tridgell 1992-1998
[1999/12/27 18:17:14, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1014 are available.
[1999/12/27 18:17:14, 0] lib/util_sock.c:read_socket_data(507)
  read_socket_data: recv failure for 4. Error = Invalid argument

i start smbd from inetd.
also there is rpcbind present.
running from command line smbd works well.

as far as i understand, the following line (in
lib/util_sock.c:read_socket_data) is responsible:
ret = recv(fd,buffer + total,N - total, MSG_WAITALL);
my configuration MSG_WAITALL equals 0. (checked with gcc -E ...)

my recv manpage says:
     The flags parameter is formed by ORing one or  more  of  the
     following:
	MSG_OOB ...
	MSG_PEEK ...

according to sys/socket.h:
#define MSG_OOB         0x1
#define MSG_PEEK        0x2


ragnar




More information about the samba-technical mailing list