I'm not at all an expert. Therefore, I can only guess that my bug is the
same as here. I had several crashes when ftp-ing in the terminal when I
tried to cd to another directory on the local file system.

1st example: 
--
$ ftp [server]
Connected to [server].
220 ProFTPD 1.3.1 Server (ProFTPD) [IP address]
Name (...): [name]
331 Password required for [name]
Password:
230 User [name] logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd httpdocs
250 CWD command successful
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxr-x---   5 gaga     psaserv      4096 Jul 26 09:07 .
drwxr-xr-x  13 root     root         4096 Jun 12  2008 ..
(...)
226-Transfer complete
226 Quotas off
ftp> mkdir div
257 "/httpdocs/div" - Directory successfully created
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxr-x---   6 gaga     psaserv      4096 Jul 26 09:25 .
drwxr-xr-x  13 root     root         4096 Jun 12  2008 ..
(...)
drwxr-xr-x   2 gaga     psacln       4096 Jul 26 09:25 div
(...)
226-Transfer complete
226 Quotas off
ftp> cd div
250 CWD command successful
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxr-xr-x   2 gaga     psacln       4096 Jul 26 09:25 .
drwxr-x---   6 gaga     psaserv      4096 Jul 26 09:25 ..
226-Transfer complete
226 Quotas off
ftp> !cd [local directory that did not exist because I was not where I thought 
I was]
+bash: line 0: cd: last.fm: No such file or directory
Segmentation fault (core dumped)
--

2nd example: 
--
ftp> !cd [inexisting local directory]
+bash: line 0: cd: gadfads: No such file or directory
*** glibc detected *** ftp: malloc(): memory corruption: 0x09c91ae8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7e30276]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x95)[0xb7e319c5]
/lib/tls/i686/cmov/libc.so.6(_obstack_begin+0x5e)[0xb7e3490e]
ftp[0x8054fb1]
ftp[0x8055858]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7dd4775]
ftp[0x8049c71]
======= Memory map: ========
08048000-08059000 r-xp 00000000 08:02 341382     /usr/bin/netkit-ftp
08059000-0805b000 rw-p 00010000 08:02 341382     /usr/bin/netkit-ftp
0805b000-08069000 rw-p 0805b000 00:00 0 
09c83000-09ca4000 rw-p 09c83000 00:00 0          [heap]
b7bf1000-b7bfe000 r-xp 00000000 08:02 251536     /lib/libgcc_s.so.1
b7bfe000-b7bff000 r--p 0000c000 08:02 251536     /lib/libgcc_s.so.1
b7bff000-b7c00000 rw-p 0000d000 08:02 251536     /lib/libgcc_s.so.1
b7c00000-b7c21000 rw-p b7c00000 00:00 0 
b7c21000-b7d00000 ---p b7c21000 00:00 0 
b7d21000-b7d60000 r--p 00000000 08:02 374030     
/usr/lib/locale/en_US.utf8/LC_CTYPE
b7d60000-b7d72000 r-xp 00000000 08:02 268756     
/lib/tls/i686/cmov/libresolv-2.9.so
b7d72000-b7d73000 r--p 00011000 08:02 268756     
/lib/tls/i686/cmov/libresolv-2.9.so
b7d73000-b7d74000 rw-p 00012000 08:02 268756     
/lib/tls/i686/cmov/libresolv-2.9.so
b7d74000-b7d76000 rw-p b7d74000 00:00 0 
b7d76000-b7d7b000 r-xp 00000000 08:02 268743     
/lib/tls/i686/cmov/libnss_dns-2.9.so
b7d7b000-b7d7c000 r--p 00004000 08:02 268743     
/lib/tls/i686/cmov/libnss_dns-2.9.so
b7d7c000-b7d7d000 rw-p 00005000 08:02 268743     
/lib/tls/i686/cmov/libnss_dns-2.9.so
b7d7d000-b7d7f000 r-xp 00000000 08:02 251566     /lib/libnss_mdns4_minimal.so.2
b7d7f000-b7d80000 rw-p 00001000 08:02 251566     /lib/libnss_mdns4_minimal.so.2
b7d80000-b7d89000 r-xp 00000000 08:02 268749     
/lib/tls/i686/cmov/libnss_nis-2.9.so
b7d89000-b7d8a000 r--p 00008000 08:02 268749     
/lib/tls/i686/cmov/libnss_nis-2.9.so
b7d8a000-b7d8b000 rw-p 00009000 08:02 268749     
/lib/tls/i686/cmov/libnss_nis-2.9.so
b7d8b000-b7da0000 r-xp 00000000 08:02 268739     
/lib/tls/i686/cmov/libnsl-2.9.so
b7da0000-b7da1000 r--p 00014000 08:02 268739     
/lib/tls/i686/cmov/libnsl-2.9.so
b7da1000-b7da2000 rw-p 00015000 08:02 268739     
/lib/tls/i686/cmov/libnsl-2.9.so
b7da2000-b7da4000 rw-p b7da2000 00:00 0 
b7da4000-b7dab000 r-xp 00000000 08:02 268741     
/lib/tls/i686/cmov/libnss_compat-2.9.so
b7dab000-b7dac000 r--p 00006000 08:02 268741     
/lib/tls/i686/cmov/libnss_compat-2.9.so
b7dac000-b7dad000 rw-p 00007000 08:02 268741     
/lib/tls/i686/cmov/libnss_compat-2.9.so
b7dad000-b7db7000 r-xp 00000000 08:02 268745     
/lib/tls/i686/cmov/libnss_files-2.9.so
b7db7000-b7db8000 r--p 00009000 08:02 268745     
/lib/tls/i686/cmov/libnss_files-2.9.so
b7db8000-b7db9000 rw-p 0000a000 08:02 268745     
/lib/tls/i686/cmov/libnss_files-2.9.so
b7db9000-b7dba000 rw-p b7db9000 00:00 0 
b7dba000-b7dbc000 r-xp 00000000 08:02 268734     /lib/tls/i686/cmov/libdl-2.9.so
b7dbc000-b7dbd000 r--p 00001000 08:02 268734     /lib/tls/i686/cmov/libdl-2.9.so
b7dbd000-b7dbe000 rw-p 00002000 08:02 268734     /lib/tls/i686/cmov/libdl-2.9.so
b7dbe000-b7f1a000 r-xp 00000000 08:02 268728     /lib/tls/i686/cmov/libc-2.9.so
b7f1a000-b7f1b000 ---p 0015c000 08:02 268728     /lib/tls/i686/cmov/libc-2.9.so
b7f1b000-b7f1d000 r--p 0015c000 08:02 268728     /lib/tls/i686/cmov/libc-2.9.so
b7f1d000-b7f1e000 rw-p 0015e000 08:02 268728     /lib/tls/i686/cmov/libc-2.9.so
b7f1e000-b7f22000 rw-p b7f1e000 00:00 0 
b7f22000-b7f51000 r-xp 00000000 08:02 251551     /lib/libncurses.so.5.7
b7f51000-b7f53000 r--p 0002e000 08:02 251551     /lib/libncurses.so.5.7
b7f53000-b7f54000 rw-p 00030000 08:02 251551     /lib/libncurses.so.5.7
b7f54000-b7f80000 r-xp 00000000 08:02 251595     /lib/libreadline.so.5.2
b7f80000-b7f81000 ---p 0002c000 08:02 251595     /lib/libreadline.so.5.2
b7f81000-b7f82000 r--p 0002c000 08:02 251595     /lib/libreadline.so.5.2
b7f82000-b7f85000 rw-p 0002d000 08:02 251595     /lib/libreadline.so.5.2
b7f85000-b7f86000 rw-p b7f85000 00:00 0 
b7f8e000-b7f95000 r--s 00000000 08:02 358649     
/usr/lib/gconv/gconv-modules.cache
b7f95000-b7f9b000 rw-p b7f95000 00:00 0 
b7f9b000-b7f9c000 r-xp b7f9b000 00:00 0          [vdso]
b7f9c000-b7fb8000 r-xp 00000000 08:02 251495     /lib/ld-2.9.so
b7fb8000-b7fb9000 r--p 0001b000 08:02 251495     /lib/ld-2.9.so
b7fb9000-b7fba000 rw-p 0001c000 08:02 251495     /lib/ld-2.9.so
bf9a4000-bf9b9000 rw-p bffeb000 00:00 0          [stack]
Aborted (core dumped)
--

This happens quite reliably. It seems the ordinary error message from
the unterlying shell confuses the ftp client.

-- 
netkit-ftp segfaults when dropping to shell
https://bugs.launchpad.net/bugs/398028
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to