httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: 2.03-dev-rc3 (was Re: 5.6.1 segfaults during perl tests)
Date Fri, 11 Jun 2004 18:38:16 GMT
Geoffrey Young wrote:
[...]
> +#ifdef USE_ITHREADS
>      struct apreq_xs_do_arg *d = (struct apreq_xs_do_arg *)data;
>      dTHXa(d->perl);
> +#endif

I wasn't quite following recently, so it's unrelated to Geoff's patch, but you 
should be careful when doing things like above. Always do:

   PERL_SET_CONTEXT(...);

when switching aTHX.

as well. W/o it any SV operation may allocate memory from a wrong interpreter. 
Though it might be OK for this particular case.

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

Mime
View raw message