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 backtrace of SEGFAULT, as explained here:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
there can be more than one problem. I've fixed one, but there can be more lurking behind the first one. So if you can send the backtrace, that will help a lot.

I installed the CVS version (1.9909) and I still get a SEGFAULT when
using $r->send_http_header() or $r->print() ...

- I fetched the mod_perl CVS sources then launched :
    $ perl Makefile.PL MP_APXS=/usr/sbin/apxs
    $ make
    $ make install
- modified the "/etc/httpd/conf.d/perl.conf" file
- restarted httpd
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 also tested with the Apache::ProxyPassThru module (from
http://perl.apache.org/dist/contrib/ProxyPassThru.pm)
I added a "use Apache::compat" statement, removed the
$r->handler()/$r->push_handlers() part and I also get a SEGFAULT when it
reach the http_send_header() statement ...

send_http_header is indeed doesn't exist in 2.0, but implemented in Apache::compat and should work just fine, as it's exercised in many tests:

grep -Ir send_http_header t
t/compat/request_body.t:# $r->send_http_header('text/plain');
t/compat/request_body.t: q{$r->send_http_header('text/plain')}
t/response/TestCompat/request_body.pm: $r->send_http_header('text/plain');
t/response/TestCompat/apache.pm: $r->send_http_header('text/plain');
t/response/TestCompat/apache_file.pm: $r->send_http_header('text/plain');
t/response/TestCompat/apache_table.pm: $r->send_http_header('text/plain');
t/response/TestCompat/apache_util.pm: $r->send_http_header('text/plain');
t/response/TestCompat/request.pm: $r->send_http_header('text/plain');


__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to