lease file: Bad file descriptor, Broken pipe

Rudy Gevaert Rudy.Gevaert at UGent.be
Thu Jan 15 09:24:56 UTC 2009


Hello,

We are running 3.0.4-13 (Debian Stable) 64bit, from time to time the 
dhcpd just disappears.  I can't find anything in the syslog. :(

I have attached an strace to the dhcpd process and this is what I have 
collected.  Some remarks:

* write is sending to file descriptor 0?  stdin?
* on the second line below I see: close(0), so that might maybe explain 
why it shows EBADF
* on the last lines of the strace I have
   write(0, "lease 157.193.2.158 {\n  starts 3"..., 328) = -1 EPIPE 
(Broken pipe)
* This machine is running in a xen environment on iscsi.
* In a later release I noticed '- Fixed file descriptor leak on listen 
failure. Thanks to Tom Clark.' Maybe this is the fix?

If would appreciate any hints in further troubleshooting the problem.

Thank you in advance.

Rudy

PS if this the wrong list, please tell me where I should send my inquiry.

sendto(3, "<187>Jan 14 20:12:50 dhcpd: time"..., 68, MSG_NOSIGNAL, NULL, 
0) = 68
close(0)                                = 0
time([1231960370])                      = 1231960370
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:50 dhcpd: peer"..., 53, MSG_NOSIGNAL, NULL, 
0) = 53
write(0, "\nfailover peer \"dhcpfo\" state {\n"..., 167) = -1 EBADF (Bad 
file descriptor)
<...>
sendto(3, "<190>Jan 14 20:12:50 dhcpd: DHCP"..., 136, MSG_NOSIGNAL, 
NULL, 0) = 136
recvfrom(5, 
"\1\1\6\0\10\213\3\242\5\0\0\0\254\20B\230\0\0\0\0\0\0\0"..., 1540, 0, 
{sa_family=AF_INET, sin_port=htons(68), 
sin_addr=inet_addr("172.16.66.152")}, [16]) = 300
gettimeofday({1231960370, 982765}, NULL) = 0
select(10, [4 5 7 9], [], [], {0, 17235}) = 2 (in [5 7], left {0, 17235})
gettimeofday({1231960370, 983168}, NULL) = 0
read(7, "\252\0\0v@\227\0\25\307\213\370\0\10\0E\0\1H9\304\0\0~"..., 
1536) = 342
write(0, "lease 157.193.9.130 {\n  starts 3"..., 364) = -1 EBADF (Bad 
file descriptor)
time([1231960370])                      = 1231960370
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:50 dhcpd: comm"..., 80, MSG_NOSIGNAL, NULL, 
0) = 80
time([1231960371])                      = 1231960371
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:51 dhcpd: DHCP"..., 131, MSG_NOSIGNAL, 
NULL, 0) = 131
recvfrom(5, 
"\1\1\6\1\273\331\20\335\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1540, 0, 
{sa_family=AF_INET, sin_port=htons(67), 
sin_addr=inet_addr("172.16.228.254")}, [16]) = 300
gettimeofday({1231960371, 23934}, NULL) = 0
time([1231960371])                      = 1231960371
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:51 dhcpd: DHCP"..., 93, MSG_NOSIGNAL, NULL, 
0) = 93
sendto(5, "\2\1\6\0017\3%\177\0\4\200\0\0\0\0\0\254\20A\274\0\0\0"..., 
303, 0, {sa_family=AF_INET, sin_port=htons(67), 
sin_addr=inet_addr("172.16.65.254")}, 16) = 303
gettimeofday({1231960371, 33657}, NULL) = 0
select(10, [4 5 7 9], [], [], {2, 966343}) = 3 (in [5 7 9], left {2, 
966343})
gettimeofday({1231960371, 34050}, NULL) = 0
read(7, "\252\0\0v@\227\0\25\307\213\370\0\10\0E\0\1H9\351\0\0~"..., 
1536) = 342
write(0, "lease 157.193.3.37 {\n  starts 3 "..., 355) = -1 EBADF (Bad 
file descriptor)
time([1231960371])                      = 1231960371
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:51 dhcpd: comm"..., 80, MSG_NOSIGNAL, NULL, 
0) = 80
time([1231960371])                      = 1231960371
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:51 dhcpd: DHCP"..., 125, MSG_NOSIGNAL, 
NULL, 0) = 125
recvfrom(5, "\1\1\6\1xV4\22\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\235\301"..., 
1540, 0, {sa_family=AF_INET, sin_port=htons(67), 
sin_addr=inet_addr("157.193.217.254")}, [16]) = 300
accept(9, {sa_family=AF_INET, sin_port=htons(34727), 
sin_addr=inet_addr("157.193.71.100")}, [38654705680]) = 0
gettimeofday({1231960371, 65634}, NULL) = 0
select(10, [0 4 5 7 9], [0], [], {2, 934366}) = 3 (in [5 7], out [0], 
left {2, 934366})
gettimeofday({1231960371, 66060}, NULL) = 0
read(7, "\252\0\0v@\227\0\25\307\213\370\0\10\0E\0\1Hg\340\0\0~"..., 
1536) = 342
write(0, "lease 157.193.10.125 {\n  starts "..., 329) = 329
fsync(0)                                = -1 EINVAL (Invalid argument)
time([1231960371])                      = 1231960371
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:51 dhcpd: comm"..., 77, MSG_NOSIGNAL, NULL, 
0) = 77
time([1231960371])                      = 1231960371
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
sendto(3, "<190>Jan 14 20:12:51 dhcpd: DHCP"..., 121, MSG_NOSIGNAL, 
NULL, 0) = 121
recvfrom(5, 
"\1\1\6\1\6\0\0\0\0\0\0\0\235\301\330\34\0\0\0\0\0\0\0\0"..., 1540, 0, 
{sa_family=AF_INET, sin_port=htons(67), 
sin_addr=inet_addr("157.193.217.254")}, [16]) = 300
write(0, "\0i\5\fIn93\0\0\0\0\0\3\0\4\235\301(d\0\25\0\4\0\0\0\n"..., 
105) = 105
gettimeofday({1231960371, 102514}, NULL) = 0
select(10, [0 4 5 7 9], [], [], {2, 897486}) = 3 (in [0 5 7], left {2, 
897486})
gettimeofday({1231960371, 102957}, NULL) = 0
read(7, "\252\0\0v@\227\0\25\307\213\370\0\10\0E\0\1HT\4\0\0~\21"..., 
1536) = 342
write(0, "lease 157.193.2.158 {\n  starts 3"..., 328) = -1 EPIPE (Broken 
pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 15992 detached
snoek:~#
-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert at UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen                    Systems group
Universiteit Gent                 Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



More information about the dhcp-users mailing list