On Wed, Dec 06, 2006 at 09:18:38AM -0300, Alvaro Herrera wrote: > Gerrit Pape wrote: > > On Thu, Nov 23, 2006 at 07:20:09PM -0300, Alvaro Herrera wrote: > > > The authentication process eats all available CPU power and does not > > > return success, even when the given password is correct. strace'ing the > > > process shows this output: > > > > Hi Alvaro, > > > > I cannot reproduce the problem. > > Hmm, maybe it's because of the architecture? I'm on an AMD64 here.
Yes, probably, I'm on powerpc. Unfortunately I don't have an AMD64 system to test with. > > This is what I did: > > > > # apt-get install twoftpd-run lftp > > ... > > # sv stat twoftpd > > run: twoftpd: (pid 21318) 185s; run: log: (pid 21317) 185s > > # > > $ sudo aptitude install twoftpd-run lftp > > This starts the server automatically: > > $ ps xuaw | grep ftp > root 1771 0.0 0.0 104 28 ? Ss 09:08 0:00 runsv twoftpd > ftplog 1772 0.0 0.0 128 44 ? S 09:08 0:00 svlogd -t > /var/log/twoftpd > root 1773 0.0 0.0 6792 948 ? S 09:08 0:00 tcpsvd -v > -llocalhost 0 21 chpst -m3000000 -e./env twoftpd-auth cvm-unix twoftpd-xfer > alvherre 1778 0.0 0.0 5216 772 pts/9 R+ 09:08 0:00 grep ftp > > Then I try to connect: > > $ lftp -u alvherre localhost > Password: > lftp [EMAIL PROTECTED]:~> ls > `ls' at 0 [Sending commands...] > It sticks here and I see the CPU at 100% in a CPU monitor. This > line is replaced with the next one when I C-c: > Interrupted > lftp [EMAIL PROTECTED]:~> exit > > On the "ls" command, I see the CPU pegged at 100%. When I exit lftp, > the CPU is still at 100%. The guilty process is twoftpd-auth: > > $ ps u -C twoftpd-auth > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > root 1958 97.9 0.0 2660 380 ? R 09:13 1:08 twoftpd-auth > cvm-unix twoftpd-xfer > > > > Do you use the twoftpd-run package? Please post the startup script for > > twoftpd you're using, and the configuration. > > Yes. The configuration is the default, I think, and certainly the > startup script is. (It was started by "aptitude" or dpkg). Ok, that's good. Can you please strace the complete command chain? Please change the final line in /var/service/twoftpd/run to ... strace -f -o/tmp/trace twoftpd-auth cvm-unix twoftpd-xfer restart the service with # sv restart twoftpd try to connect and 'ls' again, and then send the complete strace output from /tmp/trace to this bug report? Thanks, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]