When I request something from a not defined virtual host I get SIGSEGV.
I think, that even a configuration error shouldn't cause it.


# bin/nsd -f -u aolserver -t etc/main.tcl
[...]
[11/Aug/2004:11:59:34][61964.134529024][-main-] Notice: nsmain: AOLserver/4.0.7 running
[11/Aug/2004:11:59:34][61964.134529024][-main-] Notice: nsmain: security info: 
uid=8080, euid=8080, gid=8080, egid=8080
[11/Aug/2004:11:59:34][61964.134529024][-main-] Notice: nssock: listening on 
0.0.0.0:8000
[11/Aug/2004:11:59:34][61964.134764544][-sched-] Notice: sched: starting
[11/Aug/2004:11:59:34][61964.134765568][-driver-] Notice: starting
[11/Aug/2004:11:59:34][61964.134765568][-driver-] Notice: driver: accepting connections
[ Now I try to access not defined virtual host. ]
Abort



kdump (FreeBSD):

 82913 nsd      GIO   fd 12 read 439 bytes
       "GET / HTTP/1.1\r
        Host: not.defined.host.cifrid.net:8000\r
        User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/2004\
        0614 Firefox/0.8\r
        Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9\
        ,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*\
        ;q=0.1\r
        Accept-Language: en-us,en;q=0.5\r
        Accept-Encoding: gzip,deflate\r
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r
        Keep-Alive: 300\r
        Connection: keep-alive\r
        \r
       "
 82913 nsd      RET   recvmsg 439/0x1b7
 82913 nsd      PSIG  SIGSEGV caught handler=0x28188ac0 mask=0x0 code=0xc
 82913 nsd      CALL  sigprocmask(0x3,0x28199b3c,0)
 82913 nsd      RET   sigprocmask 0
 82913 nsd      CALL  getpid
 82913 nsd      RET   getpid 82913/0x143e1
 82913 nsd      CALL  kill(0x143e1,0x6)
 82913 nsd      RET   kill 0
 82913 nsd      PSIG  SIGIOT SIG_DFL



not.defined.host.cifrid.net points to the host running aolserver.


Related sections from etc/main.tcl:

  ns_section ns/modules
  ns_param nssock nssock.so

  ns_section ns/module/nssock
  ns_param  port      8000
  ns_param  hostname  host.cifrid.net
  ns_param  address   0.0.0.0

  ns_section ns/module/nssock/servers
  ns_param defined1    defined1.cifrid.net:8000
  ns_param defined2    defined2.cifrid.net:8000
  ns_param defined3    defined3.cifrid.net:8000



Please, let me know what would be the best way to deal with this problem.

Artur

--
// WWW: apm.cifrid.net // PGP: finger [EMAIL PROTECTED] //


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to