Stas Bekman wrote:
Steve, Randy, please try the current cvs (just cvs up + make, no need to rebuild from scratch). I have finally been able to solve the segfault with the short config Steve presented. I hope that it solves the problem for you as well. If it does, please try again with the vhost patch that was failing before.
I moved quite a few things in mod_perl.c, but the only real change was adding:
+#ifdef USE_ITHREADS + /* after other parent perls were started in vhosts, make sure that + * the context is set to the base_perl */ + PERL_SET_CONTEXT(base_perl); +#endif
after setting up vhosts, without which, PerlLoadModule in the main server was segfaulting for me.
The good news: The short configuration file that I posted now works for me too (both the -t test and actually starting up the server).
The bad news: The vhost tests still fail as before :(
Thanks Steve.
Here's a backtrace of the crash:
This and your trace proves my suspicion that my solution just happened to work for the particular setup you had the crush with. But I think we are on the right track. We get the crash when the wrong perl is set as the current context. I will try to remove my recent solution and try to see why modperl_cmd_modules doesn't use the correct perl. This is the place where the problem comes from.
I'll try to cut down the conf file to the minimum that still crashes, and post a full trace then.
If it takes too much of your time, just let me play with it and I'll post a proper fix tomorrow, hopefully this time doing it right for all configs.
__________________________________________________________________ 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]