after some investigation, I don't think it's perl. if I set PERL_HASH_SEED to some value, everything is ok, and this patch fixes the segfault

--- src/modules/perl/mod_perl.c 6 Aug 2003 06:46:35 -0000       1.175
+++ src/modules/perl/mod_perl.c 11 Aug 2003 13:52:58 -0000
@@ -33,7 +33,7 @@
     /* check if there is a specific hash seed passed via the env var
      * and if that's the case -- use it */
     apr_status_t rv = apr_env_get(&s, "PERL_HASH_SEED", p);
-    if (rv != APR_ENOTIMPL) {
+    if (rv == APR_SUCCESS) {

which seems like a better check anyway.


Sounds good, since this is optional. please commit.

done



So with this patch everything works just fine without you setting PERL_HASH_SEED?

yup, with and without random PERL_HASH_SEED values in my env, as well as odd values such as 0 and just PERL_HASH_SEED=


May be it should do:

while (s && isSPACE(*s)) s++;

when it comes to C style, I have no opinions (yet :)



so, maybe you have PERL_HASH_SEED set in your env someplace?


No, I don't have it.

hmph.


--Geoff


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to