Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82953 - net-ftp/ftp-0.17-r3: Segmentation fault with macro
Summary: net-ftp/ftp-0.17-r3: Segmentation fault with macro
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-22 06:31 UTC by Toralf Förster
Modified: 2005-06-27 01:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2005-02-22 06:31:25 UTC
tfoerste@nhh221 ~ $ ls -l .netrc
-rw-------  1 tfoerste users 44 Feb 22 15:27 .netrc
tfoerste@nhh221 ~ $ cat .netrc
machine itmgmsrv
login ftp
macdef mac1 dir

tfoerste@nhh221 ~ $ ftp itmgmsrv
Connected to itmgmsrv.<snip>
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 10 allowed.
220-Local time is now 15:27. Server port: 21.
220-This server supports FXP transfers
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
500 This security scheme is not implemented
SSL not available
230 Anonymous user logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> $
(macro name) mac1
dir
200 PORT command successful
150 Connecting to port 34262
-rw-------    1 40       49          85619 Feb  9 14:18 KonicaMin05020915190_1.jpg
-rw-------    1 40       49          86000 Feb  9 14:20 KonicaMin05020915210_1.jpg
drwx------    2 40       49             48 Feb  9 14:14 d1
drwxr-xr-x    2 40       49            408 Feb 22 13:22 logfiles
226-Options: -l
226 4 matches total
?Invalid command
Segmentation fault


Instead it works if I define the macro within the ftp session:


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 10:05:27)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirror.nutsmaas.nl/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cddb cdparanoia
cdr crypt cups curl dvd dvdr dvdread emboss encode esd ethereal f77 fam flac
font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick
imlib innodb ipv6 java joystick jpeg junit kde ldap libg++ libwww live mad mbox
mikmod mmx mmx2 mng motif mozilla mpeg mysql nagios-dns nagios-ntp nagios-ping
nagios-s ncurses network nls oggvorbis opengl oss pam pcmcia pdflib perl png
python qt quicktime readline rtc samba scanner sdl slang snmp spell sse sse2 ssl
svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb xfs xml2 xmms
xv zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-02-22 14:30:38 UTC
0.17-r4 work ?
Comment 2 Toralf Förster gentoo-dev 2005-02-23 01:26:51 UTC
No, same issue, BTW the definition of the ftp macro "mac1" in my .netrc file was wrong, it should be:
>>
macdef mac1
dir
<<

instead of
>>
macdef mac1 dir
<<

The command "dir" have to follow at the line aftee the keyword macdef not at the same line.
But anyway, the segmentation fault should not occur.
Comment 3 Stian Skjelstad 2005-06-26 16:05:59 UTC
I'm not able to reproduce this at all. Could you:

# CFLAGS="-g" FEATURES="notstrip" emerge net-ftp/ftp
# gdb ftp
r itmgmsrv
(do the crash stuff here)
bt

and feedback the stuff from bt.
Comment 4 Toralf Förster gentoo-dev 2005-06-27 01:38:22 UTC
Sorry, in the mean time I have a new system where I cannot reproduce the bug,
closing this report now.