Difference between revisions of "APR::Table error"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{| border="1px" valign="top"
 
{| border="1px" valign="top"
 
|-style="text-align:left"
 
|-style="text-align:left"
! OS !! Perl !! Perl Compile Options !! Apache !! mod_perl !! Example
+
! OS !! Arch !! Perl !! Perl Compile Options !! Apache !! mod_perl !! Example !! Notes
 
|- valign="top"
 
|- valign="top"
| Ubuntu 8.04 || 5.8.8 || style="width:15%;"| MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API || 2.2.8-1ubuntu0.21 || 2.0.3-2ubuntu2 || style="width:15%; font-size: 8pt;" | From Library/CollegeOfIdaho/setAlgebra_05_01_IntroPolynomials/51IntAlg_09_Polynomial.pg as follows:
+
| Ubuntu 8.04 || 32 bit || 5.8.8 || style="width:10%;"| MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API || 2.2.8-1ubuntu0.21 || 2.0.3-2ubuntu2 || style="width:15%; font-size: 8pt;" | From Library/CollegeOfIdaho/setAlgebra_05_01_IntroPolynomials/51IntAlg_09_Polynomial.pg as follows:
   
 
* Error in Translator.pm::process_answers: Answer AnSwEr2: |13984200|
 
* Error in Translator.pm::process_answers: Answer AnSwEr2: |13984200|
Line 17: Line 17:
 
* Use of uninitialized value in numeric gt (>) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 254.
 
* Use of uninitialized value in numeric gt (>) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 254.
 
|- valign="top"
 
|- valign="top"
|| RHEL 5 || 5.8.8 || style="width:15%;" | MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API || httpd-2.2.3-43.el5 || mod_perl-2.0.4-6.el5 || style="width:15%; font-size: 8pt;" |
+
|| RHEL 5 || 64 bit || 5.8.8 || style="width:15%;" | MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API || httpd-2.2.3-43.el5 || mod_perl-2.0.4-6.el5 || style="width:15%; font-size: 8pt;" | ? ||
  +
|- valign="top"
  +
|| CentOS 5 || 64 bit || 5.8.8 || style="width:15%;" | ? || 2.2.3 || ? || style='width:15%; font-size:8pt;' | "Failed to initialize course environment: Could not evaluate global environment file /home/john/webworkdev/webwork2/conf/global.conf: Can't locate object method "get" via package "APR::Table" at /home/john/webworkdev/webwork2/lib/Apache/WeBWorK.pm line 81."
  +
  +
An additional error message appeared with extra debugging statements & Perl 5.10.1:
  +
  +
"Failed to read include file /home/john/webworkdev/webwork2/conf/database.conf (has it been created from the corresponding .dist file?): Cannot allocate memory at (eval 1214) line 12."
  +
| style="width:15%; font-size:8pt;" | Not reproducible when running the problematic sections in the shell. Needs to be paired with apache/mod_perl.
  +
Only shows up on 64-bit, 32-bit CentOS 5 is fine.
  +
Shows up in latest Perl 5.8.8 & 5.10.1 & 5.12.2
  +
Probably not a problem with Perl modules, updating to the latest with CPAN didn't solve this.
  +
mod_perl is the same version in both Ubuntu and CentOS, since the latest Ubuntu works fine, it probably isn't mod_perl.
 
|-
 
|-
 
|}
 
|}

Revision as of 15:35, 12 September 2011

OS Arch Perl Perl Compile Options Apache mod_perl Example Notes
Ubuntu 8.04 32 bit 5.8.8 MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API 2.2.8-1ubuntu0.21 2.0.3-2ubuntu2 From Library/CollegeOfIdaho/setAlgebra_05_01_IntroPolynomials/51IntAlg_09_Polynomial.pg as follows:
  * Error in Translator.pm::process_answers: Answer AnSwEr2: |13984200|
  * 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 33003)
  * Error in Translator.pm::process_answers: Answer AnSwEr2:
  * Answer evaluators must return a hash or an AnswerHash type, not type || at /opt/webwork/pg/lib/WeBWorK/PG/Translator.pm line 1175
  * Use of uninitialized value in numeric ge (>=) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 249.
  * Use of uninitialized value in pattern match (m//) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 250.
  * Use of uninitialized value in numeric ge (>=) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 250.
  * Use of uninitialized value in numeric ge (>=) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 251.
  * Use of uninitialized value in numeric gt (>) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 251.
  * Use of uninitialized value in numeric gt (>) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 254.
RHEL 5 64 bit 5.8.8 MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API httpd-2.2.3-43.el5 mod_perl-2.0.4-6.el5 ?
CentOS 5 64 bit 5.8.8 ? 2.2.3 ? "Failed to initialize course environment: Could not evaluate global environment file /home/john/webworkdev/webwork2/conf/global.conf: Can't locate object method "get" via package "APR::Table" at /home/john/webworkdev/webwork2/lib/Apache/WeBWorK.pm line 81."

An additional error message appeared with extra debugging statements & Perl 5.10.1:

"Failed to read include file /home/john/webworkdev/webwork2/conf/database.conf (has it been created from the corresponding .dist file?): Cannot allocate memory at (eval 1214) line 12."

Not reproducible when running the problematic sections in the shell. Needs to be paired with apache/mod_perl.

Only shows up on 64-bit, 32-bit CentOS 5 is fine. Shows up in latest Perl 5.8.8 & 5.10.1 & 5.12.2 Probably not a problem with Perl modules, updating to the latest with CPAN didn't solve this. mod_perl is the same version in both Ubuntu and CentOS, since the latest Ubuntu works fine, it probably isn't mod_perl.