From owner-freebsd-current@FreeBSD.ORG Wed Jun 4 17:26:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 035A537B401 for ; Wed, 4 Jun 2003 17:26:48 -0700 (PDT) Received: from storming.org (MG034043.user.veloxzone.com.br [200.165.34.43]) by mx1.FreeBSD.org (Postfix) with SMTP id E578043F75 for ; Wed, 4 Jun 2003 17:26:45 -0700 (PDT) (envelope-from fred@storming.org) Received: (qmail 2228 invoked by uid 1000); 4 Jun 2003 20:58:50 -0300 Date: Wed, 4 Jun 2003 20:58:50 -0300 From: Fred Souza To: Morten Rodal Message-ID: <20030604235850.GA2199@torment.storming.org> References: <20030604170558.GA16091@torment.storming.org> <20030604172400.GA38378@rot13.obsecurity.org> <20030604182145.GA21910@torment.storming.org> <20030604214635.GA1756@atlantis.rodal.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20030604214635.GA1756@atlantis.rodal.no> X-Sender: fred@storming.org cc: current@freebsd.org cc: Kris Kennaway Subject: Re: FTP client dumping core X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fred@storming.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 00:26:48 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I think what Kris ment was something similiar to >=20 > cd /usr/src/usr.bin/ftp > make clean > make DEBUG_FLAGS=3D"-g" all install Ahh, yes, with that I can see where the problem is. It's because of my custom prompt, which should look like "ftp user@host:directory> " =20 Here's the output of gdb+ftp with the above debug flag: =20 (gdb) run x.y.z.w Starting program: /usr/bin/ftp x.y.z.w Connected to x.y.z.w. 220 h4w h4w h4w Name (x.y.z.w:fred): ftp 530 Sorry, no ANONYMOUS access allowed. ftp: Login failed. Program received signal SIGSEGV, Segmentation fault. 0x0805e346 in formatbuf (buf=3D0x8069780 "ftp ", len=3D1024,=20 src=3D0x806f110 "ftp %n@%M:%/> ") at /usr/src/contrib/lukemftp/src/util.c:1400 1400 for (p2 =3D connected ? username : "-"; *p2 ; p2++) (gdb) I see now where the problem is, but shouldn't the client handle this kind of situation better? Thanks and sorry for the previous mistake, Fred --=20 UNIX user having sex: date; talk; cd ~; touch; unzip; finger; expand; strip; head; mount; yes; \ yes; yes; eject; more; umount; sleep --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+3oe6ZNmEsrl+ROERApUBAJ9JA+UFzBhtOsELrFsmcavAxuYhAwCePAIt zgZKOJw6Ja+mnC+83BOMeek= =TCrU -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--