Apache 2.4 crashes on Windows due to small stack space

book

Article ID: 144943

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) AXIOMATICS POLICY SERVER CA Single Sign On Agents (SiteMinder) CA Single Sign On Federation (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) SITEMINDER

Issue/Introduction

Customer reports compiled versions of Apache 2.4 on apache.org differ in stack space, Linux is 8MB, but Windows is 256KB.

This is inadequate for the web agent, causing crashing during startup, so the following needs to be done using Visual Studio to increase stack size;

editbin /STACK:524288 httpd.exe

Cause

Apache 2.4.39 64 bit has 256kb stack size as show in below command. This needs to be corrected by the apache org.

This is an known issue and a tech note is available for siteminder.
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-identity-and-access-management/single-sign-on/12-8/troubleshooting/apache-based-agent-troubleshooting.html

C:\apache\2439_test>"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /HEADERS httpd_2.4.39_64bit.exe | findstr stack
           40000 size of stack reserve
            1000 size of stack commit

Other versions of apache showing the correct stack size of 1 MB. 

apache 2.4.39 32 bit has 1MBb stack size

C:\apache\2439_test>"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /HEADERS httpd_2.4.39_32bit.exe | findstr stack
          100000 size of stack reserve
            1000 size of stack commit

apache 2.4.37 64bit bit has 1MBb stack size

C:\apache\test>"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /HEADERS httpd_37.exe | findstr stack
          100000 size of stack reserve
            1000 size of stack commit

apache 2.4.34 64 bit has 1MBb stack size

C:\apache\test>"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /HEADERS httpd_34.exe | findstr stack
          100000 size of stack reserve
            1000 size of stack commit

Looks like there was problem only with 64 bit Apache 2.4.39, by default apache httpd.exe has stack size is 256kb. This was problem with apache org.

Environment

Release : 12.52

Component : SITEMINDER -WEB AGENT FOR APACHE

Resolution

3rd party software defect, avoid certain apache release 2.4.39, 64bit, which has smaller stack reserve space.

Additional Information

DE442703