Memory corruptions with mod_perl on win32

2013-02-22 Thread Michiel Beijen
Hi,

I use Steve Hay's mod_perl binaries with ActiveState perl 5.16
http://people.apache.org/~stevehay/

I see these kind of memory corruptions in the apache log when I put
some serious load on the server via ab.

Attempt to free nonexistent shared string '', Perl interpreter:
0x2a99014 at c:/ws/otrs/Kernel/cpan-lib/CGI/Carp.pm line 399.
Attempt to free nonexistent shared string '', Perl interpreter:
0x2a99014 at c:/ws/otrs/Kernel/cpan-lib/CGI/Carp.pm line 399.
Attempt to free nonexistent shared string '', Perl interpreter:
0x2a99014 at c:/ws/otrs/Kernel/cpan-lib/CGI/Carp.pm line 399.
Attempt to free nonexistent shared string '', Perl interpreter:
0x2a99014 at c:/ws/otrs/Kernel/cpan-lib/CGI/Carp.pm line 399.
[Fri Feb 22 11:23:54 2013] -e: Attempt to free unreferenced scalar: SV
0xe2f7bec, Perl interpreter: 0x2a99014 at
c:/ws/otrs//Kernel/System/Main.pm line 871.
[Fri Feb 22 11:23:54 2013] -e: Attempt to free unreferenced scalar: SV
0xb09712c, Perl interpreter: 0x2a99014 at
c:/ws/otrs//Kernel/System/Main.pm line 336.
[Fri Feb 22 11:23:54 2013] -e: Attempt to free unreferenced scalar: SV
0xc04e32c, Perl interpreter: 0x2a99014 at
c:/ws/otrs//Kernel/System/Main.pm line 336.
[Fri Feb 22 11:23:54 2013] -e: Attempt to free unreferenced scalar: SV
0xd31d04c, Perl interpreter: 0x2a99014 at
c:/ws/otrs//Kernel/System/Main.pm line 336.
[Fri Feb 22 11:25:31 2013] -e: Attempt to free unreferenced scalar: SV
0x10add1f4, Perl interpreter: 0x5d33fdc at
c:/ws/otrs//Kernel/System/Main.pm line 871.
[Fri Feb 22 11:25:31 2013] -e: Free to wrong pool 6f27f08 not 7ce7328
at c:/ws/otrs//Kernel/System/Main.pm line 336.

After this apache restarts itself, which leads to lots of requests failing.

I tried different mod_perl binaries, also very old 2.04 ones with
different perls (Strawberry, Activestate) but I keep hitting similar
issues.

How can I find out what is causing these issues?
--
Mike


RE: Repo for mod_perl-2.0 win32

2013-02-15 Thread Steve Hay
They are quite possibly down, having been the creation of the sadly departed 
Randy Kobes.

 

I have put a couple of builds (not PPM packages, sorry) of mod_perl suitable 
for use with ActivePerl and StrawberryPerl 5.16.0 here:

http://people.apache.org/~stevehay/

 

 

From: Vincent Fritz [mailto:vinc.fr...@gmail.com] 
Sent: 14 February 2013 13:10
To: modperl@perl.apache.org
Subject: Fw: Repo for mod_perl-2.0 win32

 

Hi,

 

I’m looking for the package mod_perl-2.0 for Win32.

 

I try to install it from depo http://cpan.uwinnipeg.ca/PPMPackager/10xx, 
http://cpan.uwinnipeg.ca/PPMPackager/12xx and 
http://theoryx5.uwinnipeg.ca/ppms/ http://theoryx5.uwinnipeg.ca/ppms/  

 

I have these error messages :

Downloading cpan.uwinnipeg.ca packlist...failed 503 Service Unavailable

Downloading theoryx5.uwinnipeg.ca packlist...failed 503 Service Unavailable

Are these depo down ?
Regards,
Vincent
 


Fw: Repo for mod_perl-2.0 win32

2013-02-14 Thread Vincent Fritz
Hi,

I’m looking for the package mod_perl-2.0 for Win32.

I try to install it from depo http://cpan.uwinnipeg.ca/PPMPackager/10xx, 
http://cpan.uwinnipeg.ca/PPMPackager/12xx and 
http://theoryx5.uwinnipeg.ca/ppms/ 

I have these error messages :
Downloading cpan.uwinnipeg.ca packlist...failed 503 Service Unavailable
Downloading theoryx5.uwinnipeg.ca packlist...failed 503 Service Unavailable
Are these depo down ?Regards,Vincent 

Running a proxy in front of mod_perl on Win32

2011-01-28 Thread Michiel Beijen
On Fri, January 28, 2011 01:14, Michael Peters wrote:
 Another thing that maybe the OP should look at (if he hasn't already) is
 to run a proxy in front of the main mod_perl application. Even if the
 proxy is on the same machine it will help because you can reduce the
 number of memory-heavy mod_perl processes/threads and handle the same
 number of connections.

I have read that advice before; then it was because of this bug concerning
running mod_ssl + mod_perl at the same time on Win32:
https://issues.apache.org/bugzilla/show_bug.cgi?id=36751

Unfortunately the bug still exists but the bug report was set to invalid
because it did not get proper attention.

What would be the best (windows-style) way of running a proxy in front of
apache?

Insights are welcome!
--
Mike



Re: Running a proxy in front of mod_perl on Win32

2011-01-28 Thread Hendrik Schumacher
Am Fr, 28.01.2011, 09:31, schrieb Michiel Beijen:
 On Fri, January 28, 2011 01:14, Michael Peters wrote:
 Another thing that maybe the OP should look at (if he hasn't already) is
 to run a proxy in front of the main mod_perl application. Even if the
 proxy is on the same machine it will help because you can reduce the
 number of memory-heavy mod_perl processes/threads and handle the same
 number of connections.

 I have read that advice before; then it was because of this bug concerning
 running mod_ssl + mod_perl at the same time on Win32:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=36751

 Unfortunately the bug still exists but the bug report was set to invalid
 because it did not get proper attention.

 What would be the best (windows-style) way of running a proxy in front of
 apache?

 Insights are welcome!
 --
 Mike



(Linux-style) I use nginx and it works great (by coping with ssl and
keep-alives) whether you allow it to cache requests or not. It can serve
thousands of simultaneous connections and still has just a memory
footprint of a few mb. I dont know if the event-model works as great under
windows but there are windows builds available on the website
(http://nginx.org) so it should be worth a try.

Hendrik



Re: mod_perl on win32

2009-08-26 Thread Foo JH

I'd suggest to get your mp2 up with the following stack:
Apache22 Windows binary
ActivePerl binary
precompiled mod_perl2 + libapreq2 from the repo

Michiel Beijen wrote:

Hi all,

I'd like to know if it's possible to build mod_perl on Win32; I'd like
to use mod_perl with StrawberryPerl. It seems to be that the only way
that could be done is to compile Apache also with MinGW, and that's not
possible because of limited support for Windows Shared Memory in MinGW.

Also if you'd try to compile mod_perl it will try to run ./configure
on the Apache sources but that will fail on Win32 because 1. there is no
Configure in the win32 Apache sources and 2. Windows will try to execute
. which is not exactly an executable file...

Does anyone have pointers or tips?

Thanks in advance,
  




Re: mod_perl on win32

2009-08-26 Thread Michiel Beijen

Foo JH wrote:

I'd suggest to get your mp2 up with the following stack:
Apache22 Windows binary
ActivePerl binary
precompiled mod_perl2 + libapreq2 from the repo

That would be the easy way, right ;-)

The thing is, my project uses a software bundle which includes Apache 
and Strawberry for the Windows installer. Due to licensing requirements 
you could not bundle ActiveState in an open source product; therefore 
the Strawberry requirement. It is just too bad that ApachePerl is not 
alive anymore. Any tips for compiling mod_perl with Strawberry are still 
welcome!


Regards,
Michiel


Re: mod_perl on win32

2009-08-26 Thread Randy Kobes
On Wed, Aug 26, 2009 at 12:40 PM, Michiel Beijenmichiel.bei...@otrs.com wrote:
 Foo JH wrote:

 I'd suggest to get your mp2 up with the following stack:
 Apache22 Windows binary
 ActivePerl binary
 precompiled mod_perl2 + libapreq2 from the repo

 That would be the easy way, right ;-)

 The thing is, my project uses a software bundle which includes Apache and
 Strawberry for the Windows installer. Due to licensing requirements you
 could not bundle ActiveState in an open source product; therefore the
 Strawberry requirement. It is just too bad that ApachePerl is not alive
 anymore. Any tips for compiling mod_perl with Strawberry are still welcome!

 Regards,
 Michiel

Recent Strawberry distributions contain the ppm utility, which can be
used to install ppm packages. I'm not sure if the relevant ppm
package:
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages
for mod_perl and libapreq2 would be compatible, but it would probably
be worth trying.

-- 
best regards,
Randy


mod_perl on win32

2009-08-25 Thread Michiel Beijen
Hi all,

I'd like to know if it's possible to build mod_perl on Win32; I'd like
to use mod_perl with StrawberryPerl. It seems to be that the only way
that could be done is to compile Apache also with MinGW, and that's not
possible because of limited support for Windows Shared Memory in MinGW.

Also if you'd try to compile mod_perl it will try to run ./configure
on the Apache sources but that will fail on Win32 because 1. there is no
Configure in the win32 Apache sources and 2. Windows will try to execute
. which is not exactly an executable file...

Does anyone have pointers or tips?

Thanks in advance,
-- 
Michiel Beijen


((otrs)) :: OTRS AG :: Norsk-Data-Straße 1 :: 61352 Bad Homburg
Phone: +49 (0) 6172 681988 0 :: Fax: +49 (0) 9421 56818 18
  http://www.otrs.com/ :: Communication with success!


Geschäftssitz: Bad Homburg
Amtsgericht Bad Homburg, HRB 10751
Steuernummer: 003 240 97505
Aufsichtsratsvorsitzender: Burchard Steinbild
Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer

NEU! ENTERPRISE SUBSCRIPTION - JETZT informieren und buchen!
http://www.otrs.com/de/support/enterprise-subscription/


Re: mod_perl on win32

2009-08-25 Thread William A. Rowe, Jr.
Michiel Beijen wrote:
 
 I'd like to know if it's possible to build mod_perl on Win32; I'd like
 to use mod_perl with StrawberryPerl. It seems to be that the only way
 that could be done is to compile Apache also with MinGW, and that's not
 possible because of limited support for Windows Shared Memory in MinGW.

There are various flaws in the build, report them to d...@httpd or collect
them in bugzilla reports, and mind the existing reports which might already
solve your problem.

Since there is no MinGW port maintainer, this often falls apart, sorry there
is nothing we can do if a platform's community does not participate with or
engage the developers with patches.

 Also if you'd try to compile mod_perl it will try to run ./configure
 on the Apache sources but that will fail on Win32 because 1. there is no
 Configure in the win32 Apache sources and 2. Windows will try to execute
 . which is not exactly an executable file...
 
 Does anyone have pointers or tips?

You don't use the -win32-src package because that package is for building
on the Microsoft Windows platform.  If you want to build for a faux-unix
platform you would obtain the usual tarball.


RE: mod_perl on win32

2009-08-25 Thread Steve Hay
William A. Rowe, Jr. wrote on 2009-08-25:
 Michiel Beijen wrote:
  I'd like to know if it's possible to build mod_perl on Win32; I'd like
 to use mod_perl with StrawberryPerl. It seems to be that the only way
 that could be done is to compile Apache also with MinGW, and that's not
 possible because of limited support for Windows Shared Memory in
 MinGW.
 
 There are various flaws in the build, report them to d...@httpd or
 collect them in bugzilla reports, and mind the existing reports which
 might already solve your problem.

The other option, if you didn't specifically want to use StrawberryPerl, is to 
build perl, apache  mod_perl with VC++ 2008 Express.


Re: mod_perl on win32

2009-08-25 Thread Jean-Damien Durand

Michiel Beijen a écrit :

I'd like to know if it's possible to build mod_perl on Win32; I'd like
to use mod_perl with StrawberryPerl. It seems to be that the only way
that could be done is to compile Apache also with MinGW, and that's not
possible because of limited support for Windows Shared Memory in MinGW
  
Here is how I installed StrawberryPerl + mod_perl + apache2 on Windows 
(tested onVista):


1. Apache
Go to http://httpd.apache.org/download.cgi
Click on /Win32 Binary including OpenSSL 0.9.8i (MSI Installer) /
Some recommend to install it in a directory without space, although I 
did not do that and it still work.


2. Perl
Go to http://strawberryperl.com/ and install the latest kit

3.  I then use the script send in attachement to install all modules I 
need, e.g. perl install_modules.pl


At the top of the script you will see how to get mod_perl2 and various 
other stuff I need for my project. Just the lines for the modules you do 
not need.


HTH,

Cheers, JD.

#!/usr/bin/perl

#
## This script, intended to be run by an installer on Windows
## will hopefully verify packages needed by Freecity are
## installed - and will attempt to install them if needed
#
## (c) 2008 by Jean-Damien Durand jeandamiendur...@free.fr
#
use 5.10.0;
use strict;
use diagnostics;
use Config;
use File::Spec;
use CPAN;

my %required_modules = (
'mod_perl2' = 
'http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd',
'Apache2::Request'  = 
'http://cpan.uwinnipeg.ca/PPMPackages/10xx/libapreq2.ppd',
'GD'= 'http://www.bribes.org/perl/ppm/GD.ppd',
'GD::Text'  = 'http://www.bribes.org/perl/ppm/GDTextUtil.ppd',
'Template'  = 
'http://cpan.uwinnipeg.ca/PPMPackages/10xx/Template-Toolkit.ppd',
'Config::General'   = 
'http://cpan.uwinnipeg.ca/PPMPackages/10xx/Config-General.ppd',
'Apache::DBI'   = 'http://trouchelle.com/ppm10/Apache-DBI.ppd',
'CGI::Simple'   = 'http://trouchelle.com/ppm10/CGI-Simple.ppd',
'HTML::Tree'= 'http://trouchelle.com/ppm10/HTML-Tree.ppd',
'File::Type'= 'http://trouchelle.com/ppm10/File-Type.ppd',
'Image::Size'   = 'http://trouchelle.com/ppm10/Image-Size.ppd',
'Net::Telnet'   = 'http://trouchelle.com/ppm10/Net-Telnet.ppd',
'I18N::Charset' = 'http://trouchelle.com/ppm10/I18N-Charset.ppd',
'XML::RSS'  = 'http://trouchelle.com/ppm10/XML-RSS.ppd',
'Win32::Process'= 'http://trouchelle.com/ppm10/Win32-Process.ppd',
'Win32::DriveInfo'  = 'http://trouchelle.com/ppm10/Win32-DriveInfo.ppd',
'List::MoreUtils'   = 
'http://cpan.uwinnipeg.ca/PPMPackages/10xx/List-MoreUtils.ppd',
'Win32::FileOp' = 'http://trouchelle.com/ppm10/Win32-FileOp.ppd',
'Win32::Service'= 'http://trouchelle.com/ppm10/Win32-Service.ppd',
'Win32::OLE'= 'http://www.bribes.org/perl/ppm/Win32-OLE.ppd',
'Text::Chomp'   = 'http://trouchelle.com/ppm10/Text-Chomp.ppd',
'Number::Format'= 'http://trouchelle.com/ppm10/Number-Format.ppd',
'Object::Multitype' = 'http://trouchelle.com/ppm10/Object-MultiType.ppd',
'Win32::IPHelper'   = 'http://trouchelle.com/ppm10/Win32-IPHelper.ppd',
'NetAddr::IP'   = 'http://trouchelle.com/ppm10/NetAddr-IP.ppd'
);
   
print \n;
print \n;
print Freecity va verifier et installer si necessaire des \n;
print modules perl necessaires a son fonctionnement.  \n;
print \n;
print \n;
print Appuyez sur Entree ou Return pour continuer   \n;
print \n;

my $dummy;
read(STDIN, $dummy, 1);

#  -
## Get install directory of perl
#  -
my $installbin = $Config{installbin} || die No installbin in perl config !?\n;
my $installsitelib = $Config{installsitelib} || die No installsitelib in perl 
config !?\n;

#  ---
## This is for Time::ParseDate
#  ---
$ENV{TZ}='PST8PDT';

#  --
## Check required modules
#  --
my $module;
my $cpanmod;
my $ppm = File::Spec-catfile($installbin, 'ppm.bat');
foreach $module (sort keys %required_modules) {
my $found = 0;
#
## For GD we force the installation
#
if ($module ne 'GD') {
foreach $cpanmod (CPAN::Shell-expand(Module, $module)){
++$found;
if ($cpanmod-inst_file) {
print $cpanmod-id,  is already installed\n;
next;
}
install_module($module);
last;
}
} else {
print Forcing $module installation\n;
}
if ($found == 0) {
install_module($module);
}
}

#
## Special hook for Params::Validate that is since recently... buggy - move to 
a perl only solution
#
my $validatedll = File

Re: mod_perl on win32

2009-08-25 Thread Jean-Damien Durand

Jean-Damien Durand a écrit :
Here is how I installed StrawberryPerl + mod_perl + apache2 on Windows 
(tested onVista):


Ah yes of course you will need to add lines like

LoadFile C:\strawberry\perl\bin\perl510.dll
LoadModule perl_module modules/mod_perl.so
LoadFile C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\libapreq2.dll

LoadModule apreq_module modules/mod_apreq2.so

in your httpd.conf (change paths if needed)

Cheers, JD.




mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Dami Laurent (PJ)
Hi all,

I don't know where to find answers to the following questions, so better
ask the list :

- 1) is modperl2 currently compatible with Perl 5.10 ? If not, are some
people working on it ? For which target date ?

- 2) if the answer is YES, then did anybody compile it into a PPM for
Win32 ? Didn't find it at ActiveState nor at uwinnipeg.

Thanks in advance, 

Laurent Dami



Re: mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Colin Wetherbee

Dami Laurent (PJ) wrote:

I don't know where to find answers to the following questions, so
better ask the list :

- 1) is modperl2 currently compatible with Perl 5.10 ? If not, are
some people working on it ? For which target date ?

- 2) if the answer is YES, then did anybody compile it into a PPM
for Win32 ? Didn't find it at ActiveState nor at uwinnipeg.


I believe the following message from this month's archives is still 
applicable.


http://mail-archives.apache.org/mod_mbox/perl-modperl/200802.mbox/[EMAIL 
PROTECTED]

Colin


Re: mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Randy Kobes

On Wed, 20 Feb 2008, Dami Laurent (PJ) wrote:


Hi all,

I don't know where to find answers to the following questions, so better
ask the list :

- 1) is modperl2 currently compatible with Perl 5.10 ? If not, are some
people working on it ? For which target date ?

- 2) if the answer is YES, then did anybody compile it into a PPM for
Win32 ? Didn't find it at ActiveState nor at uwinnipeg.


As there's been several requests for this, I've put up an
ActivePerl 10xx ppm package of mod_perl2, based on the
current svn sources, at
   http://cpan.uwinnipeg.ca/PPMPackages/10xx/
which you can install via
  C:\ ppm install
 http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd
There's also a ppm package of libapreq2 (which supplies,
amongst other things, Apache2::Request and Apache2::Cookie)
in the same repository. Please let me know if you have
any problems installing these - thanks.

Both these packages are based on Apache/2.2, and hence 
are incompatible with Apache/2.0. If you're using

Apache/2.0 and would like a ppm package, let me
know and I'll make one up.

--
best regards,
Randy Kobes


Re: mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Foo JH

Thanks!

I mean for compiling for 5.10!

Randy Kobes wrote:


As there's been several requests for this, I've put up an
ActivePerl 10xx ppm package of mod_perl2, based on the
current svn sources, at
   http://cpan.uwinnipeg.ca/PPMPackages/10xx/
which you can install via
  C:\ ppm install
 http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd
There's also a ppm package of libapreq2 (which supplies,
amongst other things, Apache2::Request and Apache2::Cookie)
in the same repository. Please let me know if you have
any problems installing these - thanks.

Both these packages are based on Apache/2.2, and hence are 
incompatible with Apache/2.0. If you're using

Apache/2.0 and would like a ppm package, let me
know and I'll make one up.





Mod_perl and win32 --more experience

2007-03-23 Thread Tümer Garip


Hi all,
There has been quite a few reports about mod_perl causing segment faults
in Win32 boxes on the list (including me). Thanks to all that responded
with suggestions. Here is my latest findings:
1- I have mod_perl2.0.3 apache2.2.4 working on a Windows 2003 box.(Dual
xceleron IBM server)
2- Using standart binaries for perl (activePerl and Apache) is perfectly
fine. No need to compile them yourself.
3- XML::Libxml or anything that uses it like XML::Simple will definitely
crash the system under heavy load. I now use Expat and under most heavy
tests it survives. This is a very usefull package and may be somebody
will look into it.
4- Another culprit was a not a very common package HTML::Template::Pro.
Segment faults  (saying free to wrong pool) again under heavy use. I now
use HTML::Template and works fine.

So I can now say Mod_Perl rocks on a production Library system running
on Windows Box.

Hope it helps to others
Tumer Garip



ENC: Problem Instaling MOD_PERL for Win32 (Windows 2000)

2003-11-17 Thread Carlos - Fundação MT












-Mensagem original-
De: Carlos - Fundação MT [mailto:[EMAIL PROTECTED] 
Enviada em: Monday, November 17,
2003 3:09 PM
Para: '[EMAIL PROTECTED]org'
Assunto: Problem Instaling
MOD_PERL for Win32 (Windows 2000)



Good Afternoon,



Id like to install mod_perl for windows 2000, but I
donno how search the file mod_perl.zip.



I need to help for you to install the Module Perl for Apache
1.3.29 and Perl 5.6.1 Build 6xx







Best Regards,



Carlos Augusto Perez Lima








Re: ENC: Problem Instaling MOD_PERL for Win32 (Windows 2000)

2003-11-17 Thread Randy Kobes
On Mon, 17 Nov 2003, [iso-8859-1] Carlos - Fundao MT wrote:

 Id like to install mod_perl for windows 2000, but I donno
 how search the file mod_perl.zip.
  I need to help for you to install the Module Perl for
 Apache 1.3.29 and Perl 5.6.1 Build 6xx

The page
 http://perl.apache.org/docs/1.0/os/win32/install.html#PPM_Packages
describes how to install mod_perl by the ppm utility for
Win32.

-- 
best regards,
randy kobes

--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html