Bug 37776 - '_commit()' Call in libhttpd.dll Produces Error in VS 2005
Summary: '_commit()' Call in libhttpd.dll Produces Error in VS 2005
Status: RESOLVED WORKSFORME
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mpm_winnt (show other bugs)
Version: 2.2.0
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 05:19 UTC by Spencer Harris
Modified: 2007-12-21 21:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Spencer Harris 2005-12-04 05:19:25 UTC
I have compiled httpd with Visual Studio .NET 2005 (no SSL).  I successfully
installed all files into C:\apache2.  Finally, I installed httpd as a service by
using 'httpd -k install', which worked fine.  However, whenever I try to start
the server, I receive the message "Invalid file descriptor. File possibly closed
by a different thread."

When I attached VS 2005 to httpd to debug it, the debugger pointed out a line of
code in commit.c, which.  I traced the stack and found that the c file was
compiled into msvcr80.dll.  The method was called from within libhttpd.dll, in
source file nt_eventlog.c, in method mpm_nt_eventlog_stderr_open, at line 169,
with the code '_commit(2);'

I believe this is an incompatibility with the .NET 2.0 Framework.  Ignoring the
error will allow the server to run, but I suspect this error will cause problems
in the long run.
Comment 1 William A. Rowe Jr. 2007-12-21 21:14:01 UTC
see if the sp1 of vc2005 resolves this, I hadn't bumped into it.