apache -X on win32 vs mod_perl

2005-08-16 Thread Bjoern Hoehrmann
Hi,

  Apache/2.0.54 with mod_perl 2.0.1 on Windows Server 2003, mostly
standard configuration using mod_perl like

  Location /script
SetHandler  perl-script
PerlOptions +ParseHeaders
PerlResponseHandler ModPerl::Registry
  /Location
  
  LoadFile d:/Perl/bin/perl58.dll
  LoadModule perl_module modules/mod_perl.so

Now when launching Apache with -X or -DONE_PROCESS it works fine when
accessing normal files but as soon as a client requests /script the
web server will exit, no error message, nothing in the error_log, the
.pid file is not removed, it basically crashes. Is this known and is
there a work around?

I ran into this when trying to use Apache::DProf which does not work
when running without -X (it creates the output files but only writes
the header), same for Apache::SmallProf; setting perl5opt=-d:DProf
does work but it will only profile mod_perl startup code, not the
scripts I'd be interested in. Mike Zelina reported similar problems
2 1/2 years ago to this list...

Is Apache::DProf actually supposed to work without -X? If not, where
should I report the crash bug above if I don't want to debug any of
the code involved? :-)

TIA,
-- 
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 


Re: [mp2] strange behavior of script under heavy load

2005-08-14 Thread Bjoern Hoehrmann
* Bjoern Hoehrmann wrote:
The test input I'm using should yield in 102 reported errors.
Under normal load, only 94 errors are reported (the last 8 errors
are missing), under heavy load, sometimes, 102 erors are reported.

I could track this down to input like

  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN 
  nobr.../nobr

This should result in an error 'element NOBR undefined' from OpenSP.
When running it under mod_perl and the winnt mpm however it gives this
message sometimes and 'document type does not allow element NOBR
here' on other times. At some point I got different errors for every
other request though it's not that stable anymore. It's not possible
to reproduce this when using debug builds of OpenSP...

This is the result of an unitialized variable in OpenSP. I've fixed it
in the openjade cvs. Hopefully there aren't more gotchas of this kind.
-- 
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/