You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Franz Gotsis <Fr...@swisslife.ch> on 1998/10/09 14:59:22 UTC

os-windows/3168: Win32 (NT): CGI scripts that

>Number:         3168
>Category:       os-windows
>Synopsis:       Win32 (NT): CGI scripts that
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Oct  9 06:00:04 PDT 1998
>Last-Modified:
>Originator:     Franz.Gotsis@swisslife.ch
>Organization:
apache
>Release:        1.3.1
>Environment:
Operating System: NT (Server Release, Service Pack 3)
Compiler: MS-VC 5.0
CGI-Program in ANSI-C iwth MS-VC 5.0
>Description:
CGI scripts with errors (scripts that do not end) started from the server 
cannot be stopped. Even after the Apache NT service is stopped and restarted
those processes remain visible in the taks manager and cannot be stopped.
If you try you get the error access denied, although you are administrator.
This behavious is independent of whether the Apache is running or not. 

This leads to a shortage of memory, once you cannot guarantee that all CGI
scripts never hang.
>How-To-Repeat:
Write a simple CGI script in Ansi-C with Microsoft VC V5.0 that produces an 
endless loop and try to remove this from the task list on the NT server.
>Fix:
Do a timeout or provide a utility to remove them or better yet, when the
Apache is stopped it simply closes down all CGI-Processes
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]