Bugs item #433634, was opened at 2001-06-16 00:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=433634&group_id=3152
Category: Architecture: Server (nsd)
Group: aolserver3_4
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Adam Zell (zellster)
Assigned to: Kriston Rehberg (kriston)
Summary: nsd running as a Win32 service crashes
Initial Comment:
After successfully installing nsd 3.4 as a Windows NT
service, trying to start nsd fails.
The reason why is as follows:
Ns_Main is being called twice, within the same process.
The first time it is called, argv[] contains the -s
argument, and the local variable "server" is set correctly.
The second time Ns_Main is called, argv[] contain -S
which causes a goto to be taken, leaving the local
variable "server" set to NULL.
After the goto label (contservice), "server" is
accessed a number of times. Since the goto label
skipped the initialization code path, the code bombs
with a NULL dereference.
I "fixed" this with the following code:
contservice:
+ if (server == NULL) {
+ server = nsServer;
+ }
Assuming that the first call to Ns_Main set nsServer
correctly, the second call to Ns_Main will proceed
without a problem, and respond to http requests.
----------------------------------------------------------------------
>Comment By: Kriston Rehberg (kriston)
Date: 2002-03-19 12:33
Message:
Logged In: YES
user_id=16427
While we have been able to get nsd working as documented as
a Win32 service using the Win32 installer icon, Win32 is no
longer supported for AOLserver.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=433634&group_id=3152