[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#40730: marked as done (libapache-mod-perl: StatINC fails for redefined subroutines)



Your message dated Sun, 9 Nov 2003 10:55:43 +0100 (CET)
with message-id <Pine.LNX.4.58.0311091054110.11417@trider-g7.ext.fabbione.net>
and subject line (no subject)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Jul 1999 14:54:32 +0000
Received: (qmail 29086 invoked from network); 4 Jul 1999 14:54:32 -0000
Received: from junior.ibcinc.com (198.22.130.72)
  by master.debian.org with SMTP; 4 Jul 1999 14:54:32 -0000
Received: from jones.argon.org (jones.argon.org [216.0.42.66])
	by junior.ibcinc.com (8.8.5/8.8.5/1.6/jr-1.21) with ESMTP id KAA07649;
	Sun, 4 Jul 1999 10:54:29 -0400 (EDT)
Received: (from roderick@localhost)
	by jones.argon.org (8.9.3/8.9.3/Debian/GNU) id KAA28089;
	Sun, 4 Jul 1999 10:54:28 -0400
Date: Sun, 4 Jul 1999 10:54:28 -0400
Message-Id: <199907041454.KAA28089@jones.argon.org>
From: Roderick Schertler <roderick@argon.org>
Subject: libapache-mod-perl: StatINC fails for redefined subroutines
To: submit@bugs.debian.org
X-Mailer: bug 3.2.2

Package: libapache-mod-perl
Version: 1.19-1.1
Severity: normal

I started using Apache::StatINC but it didn't do what it was supposed to.
Scripts which had imported functions from one of the reloaded modules
would still see the old version.  The symbol table entry in the importee's
package still has a reference to the original version of the subroutine.
I think this is normal, like this:

    $ perl -lwe '
        sub foo { print "original" }
        *bar = \&foo;
        bar();
        eval "sub foo { print qq(new) }"; die if $@;
        bar();'
    original
    Subroutine foo redefined at (eval 1) line 1.
    original
    $ _

Setting Apache::StatINC's UndefOnReload variable to true takes care of    
it.  I haven't been able to reproduce what it's doing from the command 
line, but it's using some XS behind the scenes so that's perhaps not
so suprising.

I think the documentation should talk about this.  Actually, I don't see
how it can't be talking about it already.  It seems to me that this is
one of the main features of the module, and it just doesn't work out of 
the box.  Perhaps I'm doing something wrong, but I can't imagine what.  

PS:  The NMU version number you see I'm using of libapache-mod-perl is
just a recompile I did locally to get it using the new /usr/lib/perl5
layout.

-- System Information
Debian Release: potato
Kernel Version: Linux jones 2.2.9-jones.1 #1 Thu May 27 16:57:56 EDT 1999 i686 unknown

Versions of the packages libapache-mod-perl depends on:
ii  apache-common   1.3.6-11       Support files for all Apache webservers
ii  data-dumper     2.10-2         Store and retrieve perl data structures
ii  libc6           2.1.1-12       GNU C Library: Shared libraries and timezone
ii  libdevel-symdum 2.00-2         Perl module for inspecting perl's symbol tab
ii  libgdbmg1       1.7.3-26       GNU dbm database routines (runtime version).
ii  libmime-base64- 2.05-1         MIME/Base64 decoding for Perl
ii  libwww-perl     5.42-1         WWW client/server library for Perl
ii  perl-5.004      5.004.05-1     Larry Wall's Practical Extracting and Report

-- 
Roderick Schertler
roderick@argon.org
---------------------------------------
Received: (at 40730-done) by bugs.debian.org; 9 Nov 2003 09:55:49 +0000
>From fabbione@fabbione.net Sun Nov 09 03:55:48 2003
Return-path: <fabbione@fabbione.net>
Received: from port5.ds1-sby.adsl.cybercity.dk (trider-g7.fabbione.net) [212.242.169.198] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AImIO-0002qx-00; Sun, 09 Nov 2003 03:55:48 -0600
Received: from trider-g7.ext.fabbione.net (port5.ds1-sby.adsl.cybercity.dk [212.242.169.198])
	by trider-g7.fabbione.net (Postfix) with ESMTP id EC5F116
	for <40730-done@bugs.debian.org>; Sun,  9 Nov 2003 10:55:45 +0100 (CET)
Date: Sun, 9 Nov 2003 10:55:43 +0100 (CET)
From: Fabio Massimo Di Nitto <fabbione@fabbione.net>
Sender: fabbione@trider-g7.ext.fabbione.net
To: 40730-done@bugs.debian.org
Message-ID: <Pine.LNX.4.58.0311091054110.11417@trider-g7.ext.fabbione.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 40730-done@bugs.debian.org
X-Spam-Status: No, hits=0.0 required=4.0
	tests=none
	version=2.53-bugs.debian.org_2003_11_7
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_7 (1.174.2.15-2003-03-30-exp)


Hi,
	we have verified that this bug is no more present in the recent
versions of mod_perl and i am closing it.

Fabio

-- 
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues

http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html



Reply to: