Hi folks,
I can't work out why I'm getting this, but
everytime I hit this page I get a segfault.
Details:
-- From apache error log:
[Fri May 25 09:56:19 2001] [notice] Apache/1.3.17 (Unix) mod_perl/1.25 mod_macro/1.1.1
configured -- resuming normal operations
[Fri May 25 09:59:59 2001] [notice] child pid 14978 exit signal Segmentation fault (11)
-- httpd.conf
PerlModule Apache::Template
TT2IncludePath /vhosts/www.nicenickers.com/htdocs/dev/
TT2Params all
TT2EvalPerl on
<Files *.tt2>
SetHandler perl-script
PerlHandler Apache::Template
</Files>
I've tested a very simple hello world with TT2 and it
works fine, I've written a simple cgi script with XML::XPath
and the same xml data which worked fine as well, but the following gives
me a segmentation fault.
-- start tt2 template (filename: index.tt2)
[% USE xpath = XML.XPath("/vhosts/www.nicenickers.com/htdocs/dev/faq.xml") %]
List FAQs:<BR>
[% FOREACH faq = xpath.findnodes('/faqs/faq') %]
[% END %]
-- end tt2 template
It is the FOREACH which causes the segfault (i.e. if I don't have
that in there then I don't get a segfault).
Other details:
TT - 2.02
Apache::Template - 0.02
XML::XPath - 1.09
Linux XXXX.cuckoo.org 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586 unknown
Redhat install, apache + mod_perl + mod_macro installed by hand not rpm.
Any help, or tips on how to debug would be much appreciated.
I have a feeling that I mush have fecked an install of something,
and I've tried reinstalling all modules, but to no avail.
Thanks for any help or insight.
Cheers
Leo