Re: Reloading Modules Problem [mod_perl2]

[prev] [thread] [next] [Date index for 2004/12/29]

From: Vincent Moneymaker
Subject: Re: Reloading Modules Problem [mod_perl2]
Date: 03:03 on 29 Dec 2004
>>>If 1.99_16 works and 1.99_17 doesn't that would probably be the change to
>>>blame:
>>>
>>>Added ModPerl::Util::unload_package() to remove a loaded package
>>>as thoroughly as possible by clearing it's stash. [Gozer]
>>>
>>>Please confirm that first. Next let's take some specific module, put it 
>>>in
>>>PerlSetVar ReloadModules enable the debug and show us the relevant bits
>>>from the log, so it'll be easier to visualize the problem.
>>>
>>
>>
>>Unfortuantely, I've tried versions 1.99_14, 1.99_15 and 1.99_16 but they 
>>all
>>have problems with my use of multiple 'PerlSetVar's when used as part of 
>>an
>>array of VirtualHost's that are created within a <PERL> section in the
>>httpd.conf file.  This 'PerlSetVar' problem has been fixed in versions
>>1.99_17 and 1.99_19 but those versions have the reload problem that I have
>>been encountering -- hence my fallback to the 1.99_12 version.
>>
>>However, I will follow up on each of your suggestions including 
>>downloading
>>the source you pointed to and will let you know the results.
>
>Right, I just want you to test this specific problem, so we can single out 
>the change that affected your code, before we proceed further.
>

Okay, mod_perl 1.99_16 reloading works.  So the reloading problem starts 
with the 1.99_17 version as you suspected.  Here is a snippet from my 
error_log showing the reloading messages that appear when the Reloading 
Debugger is turned on for version 1.99_19:

This is the error_log entry for the module whose changes are not showing up

Apache::Reload: process 22533 reloading Apache::Menus from Apache/Menus.pm
        Apache::Reload::handler('Apache::RequestRec=SCALAR(0xc331c20)') 
called at /opt/prod/apache/Apache/Menus.pm line 0
        eval {...} called at /opt/prod/apache/Apache/Menus.pm line 0

And the following is the error_log entry for a module changed at the same 
time whose changes do show up

Apache::Reload: process 22533 reloading Apache::Abracadabra from 
Apache/Abracadabra.pm
        Apache::Reload::handler('Apache::RequestRec=SCALAR(0xc331c20)') 
called at /opt/prod/apache/Apache/Abracadabra.pm line 0
        eval {...} called at /opt/prod/apache/Apache/Abracadabra.pm line 0



        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

Reloading Modules Problem [mod_perl2]
Vincent Moneymaker 22:04 on 28 Dec 2004

Re: Reloading Modules Problem [mod_perl2]
Stas Bekman 22:31 on 28 Dec 2004

Re: Reloading Modules Problem [mod_perl2]
Stas Bekman 22:53 on 28 Dec 2004

Re: Reloading Modules Problem [mod_perl2]
Vincent Moneymaker 03:03 on 29 Dec 2004

Re: Reloading Modules Problem [mod_perl2]
Stas Bekman 17:13 on 29 Dec 2004

Re: Reloading Modules Problem [mod_perl2]
Philippe M. Chiasson 18:57 on 04 Jan 2005

Re: Reloading Modules Problem [mod_perl2]
Vincent Moneymaker 04:28 on 05 Jan 2005

Re: Reloading Modules Problem [mod_perl2]
Philippe M. Chiasson 08:17 on 05 Jan 2005

Re: Reloading Modules Problem [mod_perl2]
Vincent Moneymaker 19:54 on 04 Jan 2005

Re: Reloading Modules Problem [mod_perl2]
Stas Bekman 20:10 on 04 Jan 2005

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52