Discussion:
lftp 4.5.1 Segmentation fault on CentOS 6.5
Heath Skarlupka
2014-06-10 14:33:33 UTC
Permalink
Hello,

After compiling lftp 4.5.1 on a CentOS 6.5 x86_64 box, the lftp command
segfaults before the lftp prompt shows up on the command line. I
recompiled with the debug flag and ran it in gdb with this stack trace
output.

[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000466774 in xlist<SMTask>::_add (node=0x76e5d8, prev=0x755bc0,
next=0x0) at xlist.h:35
35 next->prev=node;
Missing separate debuginfos, use: debuginfo-install
expat-2.0.1-11.el6_2.x86_64 glibc-2.12-1.132.el6_5.2.x86_64
gnutls-2.8.5-14.el6_5.x86_64 libgcc-4.4.7-4.el6.x86_64
libgcrypt-1.4.5-11.el6_4.x86_64 libgpg-error-1.7-4.el6.x86_64
libtasn1-2.3-3.el6_2.1.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64
readline-6.0-4.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) info stack
#0 0x0000000000466774 in xlist<SMTask>::_add (node=0x76e5d8,
prev=0x755bc0, next=0x0) at xlist.h:35
#1 0x00000000004666d6 in xlist<SMTask>::add (this=0x755bc0,
node=0x76e5d8) at xlist.h:52
#2 0x0000000000466563 in xlist<SMTask>::add (this=0x755bc0, node=...)
at xlist.h:54
#3 0x00000000004656ec in SMTask::SMTask (this=0x76e5d0) at SMTask.cc:53
#4 0x000000000047c24a in Log::Log (this=0x76e5d0) at log.h:71
#5 0x0000000000483831 in __static_initialization_and_destruction_0
(__initialize_p=1, __priority=65535) at log.cc:29
#6 0x0000000000483872 in global constructors keyed to _ZN3Log6globalE()
() at log.cc:141
#7 0x00000000004fab86 in __do_global_ctors_aux ()
#8 0x000000000040676b in _init ()
#9 0x0000000000000000 in ?? ()
(gdb) quit


If there is any other debug information that I can provide, I would be
glad to help. Thank you!

Heath Skarlupka
Linux Systems Administrator
Space Science Engineering Center
University of Wisconsin Madison
Alexander V. Lukyanov
2014-06-11 09:21:25 UTC
Permalink
Post by Heath Skarlupka
After compiling lftp 4.5.1 on a CentOS 6.5 x86_64 box, the lftp command
segfaults before the lftp prompt shows up on the command line. I recompiled
Thanks for the report! This problem is fixed in just released lftp 4.5.2.
--
Alexander.
Loading...