Hey,

I'm from Beanstalk development team, and we are using lftp heavily for our FTP/SFTP deployments feature called Releases. We have hundreds (if not thousands) of deployments each day made by our customers.

Lately we started experiencing problems with lftp. Once in a while an lftp process is getting stuck in a middle of deployment, eating 100% CPU. We tried investigating the process with gdb, here is a backtrace we've got:

#0  0xffffffffff60005c in ?? ()
#1  0x00007fffea8671e0 in ?? ()
#2  0x00000036c788b60d in gettimeofday () from /lib64/libc.so.6
#3  0x0000000000452d9e in strcmp ()
#4  0x0000000000459035 in strcmp ()
#5  0x0000000000438434 in strcmp ()
#6  0x000000000040b22c in strcmp ()
#7  0x000000000040801c in strcmp ()
#8  0x00000036c781d974 in __libc_start_main () from /lib64/libc.so.6
#9  0x0000000000407609 in strcmp ()
#10 0x00007fffea867328 in ?? ()
#11 0x0000000000000000 in ?? ()

It looks like it's running this in a loop. Any ideas why? You can see an lftp scenario for that process here:

http://pastie.org/private/tag6fjcz3zs3bnhvy3sg

Wa are using latest lftp version 4.0.2; the problem is reproducible for both FTP and SFTP protocols. Btw, we had the same problem with lftp 3.7.14 as well.

Any help is highly appreciated. Thanks.

Ilya Sabanin
Lead Beanstalk Developer,
Wildbit, LLC.

Reply via email to