FTP client dumping core

Fred Souza fred at storming.org
Wed Jun 4 17:26:48 PDT 2003


> I think what Kris ment was something similiar to
> 
> cd /usr/src/usr.bin/ftp
> make clean
> make DEBUG_FLAGS="-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 at host:directory> "
  
  Here's the output of gdb+ftp with the above debug flag:
  

  (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=0x8069780 "ftp ", len=1024, 
      src=0x806f110 "ftp %n@%M:%/> ")
      at /usr/src/contrib/lukemftp/src/util.c:1400
  1400                            for (p2 = 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


-- 
UNIX user having sex:
date; talk; cd ~; touch; unzip; finger; expand; strip; head; mount; yes; \
yes; yes; eject; more; umount; sleep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030604/85e7dfce/attachment.bin


More information about the freebsd-current mailing list