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

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

Thread Next
From:
Steve Hay
Date:
January 28, 2015 01:30
Subject:
[perl #123687] Consting the core magic vtables breaks mod_perl
Message ID:
rt-4.0.18-26468-1422408600-1243.123687-75-0@perl.org
# New Ticket Created by  Steve Hay 
# Please include the string:  [perl #123687]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123687 >


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

http://perl5.git.perl.org/perl.git/commit/c910fead78

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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About