Description of problem:
lftp doesn't work--it spins in a tight loop, moving the cursor back
and forth, never giving a prompt, regardless of command line options
Version-Release number of selected component (if applicable):
sometimes, on two different systems
Steps to Reproduce:
1. run "lftp"
2. watch cursor move from column 1 to 3 and back again
3. ctrl-c to quit
See attached strace.
Created attachment 105357 [details]
strace lftp output
This is due to the O_NONBLOCK changes in kernel-2.6.8-1.624
*** Bug 136126 has been marked as a duplicate of this bug. ***
Just rebuilding the src.rpm fixes this problem .
The lftp package had not been rebuilt since August 16th, and there
had been alot of glibc changes since then.
I've now rebuilt lftp and submitted it to FC3 as lftp-3.0.6-3 - I
can't reproduce the problem with this version.
I think the key is the kernel version, as Bill mentioned. Dave backed
out the O_NONBLOCK patch, and that should be what fixed the problem.
testing with rawhide-latest of today (10-18-2004), kernel-2.6.8-1.624,
glibc-2.3.3-68, installing the rawhide lftp RPM causes this problem
to be 100% reproducible. Just rebuilding the src.rpm and installing
the rebuilt packages makes this problem 100% unreproducible. I can't
see how it can be a kernel problem - I think the package just needed
rebuilding against the new glibc & /usr/include headers, which have
changed since August 16th 2004, when the current rawhide lftp-3.0.6-2
package was built.
Well, I can't argue with that!
This is very weird - perhaps it is a kernel issue after all:
1. I rebuild and install the lftp packages - problem disappears.
2. I reboot - problem reappears.
Rebuilding and installing then immediately fixes the problem;
reboot and it starts happening again.
I'll retest when the O_NONBLOCK patch is backed out.
*** Bug 136299 has been marked as a duplicate of this bug. ***
Created attachment 105436 [details]
proposed patch to fix lftp
This problem is now fixed with kernel-2.6.9-1.637 .