Subject: bin/3273: ftp dumps core
To: None <gnats-bugs@gnats.netbsd.org, bernd@arresum.inka.de>
From: Bernd Ernesti <bernd@parresum.inka.de>
List: netbsd-bugs
Date: 03/02/1997 12:39:24
>Number: 3273
>Category: bin
>Synopsis: ftp dumps core
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 2 03:50:01 1997
>Last-Modified:
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current Feb 28
>Environment:
System: NetBSD parresum 1.2C NetBSD 1.2C (VEEGO) #50: Fri Feb 28 10:02:39 MET 1997 bernd@parresum:/home/obj_i386/src/sys/arch/i386/compile/VEEGO i386
>Description:
ftp dumps core if you press CTRL-C during a download
(I think the server hangs at this stage):
ftp ftp://ftp.dlink.com/adapters/dfe500tx/dfe500tx.exe
Connected to ftp.dlink.com.
220 ras Microsoft FTP Service (Version 1.0).
331 Anonymous access allowed, send identity (e-mail name) as password.
230-Welcome to the D-Link FTP site!
Unauthorized or Suspicious Users will be banned
from this site and subsequently reported.
230 Anonymous user logged in as mozilla@.
Remote system type is Windows_NT.
200 Type set to I.
250 CWD command successful.
local: dfe500tx.exe remote: dfe500tx.exe
200 PORT command successful.
150 Opening BINARY mode data connection for dfe500tx.exe(1157690 bytes).
^C
receive aborted
waiting for remote to finish abort
ftp: abort: Broken pipe
Segmentation fault (core dumped)
>How-To-Repeat:
ftp a file with ftp://xxx/ and press CTRL-C while the ftpd hangs.
>Fix:
>Audit-Trail:
>Unformatted:
>gdb ftp ftp.core
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc...
(no debugging symbols found)...
Core was generated by `ftp'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libedit.so.0.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libtermcap.so.0.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.12.11...(no debugging symbols found)...done.
#0 0x1007a1e7 in vfprintf ()
(gdb) where
#0 0x1007a1e7 in vfprintf ()
#1 0x10079db3 in fprintf ()
#2 0xa1d4 in abort_remote ()
#3 0x916c in recvrequest ()
#4 0x24b3 in getit ()
#5 0x2237 in get ()
#6 0x677b in auto_fetch ()
#7 0xa7e0 in main ()