[tpop3d-discuss]bad file descriptor from select in tpop3d

Arkadiusz Miskiewicz arekm at pld-linux.org
Wed, 31 May 2006 15:17:40 +0200


Hi,

Under heavy load I'm getting Bad file descriptor from select.  Any ideas wh=
y=20
it's bad here?

The worse thing is that it doesn't recover from such problem.

tpop3d from latest cvs.

send(3, "<20>May 31 15:07:31 tpop3d[18018]: net_loop: select: Bad file=20
descriptor\0", 73, MSG_NOSIGNAL) =3D 73
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
rt_sigprocmask(SIG_UNBLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
select(1057, [1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1=
036=20
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051=
=20
1052 1053 1054 1055 1056], [], NULL, {1, 0}) =3D -1 EBADF (Bad file descrip=
tor)
time([1149080851])                      =3D 1149080851
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
send(3, "<20>May 31 15:07:31 tpop3d[18018]: net_loop: select: Bad file=20
descriptor\0", 73, MSG_NOSIGNAL) =3D 73
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
rt_sigprocmask(SIG_UNBLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
select(1057, [1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1=
036=20
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051=
=20
1052 1053 1054 1055 1056], [], NULL, {1, 0}) =3D -1 EBADF (Bad file descrip=
tor)
time([1149080851])                      =3D 1149080851
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
send(3, "<20>May 31 15:07:31 tpop3d[18018]: net_loop: select: Bad file=20
descriptor\0", 73, MSG_NOSIGNAL) =3D 73
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
rt_sigprocmask(SIG_UNBLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
select(1057, [1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1=
036=20
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051=
=20
1052 1053 1054 1055 1056], [], NULL, {1, 0}) =3D -1 EBADF (Bad file descrip=
tor)
time([1149080851])                      =3D 1149080851
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
stat64("/etc/localtime", {st_mode=3DS_IFREG|0644, st_size=3D981, ...}) =3D 0
send(3, "<20>May 31 15:07:31 tpop3d[18018]: net_loop: select: Bad file=20
descriptor\0", 73, MSG_NOSIGNAL) =3D 73
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
rt_sigprocmask(SIG_UNBLOCK, ~[RTMIN RT_1], NULL, 8) =3D 0
select(1057, [1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1=
036=20
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051=
=20
1052 1053 1054 1055 1056], [], NULL, {1, 0}) =3D -1 EBADF (Bad file descrip=
tor)

=2D-=20
Arkadiusz Mi=B6kiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/