Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-16 Thread Stas Bekman
Jérôme Augé wrote: On Thu, Jan 16, 2003 at 10:27:38AM +1100, Stas Bekman wrote: Cool. Now can you please send the shortest possible example that you still get the SEGFAULT with, so I can reproduce it and fix? Thanks. I finally got a working apache2+mod_perl working in my $HOME dir (I coul

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-16 Thread Jérôme Augé
On Thu, Jan 16, 2003 at 10:27:38AM +1100, Stas Bekman wrote: > > Cool. Now can you please send the shortest possible example that you still > get the SEGFAULT with, so I can reproduce it and fix? Thanks. > I finally got a working apache2+mod_perl working in my $HOME dir (I could not find the co

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-15 Thread Stas Bekman
Jérôme Augé wrote: I grep'ed into the mod_perl sources and found in examples/lib/Apache/HelloWorld.pm that send_http_header does not exists in mod_perl 2.0 and print is not yet implemented. Is this right ? so this could "easily" explain my problems :) It's an old example, I've removed it. in e

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-15 Thread Stas Bekman
Jérôme Augé wrote: On Wed, Jan 15, 2003 at 09:09:37AM +1100, Stas Bekman wrote: I've applied a fix that hopefully cures this thing in cvs. Please try again with the latest cvs version. http://perl.apache.org/download/source.html#2_0_Development_Source_Distribution Since you've never sent the b

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-15 Thread Jérôme Augé
I grep'ed into the mod_perl sources and found in examples/lib/Apache/HelloWorld.pm that send_http_header does not exists in mod_perl 2.0 and print is not yet implemented. Is this right ? so this could "easily" explain my problems :) in examples/lib/Apache/HelloWorld.pm : [...] sub handler { my

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-15 Thread Jérôme Augé
On Wed, Jan 15, 2003 at 09:09:37AM +1100, Stas Bekman wrote: > > I've applied a fix that hopefully cures this thing in cvs. Please try > again with the latest cvs version. > http://perl.apache.org/download/source.html#2_0_Development_Source_Distribution > I installed the CVS version (1.9909) an

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-14 Thread Stas Bekman
Jérôme Augé wrote: On Tue, Jan 14, 2003 at 12:32:29PM +1100, Stas Bekman wrote: SetHandler perl-script PerlHeaderParserHandler Apache::Plop Well, this is not really what I want to do ... I would like to catch all the "proxy request" and apply modifications to the requested document be

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-14 Thread Jérôme Augé
On Tue, Jan 14, 2003 at 12:32:29PM +1100, Stas Bekman wrote: > > > SetHandler perl-script > PerlHeaderParserHandler Apache::Plop > > Well, this is not really what I want to do ... I would like to catch all the "proxy request" and apply modifications to the requested document before for

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-13 Thread Stas Bekman
Stas Bekman wrote: Jérôme Augé wrote: [...] After making your example work, I don't see any segfaults. Please try again with modperl-1.99_08 which was released a few days ago. [...] 1. You can't push_handlers when you are inside a response handler. Use PerlHeaderParserHandler instead I've

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-13 Thread Stas Bekman
Jérôme Augé wrote: Hi, I'm beginning with mod_perl (mod_perl-1.99_05 + Apache 2.0.40 from RedHat 8.0) and I want to write a module for rewriting the documents that passes through the Apache proxy. So, I looked at the Apache::AdBlocker (http://perl.apache.org/docs/tutorials/tips/mod_perl_tricks

mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-13 Thread Jérôme Augé
Hi, I'm beginning with mod_perl (mod_perl-1.99_05 + Apache 2.0.40 from RedHat 8.0) and I want to write a module for rewriting the documents that passes through the Apache proxy. So, I looked at the Apache::AdBlocker (http://perl.apache.org/docs/tutorials/tips/mod_perl_tricks/mod_perl_tricks.html#A