Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: t/perl/ithreads.t revisited: msg#00214

apache.mod-perl.devel

Subject: Re: t/perl/ithreads.t revisited

Steve Hay wrote:
Next I want you to try cutting off things from startup files and httpd.conf, to find whether it's some unrelated module that is loaded that causes the problem. I suspect that because the sister test t/perl/ithreads2.t doesn't fail, and it runs exactly the same code, but inside a dedicated interpreter pool, which doesn't load any other modules.



Will try (again), but I've tried this before and got nowhere with it :(



While trawling through the httpd.conf file I found a couple of what look like errors: Two places say "PERL_ITHREADS" instead of "PERL_USEITHREADS". Correcting these apparent mistakes fixes the broken test sequence previously reported!

Wow, you mean ithreads no longer fail? Here is the fix:

Index: t/response/TestModperl/setupenv.pm
===================================================================
--- t/response/TestModperl/setupenv.pm (revision 106595)
+++ t/response/TestModperl/setupenv.pm (working copy)
@@ -181,7 +181,7 @@

KeepAlive On

- <IfDefine PERL_ITHREADS>
+ <IfDefine PERL_USEITHREADS>
PerlInterpScope connection
</Ifdefine>

Index: t/response/TestApache/cgihandler.pm
===================================================================
--- t/response/TestApache/cgihandler.pm (revision 106595)
+++ t/response/TestApache/cgihandler.pm (working copy)
@@ -41,6 +41,6 @@
1;
__END__
SetHandler perl-script
-<IfDefine PERL_ITHREADS>
+<IfDefine PERL_USEITHREADS>
PerlInterpScope handler
</IfDefine>


After making this change I found that reload.t now fails test 2. This patch (against current CVS, since I can't get SVN working) fixes that:

Index: t/modules/reload.t
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/modules/reload.t,v
retrieving revision 1.4
diff -u -u -r1.4 reload.t
--- t/modules/reload.t 11 Sep 2004 01:02:28 -0000 1.4
+++ t/modules/reload.t 26 Nov 2004 18:05:21 -0000
@@ -53,7 +53,7 @@
touch_mtime($test_file);

{
- my $expected = join '', map { "$_:" . uc($_) . "\n" } sort @tests;
+ my $expected = join '', map { "$_:$_\n" } sort @tests;
my $received = get_body($same_interp, \&GET, $location);
$skip++ unless defined $received;
skip_not_same_interp(

I'll look at this.

--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation