Edouard Lagache wrote:
Thank you Stas!

Your diagnosis is right on the money!


I don't know why your /dev/random blocks. May be a broken kernel config?

this should print 10 random chars from perl:

% perl -le 'open I, "/dev/random"; read I, $d, 10; print $d'


Indeed it locks up and prints nothing, failing as does in the mod_perl
test suite - so there is something amiss in my kernel setup - NOT in mod_perl!

That's good.


I've found this reference:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=103049
and it says that apr-0.9.3-14 solves the problem. But 2.0.48 comes with apr 0.9.5 and supposedly should use /dev/urandom. Is it possible that you have libapr installed elsewhere and it gets loaded first? Scan for libapr.*.so files


locate libapr | grep so

Your patch below doesn't quite work, but it's close enough to get through
the test suite and thus install.

What part doesn't work? I'm seriously considering to drop ARP::UUID from Apache-Test and just use a plain rand.


Thanks again for all your help!  This is my problem to solve now.  You
all can get back to work with everything involved in getting the next
release out the door!

Unfortunately, you aren't the first one to hit this problem and not the last one. So ideally we should find a way for the application to figure out those things before it hangs and tell the user how to fix them or at least print out the diagnosys information to help resolve the problem, without a user needed to contact this list.


I've emailed apr-dev to ask whether apr_uuid_get can be adjusted to have some sort of timeout mechanism.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
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



Reply via email to