[Samba] closewait socket state

Jonathan DEL CAMPO /jdc/ .Y jonathan.delcampo at mikrosimage.fr
Tue Jul 11 14:48:08 GMT 2006


I have a probleme with my samba server. I have a lot of closewait socket
state causing the load average to increase.
Samba generate some errors logs but I don't know the signification of
"Signal 7 in pid xxx".

For information, I am running a samba 3.0.10-1.4E.2 under a kernel Linux
version 2.6.9-22 with a RHEL 3.4.4-2.

Here is the log file (/var/log/messages) :

----------------------
Jul 11 13:56:33 linuxd smbd[8481]:   yield_connection: tdb_delete for name
J failed with error Record does not exist.
Jul 11 13:56:33 linuxd smbd[27341]: [2006/07/11 13:56:33, 0]
lib/util_sock.c:write_socket_data(430)
Jul 11 13:56:33 linuxd smbd[19620]: [2006/07/11 13:56:33, 0]
smbd/connection.c:yield_connection(76)
Jul 11 13:56:33 linuxd smbd[27341]:   write_socket_data: write failure.
Error = Broken pipe
Jul 11 13:56:33 linuxd smbd[8408]: [2006/07/11 13:56:33, 0]
lib/util_sock.c:write_socket_data(430)
Jul 11 13:56:33 linuxd smbd[27341]: [2006/07/11 13:56:33, 0]
smbd/connection.c:yield_connection(76)
Jul 11 13:56:33 linuxd smbd[8489]: [2006/07/11 13:56:33, 0]
smbd/connection.c:yield_connection(76)
[...]

1 13:56:33 linuxd smbd[17231]:   write_socket_data: write failure. Error =
Broken pipe
Jul 11 13:56:33 linuxd smbd[16632]:   write_socket_data: write failure.
Error = Broken pipe
Jul 11 13:56:33 linuxd smbd[8410]:   write_socket_data: write failure.
Error = Broken pipe
Jul 11 13:56:33 linuxd smbd[2542]:   oplock_break: end of file from client
Jul 11 13:56:33 linuxd smbd[13744]:   write_socket_data: write failure.
Error = Broken pipe
Jul 11 13:56:33 linuxd smbd[27841]:   write_socket_data: write failure.
Error = Connection reset by peer
Jul 11 13:56:33 linuxd smbd[8484]:   write_socket_data: write failure.
Error = Broken pipe
[...]
ul 11 13:56:37 linuxd smbd[9455]:   Error writing 134 bytes to client. -1.
(Broken pipe)
Jul 11 13:56:37 linuxd smbd[8980]:   Error writing 58 bytes to client. -1.
(Broken pipe)
Jul 11 13:56:37 linuxd smbd[8963]:   Error writing 58 bytes to client. -1.
(Broken pipe)
Jul 11 13:56:37 linuxd smbd[14781]: [2006/07/11 13:56:37, 0]
lib/fault.c:fault_report(39)
Jul 11 13:56:37 linuxd smbd[10470]:   Error writing 58 bytes to client.
-1. (Broken pipe)
Jul 11 13:56:37 linuxd smbd[8706]:   Error writing 134 bytes to client.
-1. (Broken pipe)
Jul 11 13:56:37 linuxd smbd[9066]:   Error writing 134 bytes to client.
-1. (Broken pipe)
Jul 11 13:56:37 linuxd smbd[9450]:   Error writing 134 bytes to client.
-1. (Broken pipe)
Jul 11 13:56:37 linuxd smbd[8715]:   Error writing 134 bytes to client.
-1. (Broken pipe)
[...]
Jul 11 13:56:37 linuxd smbd[14781]:   BACKTRACE: 16 stack frames:
Jul 11 13:56:37 linuxd smbd[9074]:   BACKTRACE: 20 stack frames:
Jul 11 13:56:37 linuxd smbd[16632]:   yield_connection: tdb_delete for
name H failed with error Record does not exist.
Jul 11 13:56:37 linuxd smbd[14781]:    #0 smbd(smb_panic2+0x8a) [0xe9fe90]
Jul 11 13:56:37 linuxd smbd[9074]:    #0 smbd(smb_panic2+0x8a) [0xe9fe90]
Jul 11 13:56:37 linuxd smbd[14781]:    #1 smbd(smb_panic+0x19) [0xea00bc]
Jul 11 13:56:37 linuxd smbd[9074]:    #1 smbd(smb_panic+0x19) [0xea00bc]
Jul 11 13:56:37 linuxd smbd[14781]:    #2 smbd [0xe8c80f]
Jul 11 13:56:37 linuxd smbd[9074]:    #2 smbd [0xe8c80f]
Jul 11 13:56:37 linuxd smbd[14781]:    #3 /lib/tls/libc.so.6 [0x3f38c8]
Jul 11 13:56:37 linuxd smbd[9074]:    #3 /lib/tls/libc.so.6 [0x3f38c8]
Jul 11 13:56:37 linuxd smbd[14781]:    #4 smbd [0xeb393d]
Jul 11 13:56:37 linuxd smbd[9074]:    #4 smbd [0xeb393d]
Jul 11 13:56:37 linuxd smbd[14781]:    #5 smbd [0xeb3f2e]
Jul 11 13:56:37 linuxd smbd[9074]:    #5 smbd [0xeb3f2e]
Jul 11 13:56:37 linuxd smbd[14781]:    #6 smbd(tdb_store+0x137) [0xeb5056]
Jul 11 13:56:37 linuxd smbd[9074]:    #6 smbd(tdb_store+0x137) [0xeb5056]
Jul 11 13:56:37 linuxd smbd[14781]:    #7 smbd(set_share_mode+0x1d3)
[0xe5cd19]
Jul 11 13:56:37 linuxd smbd[9074]:    #7 smbd(claim_connection+0x252)
[0xd35b16]
Jul 11 13:56:37 linuxd smbd[14781]:    #8 smbd(open_file_shared1+0xde2)
[0xd77dfd]
Jul 11 13:56:37 linuxd smbd[9074]:    #8 smbd [0xd8b539]
Jul 11 13:56:37 linuxd smbd[14781]:    #9 smbd(reply_ntcreate_and_X+0x88f)
[0xd4af38]
Jul 11 13:56:37 linuxd smbd[9074]:    #9 smbd(make_connection+0x162)
[0xd8ca54]
Jul 11 13:56:37 linuxd smbd[14781]:    #10 smbd [0xd89412]
Jul 11 13:56:37 linuxd smbd[9074]:    #10 smbd(reply_tcon_and_X+0x1d3)
[0xd52bb6]
Jul 11 13:56:37 linuxd smbd[14781]:    #11 smbd(process_smb+0x19b)
[0xd8984c]
Jul 11 13:56:37 linuxd smbd[9074]:    #11 smbd [0xd89412]
Jul 11 13:56:37 linuxd smbd[14781]:    #12 smbd(smbd_process+0x15f)
[0xd8a574]
Jul 11 13:56:37 linuxd smbd[9074]:    #12 smbd(chain_reply+0x178)
[0xd89cb8]
Jul 11 13:56:37 linuxd smbd[14781]:    #13 smbd(main+0x865) [0xf1c567]
Jul 11 13:56:37 linuxd smbd[9074]:    #13
smbd(reply_sesssetup_and_X+0xabe) [0xd62feb]
Jul 11 13:56:37 linuxd smbd[14781]:    #14
/lib/tls/libc.so.6(__libc_start_main+0xd3) [0x3e0e23]
Jul 11 13:56:37 linuxd smbd[9074]:    #14 smbd [0xd89412]
Jul 11 13:56:37 linuxd smbd[14781]:    #15 smbd [0xd291e1]
Jul 11 13:56:37 linuxd smbd[9074]:    #15 smbd(process_smb+0x19b)
[0xd8984c]
Jul 11 13:56:37 linuxd smbd[14781]:
Jul 11 13:56:37 linuxd smbd[9074]:    #16 smbd(smbd_process+0x15f)
[0xd8a574]
[...]
Jul 11 13:56:38 linuxd smbd[9856]: [2006/07/11 13:56:38, 0]
smbd/connection.c:yield_connection(76)
Jul 11 13:56:38 linuxd smbd[16143]:   INTERNAL ERROR: Signal 7 in pid
16143 (3.0.10-1.4E.2)
Jul 11 13:56:38 linuxd smbd[9856]:   yield_connection: tdb_delete for name
IPC$ failed with error Record does not exist.
Jul 11 13:56:38 linuxd smbd[16143]:   Please read the appendix Bugs of the
Samba HOWTO collection
Jul 11 13:56:38 linuxd smbd[16143]: [2006/07/11 13:56:38, 0]
lib/fault.c:fault_report(39)
Jul 11 13:56:38 linuxd smbd[16143]:  
===============================================================
Jul 11 13:56:38 linuxd smbd[16143]: [2006/07/11 13:56:38, 0]
lib/util.c:smb_panic2(1504)
Jul 11 13:56:38 linuxd smbd[16143]:   PANIC: internal error
Jul 11 13:56:38 linuxd smbd[16143]: [2006/07/11 13:56:38, 0]
lib/util.c:smb_panic2(1512)

-----------------------

If anyone could help me , I will really appreciate.
thanks









More information about the samba mailing list