Joe Schaefer wrote: [...]
So it seems Perl_safesysmalloc depends on PERL_SET_CONTEXT. This patch fixes the segfault, but I'm not sure it's an acceptable solution:
Index: src/modules/perl/modperl_module.c =================================================================== RCS file: /home/cvspublic/modperl-2.0/src/modules/perl/modperl_module.c,v retrieving revision 1.17 diff -u -r1.17 modperl_module.c --- src/modules/perl/modperl_module.c 4 Mar 2004 06:01:07 -0000 1.17 +++ src/modules/perl/modperl_module.c 2 Oct 2004 04:06:04 -0000 @@ -185,6 +185,7 @@ #ifdef USE_ITHREADS interp = modperl_interp_pool_select(p, s); aTHX = interp->perl; + PERL_SET_CONTEXT(aTHX); #endif
table = modperl_module_config_table_get(aTHX_ TRUE);
Joe, this still needs to applied? But please make sure that you restore the context when you are done with it. Look at the other places where this is done (grep for SET_CONTEXT).
Let me know if you need help.
-- __________________________________________________________________ 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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
