Stas Bekman wrote:
Philippe,

there is a problem with this code:

MP_CMD_SRV_DECLARE(post_config_requires)
{
[...]
#ifdef USE_ITHREADS
             if (modperl_is_running()) {
                 require->perl = scfg->mip->parent->perl;
             }
#endif

so if perl is not yet running, (which is by chance not a case with our test suite) those perls will be never registered and postconfig will be all segfaults.

Not quite, that's what modperl_config.c:modperl_config_prepare_PerlPostConfigRequire() is for. Detecting these at modperl startup time and binding the right, newly created Perl interpreters with these.

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

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to