Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-16 Thread Philip M. Gollucci
My compiler didn't catch that missing cast. What version of gcc are you using ? [EMAIL PROTECTED] /home/pgollucci 1>gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.4 [FreeBSD] 20050518

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-16 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > >> Philip M. Gollucci wrote: >> You will only get the Seg fault or Bus error when a process comes round for recycling. >> >> >> This is basically caused by the assumption that %ENV will be tied, and >> local %ENV >> breaks that assumption ;-S >> >> The followi

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-16 Thread Philip M. Gollucci
Philip M. Gollucci wrote: You will only get the Seg fault or Bus error when a process comes round for recycling. This is basically caused by the assumption that %ENV will be tied, and local %ENV breaks that assumption ;-S The following patch fixes this problem for me: [patch snipped] Some

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-15 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: >> You will only get the Seg fault or Bus error when a process comes round >> for recycling. This is basically caused by the assumption that %ENV will be tied, and local %ENV breaks that assumption ;-S The following patch fixes this problem for me: Index: src/modules/p

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-14 Thread Philip M. Gollucci
You will only get the Seg fault or Bus error when a process comes round for recycling. StartServers 1 MinSpareServers 1 MaxSpareServers 1 MaxClients 150 MaxRequestsPerChild 0 SetHandler perl-script PerlResponseHandler TEST::ENV TEST/ENV.pm package TEST::ENV;

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-14 Thread Philip M. Gollucci
First off a bit of CPAN wierdness. With perl -MCPAN 'install Sys::HostIP' you get version 1.0 (07 Jun 2000), rather than the latest version (1.3.1 29 Sep 2003), something to do with the change of owner (five->bluelines). Unfortunately 1.0 is the only version which doesn't use local %ENV (...and ho

[mp2] local %ENV causes Segmentation fault or Bus error

2005-12-14 Thread Peter Walsham
Phillip, Thanks for your reply. First off a bit of CPAN wierdness. With perl -MCPAN 'install Sys::HostIP' you get version 1.0 (07 Jun 2000), rather than the latest version (1.3.1 29 Sep 2003), something to do with the change of owner (five->bluelines). Unfortunately 1.0 is the only version wh

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-13 Thread Philip M. Gollucci
This works for me I can even do both local and Sys::HostIP at once ! :) p.s. its called hostip now PERL: 5.8.7 HTTPD: SVN - 2.3.0-dev prefork MP: SVN - 2.0.3-dev this is 2.0.2 + 2 unrelated changes Sys::HostIP: 1.0 OS: FreeBSD 6.0-RELEASE SetHandler modperl PerlResponseHandler TEST::ENV

[mp2] local %ENV causes Segmentation fault or Bus error

2005-12-13 Thread Peter Walsham
-8<-- Start Bug Report 8<-- 1. Problem Description: Summary Calling "local %ENV" from anywhere inside a mod_perl handler will terminally flaw the httpd process. The httpd process will function fine on the first request, but will die th

[mp2] local %ENV causes Segmentation fault or Bus error

2005-12-13 Thread Peter Walsham
-8<-- Start Bug Report 8<-- 1. Problem Description: Summary Calling "local %ENV" from anywhere inside a mod_perl handler will terminally flaw the httpd process. The httpd process will function fine on the first request, but will die the