Article delegate-en/3178 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:<F8C20B68-036E-4E84-8FB0-FC3D71BE795B@ilink.de>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] a fix for FSV=sslway as a MountOption (Re: DeleGate-Report: SIGSEGV)
06 Apr 2006 16:11:11 GMT ysato@delegate.org (Yutaka Sato)
The DeleGate Project


I received an automatic bug-report by DeleGate forwarded by Martin (thanks).
It shows a SIGSEGV is occured in the interpretation of MOUNT with
"FSV=sslway" option, maybe like this:

  MOUNT="/* https://server/* FSV=sslway"

The reason of the error was referrence to an un-initialized pointer.
It will be fixed by a modification like the patch enclosed.


In message <F8C20B68-036E-4E84-8FB0-FC3D71BE795B@ilink.de> on 04/06/06(21:24:10)
you Martin Vetter <pnieabdyi-ry4zqcnsjzvr.ml@ml.delegate.org> wrote:
 |  PLEASE FORWARD THIS MESSAGE TO <bugs@delegate.org>.
 |  IT WILL BE HELPFUL FOR DEBUGGING.
 |
 |  Subject: DeleGate-Report: SIGSEGV
 |  Reply-To: bugs@delegate.org
 |  Date: Thu, 06 Apr 2006 14:19:43 +0100
 |  Event: SIGSEGV
 |  Version: DeleGate/9.1.1 (March 28, 2006)
...
 |  --AbortLog--begin
...
 |  04/06 14:19:43.02 [32544] 4+2: REQUEST +M https://favicon.ico/ HTTP/1.1^M
 |  04/06 14:19:43 [32544]-P9999 ####! EMERGENCY STOP !####
...
 |  --AbortLog--end
 |
 |  --BackTrace--begin
...
 |  #12 <signal handler called>
 |  #13 0x081914e5 in streq ()
 |  #14 0x08093c6b in sslwaySetup ()
 |  #15 0x08094645 in setF1 ()
 |  #16 0x08094d2c in scan_FSV ()
 |  #17 0x08078e3a in mount_filters ()
 |  #18 0x08078f66 in opt1 ()
 |  #19 0x081900b4 in scan_List ()
 |  #20 0x0819050f in scan_commaList ()
 |  #21 0x0807927a in eval_mountOptions ()
 |  #22 0x080ed002 in MountRequestURL ()
 |  #23 0x080e0672 in rewrite_request ()
 |  #24 0x080e266d in rewriteRequest ()
 |  #25 0x080e4f68 in service_http2X ()

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** ../delegate9.1.1/src/filter.c	Sat Mar 25 11:32:25 2006
--- src/filter.c	Fri Apr  7 01:00:39 2006
***************
*** 463,470 ****
  	CStr(xfilter,1024);
  
  	xmem_push(&tab_filters[fi],sizeof(Filter),filters[fi].f_name,NULL);
  	if( filter == NULL ){
- 		fname = filters[fi].f_name;
  		filter = DELEGATE_getEnv(fname);
  	}
  	if( filter && filters[fi].f_filter == NULL ){
--- 463,470 ----
  	CStr(xfilter,1024);
  
  	xmem_push(&tab_filters[fi],sizeof(Filter),filters[fi].f_name,NULL);
+ 	fname = filters[fi].f_name;
  	if( filter == NULL ){
  		filter = DELEGATE_getEnv(fname);
  	}
  	if( filter && filters[fi].f_filter == NULL ){

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