Re: Reloading Modules Problem [mod_perl2]
[prev]
[thread]
[next]
[Date index for 2005/01/04]
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEF8A3B5CD71C615D884E7AE3
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Stas Bekman wrote:
> Vincent Moneymaker wrote:
>
>>Okay, mod_perl 1.99_16 reloading works. So the reloading problem starts
>>with the 1.99_17 version as you suspected.
>
> Perfect. So we most likely know the suspect.
Possibly a problem with clear_stash()
> [...]
>
> so both modules are located in the same directory, right? Can you reduce
> those module to the very minimum while one still reloads and the other
> doesn't and post them here, and I'll try to reproduce it here. Also please
> past the relevant bits from httpd.conf. Thanks.
I'd like to have look at what code you have in Apache/Menus.pm if that's possible.
Could you also try applying this small debugging patch and try again? Posting
the "[clear_stash]" log lines from your error_log back ?
Index: src/modules/perl/modperl_util.c
===================================================================
--- src/modules/perl/modperl_util.c (revision 124130)
+++ src/modules/perl/modperl_util.c (working copy)
@@ -781,7 +781,13 @@
if (strcmp(this_stash, package) == 0) {
hv_delete(stash, key, len, G_DISCARD);
}
+ else {
+ fprintf(stderr, "[clear_stash] skip foreign entry %s[%s](%s)\n", package, this_stash, key);
+ }
}
+ else {
+ fprintf(stderr, "[clear_stash] skip unsafe entry %s(%s)\n", package, key);
+ }
}
}
}
--------------------------------------------------------------------------------
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
--------------enigEF8A3B5CD71C615D884E7AE3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB2ucdyzKhB4jDpaURAir+AKC8o3gbZHGgAkIKOb4pHz6bbpdm6ACgi/Gf
oP3etZgIuW3Qe8IVdULSt2Q=
=gnU4
-----END PGP SIGNATURE-----
--------------enigEF8A3B5CD71C615D884E7AE3--
 |
(message missing)
|