Date: Wed, 4 Jun 2003 20:58:50 -0300 From: Fred Souza <fred@storming.org> To: Morten Rodal <morten@rodal.no> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: FTP client dumping core Message-ID: <20030604235850.GA2199@torment.storming.org> In-Reply-To: <20030604214635.GA1756@atlantis.rodal.no> References: <20030604170558.GA16091@torment.storming.org> <20030604172400.GA38378@rot13.obsecurity.org> <20030604182145.GA21910@torment.storming.org> <20030604214635.GA1756@atlantis.rodal.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030604235850.GA2199>