apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@covalent.net>
Subject Re: Debugging Win32 apr/Apache HANDLES
Date Fri, 15 Feb 2002 01:06:29 GMT
From: "Ian Holsman" <ianh@apache.org>
Sent: Thursday, February 14, 2002 6:55 PM


> shouldn't we just add this to the CVS-HEAD via a #define ?

If you like - but it's terribly special-purpose.  I certainly wouldn't
want to polute the include directory with it, full time ... hidden in
include/arch/win32/ perhaps ;)

> Bill Stoddard wrote:
> > Cool. Definitely saving this away for use later.
> > 
> > Bill
> > 
> > From: "William A. Rowe, Jr." <wrowe@rowe-clan.net>
> > Sent: Tuesday, February 12, 2002 10:51 PM
> > 
> >>...  Had to write up my own detailed flavor of an strace
> >>/ApiSpy32 style utility, with enough feedback of the 'where's' to tie
> >>down who was corrupting the handles.  I thought this might interest others,
> >>certainly wanted it archvied somewhere for posterity.
> >>
> >>The attached logging patch traps most handle creation/destruction related
> >>calls, and dumps them into a threadsafe logger in the format;
> >>
> >>  Handle Sequence ThreadID HandleApiCall(flavor) sourcefile:line
> >>000000ac 0000000a 00000124 CreatePipe(hRead)
> >>  C:\clean\httpd-2.0\server\mpm\winnt\service.c:637
> > 
> >>The output is logged to ExeImagePathName.### where ### is the pid.
> >>...
> >>So it was an interesting exercise, and I was curious if it interested others.
> >>I don't see it having a permanent home in the apr source tree, so I'm just
> >>tossing it to the list as a patch to play with.



Mime
View raw message