Bug 11854

Summary: Unable to Start Apache2 (exits in 1/2 second after start, leaving [crit] errors in Log)
Product: Apache httpd-2 Reporter: Moran Zaltsman <x86zman>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: CLOSED FIXED    
Severity: critical Keywords: FAQ
Priority: P3    
Version: 2.0.40   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Patch to call apr_initialize prior to checking if utf-8 fixups are required
Small problem, apr_app_init can be called multiple times, this patch also resets the initialized flag to prevent double-initialization.

Description Moran Zaltsman 2002-08-20 13:09:33 UTC
I'm Unable to Start Apache2 - It Exists in 1/2 Second after i Start it !
and this is What I've Found in the Log :

///
[Tue Aug 20 15:54:39 2002] [crit] (22)Invalid argument: Parent: Failed to 
create the child process.
[Tue Aug 20 15:54:39 2002] [crit] (22506)The handle is invalid.  : master_main: 
create child process failed. Exiting.
[Tue Aug 20 15:54:39 2002] [notice] Parent: Forcing termination of child 
process 3121056 
///

my Box is a 950Mhz Athlon w/256MB RAM, Running Win2K.Prof w/SP3 - and not any 
Firewall.

if you need my httpd.conf or any other Info. - just Ask !

P.S. : Apache2 (with the current config.) used to Run on my System just 2 days 
ago !
Comment 1 Moran Zaltsman 2002-08-20 13:13:16 UTC
P.S. II :
this is not the Downloadable Binary from httpd.apache.org - but a one that i've 
compiled myself (using VC++ 6 w/SP5)

this is FYI only : as i've tried the Binary also - but incurred with the Same 
result.
Comment 2 William A. Rowe Jr. 2002-08-20 13:53:34 UTC
Created attachment 2775 [details]
Patch to call apr_initialize prior to checking if utf-8 fixups are required
Comment 3 William A. Rowe Jr. 2002-08-20 13:54:15 UTC
  This is a bug.  You mention you can compile apache yourself, please try the
  attached patch.  Apache calls apr_app_initialize, which checks if it has
  started on a WinNT-flavor Unicode-enabled platform.  But it hadn't called
  apr_initialize to set up the oslevel flag before checking the platform.

  If you report this clears up your bug, I'll commit, fix will be in the 
  2.0.41 release.


  
Comment 4 William A. Rowe Jr. 2002-08-20 14:03:34 UTC
Created attachment 2776 [details]
Small problem, apr_app_init can be called multiple times, this patch also resets the initialized flag to prevent double-initialization.
Comment 5 Moran Zaltsman 2002-08-20 15:20:09 UTC
That was Fast man !

Thanks ! :]

It've Solved my Problem - Apache2 now Starts OK.

Thanks for your Dedication.
Comment 6 William A. Rowe Jr. 2002-08-20 18:32:51 UTC
  Yup... this will become an FAQ till .41 is in user's hands.  Fix committed.