Re: mod_perl problem?!

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wednesday, 28 September 2011 00:46:51 Marco Walther wrote:
> Do you have any idea where I might start looking? I don't have much 
> insight into the Perl or mod_perl internals, but I played which large 
> C-based packages before;-)

I have seen your mail on the user's list. My first thought had been that 
there might be something fishy with PERL_USE_SAFE_PUTENV. But your perl 
is compiled *with* that flag (as is mine). I haven't tried perl 5.14.1. 
Perhaps something has happened to PL_envgv in that version.

ENVHV is defined in modperl_env.h as GvHV(PL_envgv).

However, since PL_envgv is just a member of the current interpreter I 
rather think that in 5.14.1 that thing is not set at this point.

You could try to put a

  PERL_SET_CONTEXT(aTHX);

in mod_perl.c:modperl_boot() just before modperl_env_clear(aTHX); is 
called.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.