write_socket_data bug

Lee Howard faxguy at deanox.com
Fri Oct 27 17:17:13 GMT 2000


>I've installed Samba ( i've tested the 2.0.6 and 2.0.7 ) on a Sun Solaris
>8 in english , and i've problems with a connection to a Windows 2000
>Advanced Server in english, using Active Directory, the messages i see in
>the logs are: 
>
>[2000/10/26 17:42:09, 0] lib/util_sock.c:write_socket_data(537)
>  write_socket_data: write failure. Error = Broken pipe [2000/10/26
>17:42:09, 0] lib/util_sock.c:write_socket(563)
>  write_socket: Error writing 140 bytes to socket 8: ERRNO = Broken pipe

I get nearly identical errors with Samba 2.0.7 on RedHat 6.1 (updated).  I
maintain at least four other Samba servers with nearly identical
configurations, and none of them have this problem.  I have re-installed
Samba with no improvement.  Restarting samba doesn't help me, either.

It has been suggested to evaluate for any defective hardware, but I don't
have other network problems, and I don't believe it to be faulty hardware.
Methinks there is a bug in lib/util_sock.c in the write_socket_data routine.

I'm using 3Com 3C905B/C ethernet cards in the Samba server.

>the first message appears in the log every 6 minutes, and after a random
>periode i've to restart the samba server.

My errors don't appear every six minutes.  They appear at fairly random
intervals.

Here's my log...

[root at virtue samba]# cat log.mortimer
[2000/10/26 16:07:22, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/26 16:07:22, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/26 16:07:22, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/26 16:07:22, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/26 16:07:22, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/26 16:07:22, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/26 16:07:25, 1] smbd/service.c:make_connection(550)
  mortimer (192.168.2.24) connect to service netlogon as user sean
(uid=516, gid
=518) (pid 21193)
[2000/10/26 16:07:25, 1] smbd/service.c:close_cnum(583)
  mortimer (192.168.2.24) closed connection to service netlogon
[2000/10/26 16:07:32, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/26 16:07:32, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/26 16:07:32, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/26 16:07:52, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/26 16:07:52, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/26 16:07:52, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/27 08:00:49, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/27 08:00:49, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/27 08:00:49, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/27 08:00:59, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/27 08:00:59, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/27 08:00:59, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/27 08:01:09, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/27 08:01:09, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/27 08:01:09, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/27 08:01:19, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/27 08:01:19, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/27 08:01:19, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/27 08:01:29, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/27 08:01:29, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/27 08:01:29, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[2000/10/27 08:01:39, 0] lib/util_sock.c:write_socket_data(540)
  write_socket_data: write failure. Error = Broken pipe
[2000/10/27 08:01:39, 0] lib/util_sock.c:write_socket(566)
  write_socket: Error writing 4 bytes to socket 6: ERRNO = Broken pipe
[2000/10/27 08:01:39, 0] lib/util_sock.c:send_smb(754)
  Error writing 4 bytes to client. -1. Exiting
[root at virtue samba]#

Lee Howard





More information about the samba-technical mailing list