[Petal] Petal and mod_perl

William McKee william@knowmad.com
Wed, 31 Jul 2002 14:52:09 -0400


Ok, I've made some progress into debugging my seg faults under mod_perl. I'm 
using XML::Parser v2.31 which I reinstalled and retested with no errors. I followed 
the instructions in the guide to run Apache with Interactive mod_perl Debugging 
(see http://perl.apache.org/docs/1.0/guide/debug.html for details).

Here is the output I received:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  <snip earlier code>
20:     my $html = $template->process (
21:             env => \%ENV,
22:             date => scalar localtime
23:     );
  DB<2>
Signal SEGV at /usr/local/lib/perl/5.6.1/XML/Parser.pm line 184
        XML::Parser::parse('XML::Parser=HASH(0x8602c24)', '<html>^M^J  
<head>^M^
J    <meta name="generator" content="HTML Tidy,...') called at /usr/local/share/
perl/5.6.1/Petal/Parser/XMLWrapper.pm line 38
        
Petal::Parser::XMLWrapper::process('Petal::Parser::XMLWrapper=HASH(0x848
3a84)', 'SCALAR(0x8483904)') called at /usr/local/share/perl/5.6.1/Petal/Canonic
alizer.pm line 40
        Petal::Canonicalizer::process('Petal::Canonicalizer', 'Petal::Parser::XM
LWrapper=HASH(0x8483a84)', 'SCALAR(0x8483904)') called at 
/usr/local/share/perl/
5.6.1/Petal.pm line 367
        Petal::_canonicalize('Petal=HASH(0x80ec1f4)', 'Petal::Parser::XMLWrapper
') called at /usr/local/share/perl/5.6.1/Petal.pm line 357
        eval {...} called at /usr/local/share/perl/5.6.1/Petal.pm line 357
        Petal::_canonicalize('Petal=HASH(0x80ec1f4)') called at /usr/local/share
/perl/5.6.1/Petal.pm line 266
        Petal::_code_disk_cached('Petal=HASH(0x80ec1f4)') called at /usr/local/s
hare/perl/5.6.1/Petal.pm line 307
        Petal::_code_memory_cached('Petal=HASH(0x80ec1f4)') called at /usr/local
/share/perl/5.6.1/Petal.pm line 168
        Petal::process('Petal=HASH(0x80ec1f4)', 'env', 'HASH(0x80f63e4)', 'date'
, 'Wed Jul 31 14:23:37 2002') called at (eval 45)[/usr/local/lib/perl/5.6.1/Apac
he/Registry.pm:183] line 20
        
Apache::ROOT::_7equeens::cgi::petaltest_2ecgi::handler('Apache=SCALAR(0x
82f1d94)') called at /usr/local/lib/perl/5.6.1/Apache/Registry.pm line 149
        eval {...} called at /usr/local/lib/perl/5.6.1/Apache/Registry.pm line 1
49
        Apache::Registry::handler('Apache=SCALAR(0x82f1d94)') called at /dev/nul
l line 0
        eval {...} called at /dev/null line 0
Aborted
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Line 184 in XML::Parser is an eval statement (the root of all evils!!). I haven't done 
any further investigation yet but wanted to pass this on to the list to see if anyone 
has any feedback.

Thanks,
William

-- 
 Lead Developer
 Knowmad Services Inc. || Internet Applications & Database Integration
 http://www.knowmad.com