Hello,

I'm running Debian Sid/unstable, which ships perl 5.8.0 and axkit 1.6.

I'm trying to process simple xsp files, but all I get is one more apache
process looping forever eating CPU.

I've tried to narrow down everything to the minimum, here is the current
situation:

All is going on in ~/public_html/bfsf/test

If I try to download http://marvin.casa/~enrico/bfsf/test/test.xml, I
obtain the transformed XML file.

If I try to download http://marvin.casa/~enrico/bfsf/test/test.xsp, the
server loops forever.

User directories are configures with AllowOverride All

This is .htaccess:
------------------------------
PerlModule AxKit
SetHandler perl-script
PerlHandler AxKit

AxAddStyleMap application/x-xsp         Apache::AxKit::Language::XSP
AxAddStyleMap text/xsl                  Apache::AxKit::Language::Sablot

AddHandler axkit .xml
AddHandler axkit .xsp
AddType text/xml .xsp

AxDebugLevel 10
------------------------------


This is test.xml:
------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>

<test/>
------------------------------


This is test.xsp:
------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>

<xsp:page
        xmlns:xsp="http://apache.org/xsp/core/v1";
        xmlns:web="http://axkit.org/NS/xsp/webutils/v1";
>
<test/>
</xsp:page>
------------------------------


This is test.xsl:
------------------------------
<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns="http://www.w3.org/TR/xhtml1/strict";
>

<xsl:template match="/">
TEST:<xsl:copy-of select="." />
</xsl:template>

</xsl:stylesheet>
------------------------------


These are the error.log lines resulting by the looping session:
------------------------------
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] handler called for 
/~enrico/bfsf/test/test.xsp
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Content Provider 
Override: Apache::AxKit::Provider::File
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] [req] File Provider 
given $r: /home/enrico/public_html/bfsf/test/test.xsp
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] checking if we process 
this resource
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] media: screen, 
preferred style: #default
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Cache: key = 
24a6468de738fa047278504f203e5d1b
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Can't create cache 
directory '/home/enrico/public_html/bfsf/test/.xmlstyle_cache': Permission denied
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Can't create cache 
directory '/home/enrico/public_html/bfsf/test/.xmlstyle_cache/24': No such file or 
directory
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Can't create cache 
directory '/home/enrico/public_html/bfsf/test/.xmlstyle_cache/24/a6': No such file or 
directory
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] getting styles and 
external entities from the XML
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] styles not cached - 
calling $provider->get_styles()
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] using XS get_styles 
(libxml2)
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] calling 
xs_get_styles_fh()
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] calling 
xs_get_styles_str()
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] parse_pi: href = NULL
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] parse_pi: type = 
application/x-xsp
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] parse_pi: href = 
test.xsl
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] parse_pi: type = 
text/xsl
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] xs_get_styles returned: 
, , {http://apache.org/xsp/core/v1}page
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Calling 
GetMatchingProcessors with (screen, , , , {http://apache.org/xsp/core/v1}page)
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] get_styles: loading 
style modules
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] get_styles: looking for 
mapping for style type: 'application/x-xsp'
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] get_styles: looking for 
mapping for style type: 'text/xsl'
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] cache doesn't exist
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] some condition failed. 
recreating output
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] styles: 
Apache::AxKit::Language::XSP(NULL)
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] styles: 
Apache::AxKit::Language::Sablot(test.xsl)
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] Style Provider 
Override: Apache::AxKit::Provider::File
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] [uri] File Provider 
looking up uri NULL
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] [uri] File Provider set 
filename to /home/enrico/public_html/bfsf/test/NULL
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] about to execute: 
Apache::AxKit::Language::XSP::handler
[Sun Dec  1 23:41:49 2002] [warn] [client 192.168.1.2] [AxKit] XSP: parsing fh
[Sun Dec  1 23:41:55 2002] [notice] caught SIGTERM, shutting down
------------------------------

The very same setup works well on a Debian woody, with perl 5.6.1 and
axkit 1.5.

Is there some way I can make it work on the last Debian sid?  Is there
some bug in the sid packages I should report to the maintainer?


Bye, Enrico


--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to