Discussion:
lftp 3.5.0+ segfault
MIS Center
2014-06-05 02:15:44 UTC
Permalink
Hello,
I'm experiencing a segfault when just invoking the lftp command, on
RHEL5-32/64 and RHEL6-32/64, starting with version 3.5.0, then 3.5.1
I compiled with flags:

./configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbin
dir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/s
hare/man --infodir=/usr/share/info --with-modules --disable-static
--with-openssl=/usr --with-debug


(gdb) exec-file /usr/bin/lftp
(gdb) run
Starting program: /usr/bin/lftp
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b23ef8 in SMTask::SMTask() () from /usr/lib64/liblftp-tasks.so.0


Thank you for your time, and please let me know if any information is
needed.
Alexander V. Lukyanov
2014-06-06 11:48:04 UTC
Permalink
Post by MIS Center
I'm experiencing a segfault when just invoking the lftp command, on
RHEL5-32/64 and RHEL6-32/64, starting with version 3.5.0, then 3.5.1
Please try the latest snapshot: http://lftp.yar.ru/ftp/devel/lftp-4.5.1.20140606.tar.gz
--
Alexander.
MIS Center
2014-06-06 15:11:23 UTC
Permalink
Outstanding, this resolved it.
Many thanks.
Post by Alexander V. Lukyanov
Post by MIS Center
I'm experiencing a segfault when just invoking the lftp command, on
RHEL5-32/64 and RHEL6-32/64, starting with version 3.5.0, then 3.5.1
Please try the latest snapshot: http://lftp.yar.ru/ftp/devel/lftp-4.5.1.20140606.tar.gz
MIS Center
2014-07-13 22:09:03 UTC
Permalink
Hello,
Since version 4.5.0, I'm experiencing in cygwin an error message:
PollVec::Block: BUG - deadlock detected

everytime any shell command is invoked within an lftp script (via lftp
-f test.script):
examples:

!rm
!ls

etc...

The command is being executed, just generates the error message above
everytime.
The issue is not there in lftp 4.4.16 for cygwin

*** Version used:
lftp
LFTP | Version 4.5.3 | Copyright (c) 1996-2014 Alexander V. Lukyanov
Libraries used: Readline 6.1, Expat 2.1.0, OpenSSL 1.0.1h 5 Jun 2014,
libiconv 1.14, zlib 1.2.8

Windows 7 32bit, cygwin 1.7.30

Thank you for your time, and please let me know if any information is
needed.
Andrew Schulman
2014-07-13 23:27:58 UTC
Permalink
Post by MIS Center
Hello,
PollVec::Block: BUG - deadlock detected
everytime any shell command is invoked within an lftp script (via lftp
!rm
!ls
etc...
The command is being executed, just generates the error message above
everytime.
The issue is not there in lftp 4.4.16 for cygwin
I confirm this with lftp 4.5.3 in Cygwin 32- and 64-bit. When the commands
are run by typing them at the lftp> prompt there's no error message, but
when they're run from a script, it gives the error message.
Alexander V. Lukyanov
2014-07-30 11:44:35 UTC
Permalink
Post by MIS Center
Hello,
PollVec::Block: BUG - deadlock detected
https://github.com/lavv17/lftp/commit/6e5c185f616e6eb7bb573f07eb4199a79b447454 should fix this.

--
Alexander.
MIS Center
2014-07-30 20:53:52 UTC
Permalink
Confirmed fixed, thank you !
Post by Alexander V. Lukyanov
Post by MIS Center
Hello,
PollVec::Block: BUG - deadlock detected
https://github.com/lavv17/lftp/commit/6e5c185f616e6eb7bb573f07eb4199a79b447454 should fix this.
--
Alexander.
Loading...