develooper Front page | perl.perl5.porters | Postings from January 2015

[perl #123687] Consting the core magic vtables breaks mod_perl

Thread Next
Steve Hay
January 28, 2015 01:30
[perl #123687] Consting the core magic vtables breaks mod_perl
Message ID:
# New Ticket Created by  Steve Hay 
# Please include the string:  [perl #123687]
# in the subject line of all future correspondence about this issue. 
# <URL: >

The following commit causes mod_perl (svn trunk) to fail on startup (on Windows, at least) using 5.21.8:

It works fine on the same system (VC++ 2010, with httpd-2.4.10) using 5.21.7.

I get an access violation in modperl_env_init() when trying to replace the now const PL_vtbls with its own versions:

void modperl_env_init(void)
    /* save originals */
    StructCopy(&PL_vtbl_env, &MP_PERL_vtbl_env, MGVTBL);
    StructCopy(&PL_vtbl_envelem, &MP_PERL_vtbl_envelem, MGVTBL);

    /* replace with our versions */
    StructCopy(&MP_vtbl_env, &PL_vtbl_env, MGVTBL);
    StructCopy(&MP_vtbl_envelem, &PL_vtbl_envelem, MGVTBL);

Is this diddling with perl's globals an unreasonable thing for mod_perl to be trying to do? I fear the answer may be yes...

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About