On Thursday 06 February 2003 13:53, J�rg Walter wrote:
> On Thursday, 06. February 2003 13:02, Kjetil Kjernsmo wrote:
> > I tried to send a USR2 to the main apache-process first (whose pid
> > is in /var/run/apache.pid), but that apparently did nothing. Then,
> > I sent a USR2 to the child that was eating the CPU, and got the
> > following:
> >
> > [Thu Feb 6 12:58:54 2003] [warn] [client 195.1.208.96] [AxKit]
> > Caught an exception
> > [Thu Feb 6 12:58:54 2003] [error] [client 195.1.208.96] [AxKit]
> > [Error] caught SIGUSR2! at /usr/local/lib/perl/5.6.1/AxKit.pm line
> > 166 AxKit::__ANON__('USR2') called at (eval 86) line 11
> >
> > Apache::AxKit::Language::XSP::ROOT::var::www::index_2exsp::__ANON__
> >('Apache
> >
> >::AxKit::Language::XSP::ROOT::var::www::index_2exsp',
> >
> > 'AxKit::Apache=SCALAR(0x83cb880)',
> > 'Apache::Request=SCALAR(0x869b07c)',
> > 'XML::LibXML::Document=SCALAR(0x86ba460)') called at
> > /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XSP.pm line 173
> > eval {...} called at
> > /usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XSP.pm line 173
> > Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XS
> >P', 'AxKit::Apache=SCALAR(0x83cb880)',
> > 'Apache::AxKit::Provider::File=HASH(0x845ebc0)',
> > 'Apache::AxKit::Provider::File=HASH(0x84b5ed0)', 1) called at
> > /usr/local/lib/perl/5.6.1/AxKit.pm line 739
>
> [...]
>
> Well, the first line tells that your XSP page is called correctly.
> You don't have some kind of endless loop in there, do you?
Hmmmmm. Not that I can see.... Anyway, I made a stripped down example,
this should be small enough to post, I guess...:
package Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp;
use Apache;
use Apache::Constants qw(:common);
use XML::LibXML;
Apache::AxKit::Language::XSP::Page->import( qw(__mk_text_node
__mk_comment_node __mk_ns_element_node __mk_element_node) );#initialize
xsp namespace
use Apache::AxKit::Plugin::Session;
use Time::Piece;
# Evil hack to globally prepare a session object. Actually, it is quite
waterproof...
my $session;
{ my $handler = \&handler;
*handler = sub { $session = Apache->request->pnotes("SESSION"); goto
$handler; }; }
use Apache::AxKit::Plugin::Session;
use Time::Piece;
# Evil hack to globally prepare a session object. Actually, it is quite
waterproof...
my $global;
{ my $handler = \&handler;
*handler = sub { $global = Apache->request->pnotes("GLOBAL"); goto
$handler; }; }
#initialize xsp namespace
@Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp::ISA =
('Apache::AxKit::Language::XSP::Page');
sub xml_generator {
my $class = shift;
my ($r, $cgi, $document, $parent) = @_;
$parent = __mk_element_node($document, $parent, q|data|);
$parent = __mk_element_node($document, $parent, q|title|);
__mk_text_node($document, $parent, q|My Test Database|);
$parent = $parent->getParentNode;
$parent = __mk_element_node($document, $parent, q|div|);
__mk_text_node($document, $parent, "" . do {$cgi->param(q|username|)});
# non xsp tag
$parent = $parent->getParentNode;
$parent = $parent->getParentNode;
return OK;
}
It still exhibits the same behaviour... None of my code there, so I
don't think it is me... :-)
However, I thought I commented out everything that had to do with
Session, but apparently not...
Here's the backtrace:
[Thu Feb 6 15:43:17 2003] [error] [client 195.1.208.96] [AxKit]
[Backtrace] caught SIGUSR2! at /usr/local/lib/perl/5.6.1/AxKit.pm line
166
AxKit::__ANON__('USR2') called at (eval 86) line 18
Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp::__ANON__('Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp',
'AxKit::Apache=SCALAR(0x8240aa4)', 'Apache::Request=SCALAR(0x836c100)',
'XML::LibXML::Document=SCALAR(0x86a38a4)') called at
/usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XSP.pm line 173
eval {...} called at
/usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XSP.pm line 173
Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XSP',
'AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)',
'Apache::AxKit::Provider::File=HASH(0x8498f30)', 1) called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 739
AxKit::process_request('AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)', 'ARRAY(0x82f697c)',
undef) called at /usr/local/lib/perl/5.6.1/AxKit.pm line 461
AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)') called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 288
eval {...} called at /usr/local/lib/perl/5.6.1/AxKit.pm line 279
AxKit::main_handler('AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)') called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 193
AxKit::fast_handler('AxKit::Apache=SCALAR(0x8240aa4)') called at
/dev/null line 0
eval {...} called at /dev/null line 0
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error',
'-text', 'caught SIGUSR2! at /usr/local/lib/perl/5.6.1/AxKit.pm line
166^J^I...') called at /usr/local/lib/perl/5.6.1/AxKit.pm line 988
AxKit::prep_exception('caught SIGUSR2! at
/usr/local/lib/perl/5.6.1/AxKit.pm line 166^J^I...') called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 162
AxKit::__ANON__('caught SIGUSR2! at /usr/local/lib/perl/5.6.1/AxKit.pm
line 166^J^I...') called at /usr/share/perl/5.6.1/Carp.pm line 65
Carp::confess('caught SIGUSR2!') called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 166
AxKit::__ANON__('USR2') called at (eval 86) line 18
Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp::__ANON__('Apache::AxKit::Language::XSP::ROOT::var::www::test1_2exsp',
'AxKit::Apache=SCALAR(0x8240aa4)', 'Apache::Request=SCALAR(0x836c100)',
'XML::LibXML::Document=SCALAR(0x86a38a4)') called at
/usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XSP.pm line 173
eval {...} called at
/usr/local/lib/perl/5.6.1/Apache/AxKit/Language/XSP.pm line 173
Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XSP',
'AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)',
'Apache::AxKit::Provider::File=HASH(0x8498f30)', 1) called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 739
AxKit::process_request('AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)', 'ARRAY(0x82f697c)',
undef) called at /usr/local/lib/perl/5.6.1/AxKit.pm line 461
AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)') called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 288
eval {...} called at /usr/local/lib/perl/5.6.1/AxKit.pm line 279
AxKit::main_handler('AxKit::Apache=SCALAR(0x8240aa4)',
'Apache::AxKit::Provider::File=HASH(0x845aec8)') called at
/usr/local/lib/perl/5.6.1/AxKit.pm line 193
AxKit::fast_handler('AxKit::Apache=SCALAR(0x8240aa4)') called at
/dev/null line 0
eval {...} called at /dev/null line 0
Vennlig Tiddeli-bom,
Kjetil
--
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]