Skip Menu |
 

This queue is for tickets about the Apache-ASP CPAN distribution.

Report information
The Basics
Id: 81792
Status: new
Priority: 0/
Queue: Apache-ASP

People
Owner: Nobody in particular
Requestors: sotcha [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From sotcha [...] gmail.com Sat Dec 8 01: 27:35 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-6.219 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary=e89a8fb1f3beb1963004d0516cf9
Message-ID: <CANHYCAYs3A72KXriAcxFert+RsLw1D9b0emyqYF+CJ_29Rf_cw [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.219
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E3D42240A8B for <cpan-bug+Apache-ASP [...] hipster.bestpractical.com>; Sat, 8 Dec 2012 01:27:34 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yo3EudgwGmQ9 for <cpan-bug+Apache-ASP [...] hipster.bestpractical.com>; Sat, 8 Dec 2012 01:27:33 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id AC1B9240A89 for <bug-Apache-ASP [...] rt.cpan.org>; Sat, 8 Dec 2012 01:27:32 -0500 (EST)
Received: (qmail 12750 invoked by uid 103); 8 Dec 2012 06:27:31 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 8 Dec 2012 06:27:31 -0000
Received: from mail-ob0-f178.google.com (HELO mail-ob0-f178.google.com) (209.85.214.178) by 16.mx.develooper.com (qpsmtpd/0.84/v0.84-167-g4ed6cab) with ESMTP; Fri, 07 Dec 2012 22:27:27 -0800
Received: by mail-ob0-f178.google.com with SMTP id eh20so1056836obb.9 for <bug-Apache-ASP [...] rt.cpan.org>; Fri, 07 Dec 2012 22:27:21 -0800 (PST)
Received: by 10.60.0.199 with SMTP id 7mr4530573oeg.139.1354948041348; Fri, 07 Dec 2012 22:27:21 -0800 (PST)
Received: by 10.76.82.70 with HTTP; Fri, 7 Dec 2012 22:27:21 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+Apache-ASP [...] hipster.bestpractical.com
Subject: [ASP WARN] Can't call method "cleanup_register" on an undefined value
Return-Path: <sotcha [...] gmail.com>
X-RT-Mail-Extension: apache-asp
X-Original-To: cpan-bug+Apache-ASP [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+bmreMSyKXJ2FejRF0vhSrjXtE8Mxvxqlx3k7msfRyc=; b=IIvtAaaprDQCPs6DjnbD/S/ePtE780UIIMvqtMlW8UEIaHJiP0Kc7buF0ER8ea5Irq nXRYZX79z5n7NoGFAS/DZ6PqSKxyVHihT8jx1oVH8seLMpS3cNk+Ve5v7OoinNkmEmN5 jjPMAygqUksU3PdaQuGKS1HZH5nkHonblnu6OQMLhNSPKY8IiaVMLS762f/w8yEQ64Cl y6VPc1q9MmPqxNHSWGJH/4TSY3YUQvEpr8PGmuYZHHLUsUhbpuaJajedU6Y6aNkCl2Xa Rns4LFpLxmW05uW3PN4WXuve9fJmDlkHiy6bihggeHKvY3xsClo63FVX8bAtA296mJjz wSLQ==
Date: Sat, 8 Dec 2012 08:27:21 +0200
X-Spam-Level:
To: bug-Apache-ASP [...] rt.cpan.org
From: Chatzianagnostou Sotirios <sotcha [...] gmail.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 2583
Download (untitled) / with headers
text/plain 2.5k
Distribution: Apache-ASP-2.62 Perl : This is perl 5, version 14, subversion 2 (v5.14.2) built for i486-linux-gnu-thread-multi-64int OS : Linux dragon 3.4-6.slh.1-aptosid-686 #1 SMP PREEMPT Fri Jul 20 00:47:01 UTC 2012 i686 GNU/Linux I have apache2, mod_perl2 and apache-asp, all installed from debian repositories. An error occurs when trying to use Loader on the apache startup using something like this on a perl startup, when mod_perl2 is being used. use Apache::ASP(); Apache::ASP->Loader('/var/www/mobile_deals', ".(asp|asa)\$", Global => '.', Debug => 3, # see system output when starting apache UseStrict => 1, ); Then I can see on the apache's error file [ASP WARN] Can't call method "cleanup_register" on an undefined value at /usr/share/perl5/Apache/ASP.pm line 517. at /usr/share/perl5/Apache/ASP.pm line 517 Apache::ASP::RegisterCleanup('Apache::ASP=HASH(0xb89a5fb8)', 'CODE(0xb8b15004)') called at /usr/share/perl5/Apache/ASP.pm line 383 Apache::ASP::new('Apache::ASP', 'Apache::ASP::Load=HASH(0xb8b15040)') called at /usr/share/perl5//Apache/ASP/Load.pm line 129 eval {...} called at /usr/share/perl5//Apache/ASP/Load.pm line 127 Apache::ASP::Load::Run('/var/www/mobile_deals/login.asp', '.(asp|asa)$', 'Global', ., 'Debug', 3, 'UseStrict', 1) called at /usr/share/perl5//Apache/ASP/Load.pm line 87 Apache::ASP::Load::Run('Apache::ASP', '/var/www/mobile_deals', '.(asp|asa)$', 'Global', ., 'Debug', 3, 'UseStrict', 1, ...) called at /usr/share/perl5/Apache/ASP.pm line 1987 Apache::ASP::Loader('Apache::ASP', '/var/www/mobile_deals', '.(asp|asa)$', 'Global', ., 'Debug', 3, 'UseStrict', 1, ...) called at /etc/apache2/perl/ startup.pl line 7 require /etc/apache2/perl/startup.pl called at (eval 2) line 1 eval 'require q/etc/apache2/perl/startup.pl ;' called at /etc/apache2/perl/startup.pl line 0 When using Apache::ASP::Load::Run (called from Apache::ASP::Loader) in Load.pm:129 creates Apache::ASP passing Apache::ASP::Loader object (not an apache request object as usual - Apache2::RequestRec in mod_perl2), so in ASP.pm:382 when calls RegisterCleanup and an error occurs in ASP.pm:517. The problem seems to be on RegisterCleanup where an Apache2::RequestRec object expencted, but there is a Apache::ASP::Loader object. Apache2::RequestRec has the pool subroutine which returns an APR::Pool object. sub RegisterCleanup { my $self = shift; if($ModPerl2) { if(defined($self->{r}->pool)){ $self->{r}->pool->cleanup_register(@_); } } else { $self->{r}->register_cleanup(@_); } } Cheers , Sotiris Chatzianagnostou sotcha@gmail.com
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 4969


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.