b***@horde.net
2011-04-06 01:50:49 UTC
http://bugs.proftpd.org/show_bug.cgi?id=3639
TJ Saunders <***@castaglia.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |Backport
Status|NEW |ASSIGNED
CC| |***@ordal.com,
| |***@secure-computing.net
| |, ***@debian.org,
| |***@maytech.net,
| |***@city-fan.org,
| |***@io.com
--- Comment #1 from TJ Saunders <***@castaglia.org> 2011-04-05 21:50:48 EDT ---
A proftpd user recently provided the following strace/lsof info for a spinning
proftpd process:
% strace -p 32645
Process 32645 attached - interrupt to quit
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
Process 32645 detached
% lsof -p 32645
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
<...trimmed for anonymity...>
proftpd 32645 ftp 14u IPv4 1349183980 TCP
origin.x.x.x.x:60168->xxxxx.example.com:pptp (ESTABLISHED)
proftpd 32645 ftp 15u IPv4 1349183980 TCP
origin.1.2.3.4:60168->xxxxx.example.com:pptp (ESTABLISHED)
The strace/lsof info shows me that the fd in question (14) is a socket.
Unfortunately I can't tell from that info whether it's the control or the data
connection. But read(2) only returns EAGAIN for a socket that's been placed in
nonblocking mode, and proftpd only sets sockets in nonblocking mode for data
connections.
TJ Saunders <***@castaglia.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |Backport
Status|NEW |ASSIGNED
CC| |***@ordal.com,
| |***@secure-computing.net
| |, ***@debian.org,
| |***@maytech.net,
| |***@city-fan.org,
| |***@io.com
--- Comment #1 from TJ Saunders <***@castaglia.org> 2011-04-05 21:50:48 EDT ---
A proftpd user recently provided the following strace/lsof info for a spinning
proftpd process:
% strace -p 32645
Process 32645 attached - interrupt to quit
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
read(14, 0x1d8480c4, 1139) = -1 EAGAIN (Resource temporarily
unavailable)
Process 32645 detached
% lsof -p 32645
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
<...trimmed for anonymity...>
proftpd 32645 ftp 14u IPv4 1349183980 TCP
origin.x.x.x.x:60168->xxxxx.example.com:pptp (ESTABLISHED)
proftpd 32645 ftp 15u IPv4 1349183980 TCP
origin.1.2.3.4:60168->xxxxx.example.com:pptp (ESTABLISHED)
The strace/lsof info shows me that the fd in question (14) is a socket.
Unfortunately I can't tell from that info whether it's the control or the data
connection. But read(2) only returns EAGAIN for a socket that's been placed in
nonblocking mode, and proftpd only sets sockets in nonblocking mode for data
connections.
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.