perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
Subject Re: [mp2] local %ENV causes Segmentation fault or Bus error
Date Fri, 16 Dec 2005 21:22:01 GMT
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 following patch fixes this problem for me:
> 
> [patch snipped]
> 
> Somewhere along the way you lost a type cast
> [...]
> modperl_env.c && mv modperl_env.o modperl_env.lo
> modperl_env.c: In function `modperl_env_request_tie':
> modperl_env.c:407: warning: assignment from incompatible pointer type
> *** Error code 1
> 
> Stop in
> /usr/home/pgollucci/dev/repos/asf/perl/modperl/5.8.7_svn_prefork/src/modules/perl.

Fixed up my patch and beautified it a bit. Checked in as r357236.

> With the above change this fixes it for me on a variety of different
> httpd/perl/mod_perl combos on FreeBSD.

It also fixed it on a large combination of Linux configurations for me.

My compiler didn't catch that missing cast. What version of gcc are you
using ?

--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

Mime
View raw message