Hide Forgot
When using command "put" to put files instead of "mput" in ftp-0.17-6, ftp shows "Segmentation fault (core dumped)" and quits from ftp. Re-compile the ftp source rpm in debug mode, it shows the messages below when using "put" files instead of "mput". --- ftp> put station22.* (no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. chunk_free (ar_ptr=0x40232da0, p=0x807289c) at malloc.c:3068 3068 malloc.c: No such file or directory. (gdb)
Two points updated on this report: 1. Although recompiled ftp with option -g, the -s option was not removed when make install, so messages (no debugging symbols found) were displayed. 2. If using /usr/bin/ftp, it was OK to use "put aaa*" command on ftp, it showed "Segmentation fault" when using /usr/kerberos/bin/ftp ldd these two files, we can find: [root@station8 test]# ldd /usr/bin/ftp libreadline.so.4.1 => /usr/lib/libreadline.so.4.1 (0x40025000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4004b000) libc.so.6 => /lib/libc.so.6 (0x4008d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) [root@station8 test]# ldd /usr/kerberos/bin/ftp libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x40018000) libkrb4.so.2 => /usr/kerberos/lib/libkrb4.so.2 (0x4002d000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40044000) libdes425.so.3 => /usr/kerberos/lib/libdes425.so.3 (0x400ac000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x400b0000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x400c5000) libutil.so.1 => /lib/libutil.so.1 (0x400d5000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x400d8000) libresolv.so.2 => /lib/libresolv.so.2 (0x40105000) libc.so.6 => /lib/libc.so.6 (0x40117000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) [root@station8 test]#
Can't reproduce this in the current release.