Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqlexpress database file auto-creation error, dbf2mysql parameter, WWWXXXAPC, wwwxxxAPC, How to unsubscrube from dategen spam, docmd.close 2585, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO

Links

XODOX
Impressum

#1: APR::Table sporadic error

Posted on 2011-05-06 17:24:18 by Jason Aubrey

--0015174c190c849b2004a29d16dc
Content-Type: text/plain; charset=UTF-8

Hi All,

We have a modperl application that is an online homework system for math
courses called webwork. My installation and a few others have seen a
sporadic error from APR::Table that nobody quite knows how to diagnose.
Here are two typical examples:

Example 1:
Can't locate object method "get" via package "APR::Table" at
[WW]/lib/Apache/WeBWorK.pm line 74
Died within AnswerEvaluator::evaluate called at line 1 of (eval 1321)
System: Ubuntu 8.04, Apache 2.2

Example 2:
Failed to initialize course environment: Could not evaluate global
environment file /opt/webwork/webwork2/conf/global.conf: Can't locate object
method "get" via package "APR::Table" at
/opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 74.
RHEL 5 with RedHat's build of Apache 2.2.3. 1 GB RAM, perl-status shows
ARP::Table is loaded.
APR::Table 0.009000 Fri Sep 19 04:30:28 2008
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /APR/Table.pm

I'm hoping you might be able to provide some suggestions of where to start
looking for the source of this problem.

The modperl handler is here:

http://webwork.maa.org/viewvc/system/trunk/webwork2/lib/Apac he/WeBWorK.pm?view=markup

The error was not seen (and has not been seen) running mod_perl 1. Here is
a report from one user:

We've seen the APR::Table error sporadically, and have found it to be
> chronic and page load dependent. We've found in every case that if we reload
> the page the error will go away. Our hypothesis is that it's probably a
> thread initialization problem, and that it shows up when the apache process
> hands the WeBWorK job off to a new thread that doesn't have all of the
> required Perl loaded before the it tries to execute the WeBWorK request.
> That said, we don't know much about thread management in apache, so we don't
> know if that's even credible.


Any hints/tips/ideas would be very much appreciated.

Thanks,
Jason

--0015174c190c849b2004a29d16dc
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi All,<br><br>We have a modperl application that is an online homework sys=
tem for math courses called webwork.  My installation and a few others=
have seen a sporadic error from APR::Table that nobody quite knows how to =
diagnose.  Here are two typical examples:<br>

<br>Example 1:<br>Can&#39;t locate object method &quot;get&quot; via packag=
e &quot;APR::Table&quot; at [WW]/lib/Apache/WeBWorK.pm line 74<br>Died with=
in AnswerEvaluator::evaluate called at line 1 of (eval 1321)<br>System: Ubu=
ntu 8.04, Apache 2.2<br>

<br>Example 2:<br>Failed to initialize course environment: Could not evalua=
te global environment file /opt/webwork/webwork2/conf/global.conf: Can&#39;=
t locate object method &quot;get&quot; via package &quot;APR::Table&quot; a=
t /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 74.<br>

RHEL 5 with RedHat&#39;s build of Apache 2.2.3. 1 GB RAM, perl-status shows=
ARP::Table is loaded.<br>APR::Table 0.009000 Fri Sep 19 04:30:28 2008 /=
usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/ APR/Table.pm<br=
>

<br>I&#39;m hoping you might be able to provide some suggestions of where t=
o start looking for the source of this problem.<br><br>The modperl handler =
is here: <br><br><a href=3D"http://webwork.maa.org/viewvc/system/trunk/webw=
ork2/lib/Apache/WeBWorK.pm?view=3Dmarkup">http://webwork.maa .org/viewvc/sys=
tem/trunk/webwork2/lib/Apache/WeBWorK.pm?view=3Dmarkup</a><br>

<br>The error was not seen (and has not been seen) running mod_perl 1.=C2=
=A0 Here is a report from one user:<br><br><blockquote style=3D"margin: 0pt=
0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1e=
x;" class=3D"gmail_quote">

We&#39;ve seen the APR::Table error sporadically, and have found it to be c=
hronic and page load dependent. We&#39;ve found in every case that if we re=
load the page the error will go away. Our hypothesis is that it&#39;s proba=
bly a thread initialization problem, and that it shows up when the apache p=
rocess hands the WeBWorK job off to a new thread that doesn&#39;t have all =
of the required Perl loaded before the it tries to execute the WeBWorK requ=
est. That said, we don&#39;t know much about thread management in apache, s=
o we don&#39;t know if that&#39;s even credible.</blockquote>

<div><br>Any hints/tips/ideas would be very much appreciated.<br><br>Thanks=
,<br>Jason <br></div>

--0015174c190c849b2004a29d16dc--

Report this message

#2: Re: APR::Table sporadic error

Posted on 2011-05-06 18:01:14 by torsten.foertsch

On Friday, May 06, 2011 17:24:18 Jason Aubrey wrote:
> Any hints/tips/ideas would be very much appreciated.

Are you really sure (I mean really really) that APR::Table is loaded? I=20
see you load Apache2::Log but nothing about APR::Table.

I think if you replace line 74

my $warnings =3D $r->notes->get("warnings");

by

my $warnings =3D eval {$r->notes->get("warnings")};
if( $@ ) {
warn "APR::Table is '$INC{q{APR/Table.pm}}'";
die $@;
}

you will see that it is not loaded.

If you use a threaded Perl make sure every interpreter loads APR::Table.=20
Do you by chance use PerlOptions +Parent in a VHost?

Torsten F=F6rtsch

=2D-=20
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Report this message

#3: Re: APR::Table sporadic error

Posted on 2011-05-06 18:05:57 by Jason Aubrey

--0015174c190c78f8b904a29daba7
Content-Type: text/plain; charset=UTF-8

>
> my $warnings = eval {$r->notes->get("warnings")};
> if( $@ ) {
> warn "APR::Table is '$INC{q{APR/Table.pm}}'";
> die $@;
> }
>
> you will see that it is not loaded.
>
>
Thanks Torsten - we'll try this out.

If you use a threaded Perl make sure every interpreter loads APR::Table.
> Do you by chance use PerlOptions +Parent in a VHost?
>
> No, the typical configuration is like this:

http://webwork.maa.org/viewvc/system/trunk/webwork2/conf/web work.apache2-config.dist?revision=6531&view=markup

Thanks again,
Jason

--0015174c190c78f8b904a29daba7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"m=
argin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); paddin=
g-left: 1ex;">
<br>
 my $warnings =3D eval {$r-&gt;notes-&gt;get(&quot;warnings&quot;)};<=
br>
 if( $@ ) {<br>
   warn &quot;APR::Table is &#39;$INC{q{APR/Table.pm}}&#39;&quot=
;;<br>
   die $@;<br>
 }<br>
<br>
you will see that it is not loaded.<br>
<br></blockquote><div><br>Thanks Torsten - we&#39;ll try this out. <br><br>=
</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex;=
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If you use a threaded Perl make sure every interpreter loads APR::Table.<br=
>
Do you by chance use PerlOptions +Parent in a VHost?<br>
<br></blockquote><div>No, the typical configuration is like this:<br><br><a=
href=3D"http://webwork.maa.org/viewvc/system/trunk/webwork2/ conf/webwork.a=
pache2-config.dist?revision=3D6531&amp;view=3Dmarkup">http:/ /webwork.maa.or=
g/viewvc/system/trunk/webwork2/conf/webwork.apache2-config.d ist?revision=3D=
6531&amp;view=3Dmarkup</a><br>

<br>Thanks again,<br>Jason<br> <br></div></div>

--0015174c190c78f8b904a29daba7--

Report this message

#4: Re: APR::Table sporadic error

Posted on 2011-05-06 20:18:35 by Jason Aubrey

--0015174bde8ecd453c04a29f85ca
Content-Type: text/plain; charset=UTF-8

Additional data:

One effected installation (Ubuntu 10.04.2, Apache 2.2.14, Perl 5.10.1,
libapache2-mod-perl2 2.0.4) reports that that eval
{$r->notes->get("warnings")} did not produce an error ($@ was not set) in
his case, but that this problem went away for him after reverting the ubuntu
perl updates from May 4 (http://www.ubuntu.com/usn/usn-1129-1/).

Those perl updates on Ubuntu seem to have triggered this error for the two
installations that reported it today, but the strange thing is that this is
not the first time we've seen this error - it was reported on a CentOS
installation and two RHEL 5 installations in January.

Perhaps RH et. al. applied the patches for the SVE's in January and Ubuntu
just now, and one of those changes is causing this. Still, we don't know,
so any other possible leads will be eagerly followed.

Jason

2011/5/6 Jason Aubrey <aubreyja@gmail.com>

>
>
>> my $warnings = eval {$r->notes->get("warnings")};
>> if( $@ ) {
>> warn "APR::Table is '$INC{q{APR/Table.pm}}'";
>> die $@;
>> }
>>
>> you will see that it is not loaded.
>>
>>
> Thanks Torsten - we'll try this out.
>
> If you use a threaded Perl make sure every interpreter loads APR::Table.
>> Do you by chance use PerlOptions +Parent in a VHost?
>>
>> No, the typical configuration is like this:
>
>
> http://webwork.maa.org/viewvc/system/trunk/webwork2/conf/web work.apache2-config.dist?revision=6531&view=markup
>
> Thanks again,
> Jason
>
>

--0015174bde8ecd453c04a29f85ca
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Additional data:<br><br>One effected installation (Ubuntu 10.04.2, Apache 2=
..2.14, Perl 5.10.1, libapache2-mod-perl2 2.0.4) reports that that eval {$r-=
&gt;notes-&gt;get(&quot;warnings&quot;)} did not produce an error ($@ was n=
ot set)  in his case, but that this problem went away for him after re=
verting the ubuntu perl updates from May 4 (<a href=3D"http://www.ubuntu.co=
m/usn/usn-1129-1/">http://www.ubuntu.com/usn/usn-1129-1/</a>).  <br>

<br>Those perl updates on Ubuntu seem to have triggered this error for the =
two installations that reported it today, but the strange thing is that thi=
s is not the first time we&#39;ve seen this error - it was reported on a Ce=
ntOS installation and two RHEL 5 installations in January.  <br>

<br>Perhaps RH et. al. applied the patches for the SVE&#39;s in January and=
Ubuntu just now, and one of those changes is causing this.  Still, we=
don&#39;t know, so any other possible leads will be eagerly followed.<br><=
br>

Jason<br><br><div class=3D"gmail_quote">2011/5/6 Jason Aubrey <span dir=3D"=
ltr">&lt;<a href=3D"mailto:aubreyja@gmail.com">aubreyja@gmail.com</a>&gt;</=
span><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid =
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><div class=3D"gmail_quote"><div class=3D"im"><blockquote class=3D"gmail=
_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt=
0pt 0.8ex; padding-left: 1ex;">
<br>
 my $warnings =3D eval {$r-&gt;notes-&gt;get(&quot;warnings&quot;)};<=
br>
 if( $@ ) {<br>
   warn &quot;APR::Table is &#39;$INC{q{APR/Table.pm}}&#39;&quot=
;;<br>
   die $@;<br>
 }<br>
<br>
you will see that it is not loaded.<br>
<br></blockquote></div><div><br>Thanks Torsten - we&#39;ll try this out. <b=
r><br></div><div class=3D"im"><blockquote class=3D"gmail_quote" style=3D"bo=
rder-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding=
-left: 1ex;">


If you use a threaded Perl make sure every interpreter loads APR::Table.<br=
>
Do you by chance use PerlOptions +Parent in a VHost?<br>
<br></blockquote></div><div>No, the typical configuration is like this:<br>=
<br><a href=3D"http://webwork.maa.org/viewvc/system/trunk/webwork2/conf/web=
work.apache2-config.dist?revision=3D6531&amp;view=3Dmarkup" target=3D"_blan=
k">http://webwork.maa.org/viewvc/system/trunk/webwork2/conf/ webwork.apache2=
-config.dist?revision=3D6531&amp;view=3Dmarkup</a><br>


<br>Thanks again,<br>Jason<br> <br></div></div>
</blockquote></div><br>

--0015174bde8ecd453c04a29f85ca--

Report this message