Added "b" to /etc/hosts (to make it resolve).

lftp :~> set dns:cache-enable no
lftp :~> o b
lftp b:~>

Remove "b".

lftp b:~> cd .
cd: b: Unknown host
lftp :~> cd .
zsh: 2426 segmentation fault  ./lftp

(gdb) bt
#0  0x4021f6df in strlen () from /lib/libc.so.6
#1  0x080890bf in FileAccess::Chdir (this=0x8113c88, path=0x8108880 ".", verify=true) 
at FileAccess.cc:690
#2  0x0806e07e in CmdExec::builtin_cd (this=0x81059b0) at commands.cc:595
#3  0x08070f8a in cmd_cd (parent=0x81059b0) at commands.cc:1743
#4  0x0806a743 in CmdExec::exec_parsed_command (this=0x81059b0) at CmdExec.cc:223
#5  0x0806ba58 in CmdExec::Do (this=0x81059b0) at CmdExec.cc:666
#6  0x0808572b in SMTask::Schedule () at SMTask.cc:154
#7  0x08064bd5 in WaitDone (exec=0x81059b0) at lftp.cc:71
#8  0x08065300 in main (argc=1, argv=0xbffff5ec) at lftp.cc:360
#9  0x401c56cf in __libc_start_main () from /lib/libc.so.6
(gdb) fra 1
#1  0x080890bf in FileAccess::Chdir (this=0x8113c88, path=0x8108880 ".", verify=true) 
at FileAccess.cc:690
690        char  *newcwd=(char*)alloca(strlen(cwd)+strlen(path)+2);
(gdb) print cwd
$1 = 0x0

-- 
Glenn Maynard

Reply via email to