Article delegate-en/64 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A63@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: delegate ftp loose connection
08 Sep 1998 15:39:43 GMT ysato@etl.go.jp (Yutaka Sato 佐藤豊)


Hi Piero,

In message <_A63@delegate-en.ML_>
on 09/08/98(22:31:02)
you "Piero Berritta" <ph4aabdyi-e6yeroba2xtr.ml@ml.delegate.org> wrote:
 |delegated -P21 FSV="sslway -co" SERVER=ftp://ftp-server-name:8021
...
 |delegated -P8021 FCL="sslway -ac" SERVER=ftp://ftp-server-name:21
...
 |contrary, using LINUX machines, I'm able to establish the connection but as
 |soon as I issue a dir command I loose the connection.
 |This happens both with ssl and without.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
 |09/08 08:11:15.71 [520] 1+0/5: -- Tried freadTIMEOUT() for EOF file.
 |09/08 08:11:15.71 [520] 1+0/5: -- Tried freadTIMEOUT() for EOF file.
 |09/08 08:11:15.71 [520] 1+0/5: E-A: ABORT: caught SIGSEGV [11]

Thank you for your report which is easy but enough to reproduce the
problem.  I enclosed a patch to fix it.
Closing already closed (freed) STREAM on LINIX seems to certainly
cause SIGSEGV...

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_


*** ../dist/delegate5.6.6/src/ftp.c	Wed Aug 19 15:40:42 1998
--- ftp.c	Wed Sep  9 00:32:22 1998
***************
*** 1396,1402 ****
--- 1396,1404 ----
  	}else{
  		dfp = fdopen(dsock,"r");
  		xc = putMessageF(dfp,tc,cachefp);
+ 		/* already closed.
  		fclose(dfp);
+ 		*/
  		get_resp(fs,NULL,resp,rsize);
  		putPostStatus(tc,resp);
  	}
***************
*** 1428,1434 ****
--- 1430,1438 ----
  	if( STOR ){
  		dfp = fdopen(dsock,"r");
  		xc = putMessageF(dfp,ts,cachefp);
+ 		/* already closed.
  		fclose(dfp);
+ 		*/
  		putPostStatus(ts,"done\r\n");
  		fflush(ts);
  	}else{

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V