You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ronald Bernhardt <Ro...@de.bosch.com> on 2001/10/17 13:03:51 UTC
mod_isapi/8563: Apache crashes when using precached isapi-dll (ISAPICacheFile)
>Number: 8563
>Category: mod_isapi
>Synopsis: Apache crashes when using precached isapi-dll (ISAPICacheFile)
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Oct 17 04:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Ronald.Bernhardt@de.bosch.com
>Release: 2.016 (beta)
>Organization:
apache
>Environment:
Windows 2000, sp2; VC++ 6.0
>Description:
Apache crashes when an isapi exention dll that exports the cleanup method TerminateExtension is precached by means of ISAPICacheFile statement in the config-file. This is because Apache read and executes the config file twice. When cleaning up the isapi-dll is first unloaded and than Apache tries to execute TerminateExtension, which clearly fails.
>How-To-Repeat:
Precache an Isapi-Extension dll e.g. IIS-Sample "Simple" included in Plattform SDK Samples (Plattform SDK\samples\web\iis\isapi\extension\simple).
In httpd.conf:
AddHandler isapi-isa .dll
ISAPICacheFile C:\Apache2.0\cgi-bin\simple.dll
>Fix:
the cleanup handlers (dll unload / TerminateExtension) for isapi-dll should be inserted in different order in the cleanup list und therefore executed in different order
>Release-Note:
>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 make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database 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! ]