Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-23 Thread Philippe M. Chiasson
Flavio Curti wrote: > Hello > > I have a problem running mod_perl-2.0.0 (and the latest devel snapshot too): > > Apache segfaults on startup as soon as I have the LoadModule directive > in the httpd.conf. This also happens when running make test. I have > compiled mod_perl with debugging enabled

Re: newbie question already searched the faqs and archives

2005-05-23 Thread Foo Ji-Haw
What does error.log say? Donald Lee wrote: Hello, I am looking for some help getting started with mod_perl. I am at a stopping point where I am at a loss... my setup is as follows: windows xp pro w/sp2 apache 2.0.54 active perl, v5.8.6 built for MSWin32-x86-multi-thread I am already consultin

Re: mos_perl2 on Windows

2005-05-23 Thread Robert
On 5/23/05, Randy Kobes <[EMAIL PROTECTED]> wrote: > On Mon, 23 May 2005, Robert wrote: > > > I just installed it via PPM (for ActiveStates 5.8.6.811). > > I had my site working under Apache1/CGI without problem. > > > > I upgraded to Apache2/mod_perl and I configured my site conf like so (per > >

Re: [MP2] : REDIRECT_ERROR_NOTES not set on errordocument redirect

2005-05-23 Thread Stas Bekman
Mark wrote: [...] Could it possibly come from here? src/modules/perl/modperl_callback.c if (status == HTTP_INTERNAL_SERVER_ERROR) { if (r && r->notes) { apr_table_set(r->notes, "error-notes", SvPV_nolen(ERRSV)); } } And we should check whether error-notes is

Re: how to trap connection reset/abort in Apache::Filter?

2005-05-23 Thread Stas Bekman
Jeff? Could you please try that patch that I've sent earlier? I think it's right, but I was still not very successful at reproducing your problem on the HTTP level. Thanks. Stas Bekman wrote: Stas Bekman wrote: Jeff Ambrosino wrote: Ok, this is going to be tough for me to test because I'm

Re: [mp2] Dynamically pushing output filters -- Questions

2005-05-23 Thread Stas Bekman
Stas Bekman wrote: $r->add_output_filter($FilterObject->handler); # This call will Seg Fault the server The fact that you get a segfault is not good, we should take care of that. Chris, mind to give us a simple case to reproduce that segfault? -- __

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-23 Thread Stas Bekman
Flavio Curti wrote: Hello I have a problem running mod_perl-2.0.0 (and the latest devel snapshot too): Apache segfaults on startup as soon as I have the LoadModule directive in the httpd.conf. This also happens when running make test. I have compiled mod_perl with debugging enabled and found th

Re: queue system using mod_perl2/apache2

2005-05-23 Thread Perrin Harkins
On Monday 23 May 2005 5:27 pm, Cahill, Earl wrote: > First, are there any good, open source, perl-based queue systems out there? The closest is Spread::Queue. > Second, is anyone interesting in working on a queue system with > mod_perl2/apache2 as it's basis, using the mod_echo, arbitrary protoco

queue system using mod_perl2/apache2

2005-05-23 Thread Cahill, Earl
I am wondering a couple things   First, are there any good, open source, perl-based queue systems out there?  I think I would like a stable, centralized daemon, which likely rules out many systems.   Second, is anyone interesting in working on a queue system with mod_perl2/apache2 as it

Re: mos_perl2 on Windows

2005-05-23 Thread Randy Kobes
On Mon, 23 May 2005, Robert wrote: > On 5/23/05, Randy Kobes <[EMAIL PROTECTED]> wrote: [ ... ] > > Do requests for > >http://localhost/reports/some_script_that_does_exist > > succeed? > > It does not: > > Apache log: > > [Mon May 23 14:05:47 2005] [error] [client 10.149.82.49] Options > ExecC

Re: APR::Base64 Bug

2005-05-23 Thread Stas Bekman
Torsten Foertsch wrote: On Sunday 22 May 2005 19:18, Torsten Foertsch wrote: Hi, there is something wrong with APR::Base64. [EMAIL PROTECTED]:~> perl -MAPR::Base64 -MData::Dumper -e '$x=APR::Base64::encode( "x" ); print "$x\n".Dumper( [split "", $x] ), "length=".length($x)."\n";' eA== $VAR1

Re: [MP2] Accessing custom config directives from an PostConfig handler

2005-05-23 Thread Stas Bekman
Torsten Foertsch wrote: [...] I think a document explaining the fundamental Apache/mod_perl data structures in terms of C _and_ mod_perl would be good. Then it can be linked from the rest of the docs. BTW, is there somewhere a good Apache API documentation? All my knowledge about it comes from

Re: progress reporting

2005-05-23 Thread Philip M. Gollucci
Arshavir Grigorian wrote: Hi, I have some code that takes a long time to execute. What I would like to do is to display several real time status messages on the user's browser as the work is being done (Started doing A ... Done, Started doing B ... Done, etc). Then once the work is done, I w

Re: [MP2] Accessing custom config directives from an PostConfig handler

2005-05-23 Thread Torsten Foertsch
On Monday 23 May 2005 19:54, Stas Bekman wrote: > Geoffrey Young wrote: > > Torsten Foertsch wrote: > >>Hi, > >> > >>I have created my own configuration directives with Apache2::Module::add. > >> How can I access the values from an PostConfig handler? > >> > >>I have got it working with the main se

Re: APR::Base64 Bug

2005-05-23 Thread Torsten Foertsch
On Sunday 22 May 2005 19:18, Torsten Foertsch wrote: > Hi, > > there is something wrong with APR::Base64. > > [EMAIL PROTECTED]:~> perl -MAPR::Base64 -MData::Dumper -e > '$x=APR::Base64::encode( "x" > ); print "$x\n".Dumper( [split "", $x] ), "length=".length($x)."\n";' eA== > $VAR1 = [ >

Re: progress reporting

2005-05-23 Thread Perrin Harkins
On Monday 23 May 2005 3:21 pm, Arshavir Grigorian wrote: > I have some code that takes a long time to execute. What I would like to > do is to display several real time status messages on the user's browser > as the work is being done (Started doing A ... Done, Started doing B ... > Done, etc). The

RE: progress reporting

2005-05-23 Thread Joe Breeden
You may look at this module for inspiration: http://search.cpan.org/~isaac/Apache-UploadMeter-0.22/UploadMeter.pm -Original Message- From: Arshavir Grigorian [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 2:21 PM To: modperl@perl.apache.org Subject: progress reporting Hi, I ha

progress reporting

2005-05-23 Thread Arshavir Grigorian
Hi, I have some code that takes a long time to execute. What I would like to do is to display several real time status messages on the user's browser as the work is being done (Started doing A ... Done, Started doing B ... Done, etc). Then once the work is done, I would like to wipe the status

Re: [mp2] Problem with custom config in Location

2005-05-23 Thread Stas Bekman
Herve Guillemet wrote: Herve, you've uncovered a bloody global perl context switch bug. Please try this patch (the reproducing tar ball now works for me under worker) This test does run successfully with your patch. Now define two directives. Use one inside the Location, another outside, and

Re: [mp2] OR_EXEC_ON_READ

2005-05-23 Thread Stas Bekman
Dorian Taylor wrote: did this go away? i can't find any mention of it in the source other than the documentation and core module logic. i'm currently playing with making a container configuration, and the documentation says to set OR_EXEC_ON_READ on the req_override, but it doesn't appear to be p

Re: Problem with taint

2005-05-23 Thread Stas Bekman
Mike Cardwell wrote: Hi, I installed the new release of ModPerl2 today. I've not used any of the betas previously so am not sure if the problem is specific to this version or not. In my PerlResponseHandler I have the following code: sub handler { my $r = shift; my( $path ) = $r->filename(

Re: mos_perl2 on Windows

2005-05-23 Thread Randy Kobes
On Mon, 23 May 2005, Robert wrote: > I just installed it via PPM (for ActiveStates 5.8.6.811). > I had my site working under Apache1/CGI without problem. > > I upgraded to Apache2/mod_perl and I configured my site conf like so (per > the docs): > > alias /reports "C:\path\to\reports" > > PerlModul

Re: [MP2] Accessing custom config directives from an PostConfig handler

2005-05-23 Thread Stas Bekman
Geoffrey Young wrote: Torsten Foertsch wrote: Hi, I have created my own configuration directives with Apache2::Module::add. How can I access the values from an PostConfig handler? I have got it working with the main server. But if my directives are inside a VirtualHost they are not access

Re: apreq_strerror

2005-05-23 Thread Stas Bekman
Marc Lambrichs wrote: config: freebsd 5.3 httpd 2.054 modperl 2.0.0 When starting up apache I get: /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.5/mach/auto/APR/Request/Error/Error.so: Undefined symbol "apreq_strerror" what's wrong? Please post libapreq/APR::Request errors to th

mos_perl2 on Windows

2005-05-23 Thread Robert
I just installed it via PPM (for ActiveStates 5.8.6.811). I had my site working under Apache1/CGI without problem. I upgraded to Apache2/mod_perl and I configured my site conf like so (per the docs): alias /reports "C:\path\to\reports" PerlModule ModPerl::PerlRun SetHandler perl-script

[mp2] segfaulting apache in ap_pcw_walk_files_config

2005-05-23 Thread Flavio Curti
Hello I have a problem running mod_perl-2.0.0 (and the latest devel snapshot too): Apache segfaults on startup as soon as I have the LoadModule directive in the httpd.conf. This also happens when running make test. I have compiled mod_perl with debugging enabled and found the problematic spot, ho

Re: [MP2] Accessing custom config directives from an PostConfig handler

2005-05-23 Thread Geoffrey Young
Torsten Foertsch wrote: > Hi, > > I have created my own configuration directives with Apache2::Module::add. How > can I access the values from an PostConfig handler? > > I have got it working with the main server. But if my directives are inside a > VirtualHost they are not accessible. > Apa

[MP2] Accessing custom config directives from an PostConfig handler

2005-05-23 Thread Torsten Foertsch
Hi, I have created my own configuration directives with Apache2::Module::add. How can I access the values from an PostConfig handler? I have got it working with the main server. But if my directives are inside a VirtualHost they are not accessible. sub set_fn { my($I, $parms, $arg)[EMAIL PRO

Re: DirectoryIndex ignored when using perl-handler

2005-05-23 Thread Geoffrey Young
> My/Fixup.pm package exactly as > http://marc.theaimsgroup.com/?l=apache-modperl&m=111445150218566&w=2 > > Note 1: > - All references to Apache2 changed to Apache (fresh > install of Fedora Core 3 & one up2date > (httpd is 2.0.52 and mp2 is 1.99_16-3) > - no complaints > > Problem 1: >

apreq_strerror

2005-05-23 Thread Marc Lambrichs
config: freebsd 5.3 httpd 2.054 modperl 2.0.0 When starting up apache I get: /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.5/mach/auto/APR/Request/Error/Error.so: Undefined symbol "apreq_strerror" what's wrong? Cheers, Marc