Bug 7910 - WSADuplicateSocket on starting the server
Summary: WSADuplicateSocket on starting the server
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Platform (show other bugs)
Version: 2.0.35
Hardware: PC All
: P3 normal with 2 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
: 8185 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-10 08:01 UTC by Ralf Bund
Modified: 2005-03-20 17:06 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Bund 2002-04-10 08:01:04 UTC
I receive the error "WSADuplicateSocket failed for socket 3117432" on starting Apache httpd-
2.0. Starting the version 1.3 on the same machine with corresponding .conf file does work without 
any problem.

There is neither a firewall not a vpn or any other software blocking the port 
installed.
Comment 1 William A. Rowe Jr. 2002-04-10 13:31:17 UTC
Exactly which version of Windows?
Comment 2 Ralf Bund 2002-04-10 14:31:27 UTC
The Windowsversion is W2000 Pro 5.00.2195 SP2 German Version
Comment 3 Kari Silvennoinen 2002-04-11 12:38:01 UTC
This happens also on Win2000 Pro 5.00.2195 SP2 English
The error log it creates everytime when started:
[Thu Apr 11 15:22:04 2002] [notice] Parent: Created child process 108
[Thu Apr 11 15:22:04 2002] [notice] Child 108: Child process is running
[Thu Apr 11 15:22:05 2002] [crit] (32538)An operation was attempted on 
something that is not a socket.  : Parent: WSADuplicateSocket failed for socket 
3439784. Check the FAQ.
[Thu Apr 11 15:22:05 2002] [crit] (32538)An operation was attempted on 
something that is not a socket.  : master_main: create child process failed. 
Exiting.
[Thu Apr 11 15:22:05 2002] [crit] (22609)The pipe has been ended.  : 
setup_inherited_listeners: Unable to read socket data from parent
[Thu Apr 11 15:22:05 2002] [notice] Parent: Forcing termination of child 
process 3447184 

The socket changes sometimes but is always something around 3440000.
Comment 4 Kari Silvennoinen 2002-04-12 06:43:04 UTC
But what is strange is that the socket failing is always in my error log 7400
smaller than the child process? (above 3447184-3439784=7400)
Comment 5 Joshua Slive 2002-04-17 14:51:59 UTC
*** Bug 8185 has been marked as a duplicate of this bug. ***
Comment 6 Paul Postuma 2002-04-17 23:03:49 UTC
I have exactly the same problem with Apache 2.0.35 under WinXP, both with and
without the McAfee firewall installed, and the WinXP firewall disabled. Happens
both launching it from 'services' loaded on startup, or from the command line.
Same error log structure:

[Wed Apr 17 19:23:07 2002] [notice] Parent: Created child process 1636
[Wed Apr 17 19:23:08 2002] [notice] Child 1636: Child process is running
[Wed Apr 17 19:23:08 2002] [crit] (32538)An operation was attempted on something
that is not a socket.  : Parent: WSADuplicateSocket failed for socket 3308112.
Check the FAQ.
[Wed Apr 17 19:23:08 2002] [crit] (32538)An operation was attempted on something
that is not a socket.  : master_main: create child process failed. Exiting.
[Wed Apr 17 19:23:08 2002] [crit] (22609)The pipe has been ended.  :
setup_inherited_listeners: Unable to read socket data from parent
[Wed Apr 17 19:23:08 2002] [notice] Parent: Forcing termination of child process
3315552
Comment 7 William A. Rowe Jr. 2002-04-17 23:17:17 UTC
We have an experimental fix committed to 2.0.36-dev that will appear in the
next release.  It will only affect some flavors of this problem on Windows
NT, 2K or XP (the solution will not work for 9x.)

I will likely post a test binary late tonight and advise folks to give it 
a try before we incorporate in the forthcoming 2.0.36 rollout.
Comment 8 William A. Rowe Jr. 2002-04-18 04:51:15 UTC
If you would like to verify the fix, you may download

http://www.apache.org/~wrowe/apache-2.0.36-dev-04-17-1800Z.zip

Unpack this zip file into the apache installed 2.0.35 directory.

This is an interim build - please don't expect third party modules
to load whatsoever.  It's version is neither .35 nor the final .36.
Comment 9 Ralf Bund 2002-04-18 05:56:52 UTC
Look's like the fix is working.
Comment 10 Kari Silvennoinen 2002-04-18 14:04:58 UTC
Yes, the patch works for me too. Thanks!
Comment 11 Paul Postuma 2002-04-19 13:37:12 UTC
patch works! amazing. Thank you
Comment 12 Paul Postuma 2002-04-20 01:58:39 UTC
er - oops. Spoke too soon. I lock up immediately after with:

[Fri Apr 19 10:48:28 2002] [notice] Parent: Created child process 2452
[Fri Apr 19 10:48:29 2002] [notice] Child 2452: Child process is running
[Fri Apr 19 10:48:29 2002] [notice] Child 2452: Acquired the start mutex.
[Fri Apr 19 10:48:29 2002] [notice] Child 2452: Starting 10 worker threads.
[Fri Apr 19 10:48:29 2002] [error] (32538)An operation was attempted on
something that is not a socket.  : winnt_accept: AcceptEx failed. Attempting to
recover.
Probably a separate problem; I've logged it as bug# 8325
Comment 13 William A. Rowe Jr. 2002-04-22 16:37:33 UTC
Please DO NOT reopen this bug, this issue is resolved.

Other issues such as WinSock compatibility don't belong tracked in this bug.

bug# 8325 is tracking winnt_accept: AcceptEx failed. Attempting to recover.

Thanks testers!