httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
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:


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     mod_perl Guide --->

View raw message