Skip Menu |

This queue is for tickets about the Carp-Clan CPAN distribution.

Report information
The Basics
Id: 21002
Status: resolved
Priority: 0/
Queue: Carp-Clan

People
Owner: Nobody in particular
Requestors: jjore [...] cpan.org
Cc:
AdminCc:

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



Subject: Carp::Clan triggers overloading when examining @DB::args
Carp::Clan::_longmess calls overloading on objects found in @DB::args but should not. Use overload::StrVal instead to get a proper stringification. The attached patch updates the module to be overload safe. You could just apply the patch and it'll increment the version # for you and everything. If you don't want to deal with this, please assign me co-maintainer permissions (or greater) and I'll release this to CPAN. I have a module that would really benefit by using your library but I can't do it until this bug is fixed.
Subject: Carp-Clan-5.4.diff
Only in Carp-Clan-5.4: blib diff -ru Carp-Clan-5.3/CHANGES.txt Carp-Clan-5.4/CHANGES.txt --- Carp-Clan-5.3/CHANGES.txt 2004-04-30 03:38:07.000000000 -0500 +++ Carp-Clan-5.4/CHANGES.txt 2006-08-15 11:48:33.000000000 -0500 @@ -1,5 +1,5 @@ ==================================== - Package "Carp::Clan" Version 5.3 + Package "Carp::Clan" Version 5.4 ==================================== @@ -10,6 +10,10 @@ Version history: ---------------- +Version 5.4 15.08.2006 + + + Doesn't call overloading magic anymore + Version 5.3 30.04.2004 + Removed the paragraph saying "no tests available" from README.txt Only in Carp-Clan-5.4: CHANGES.txt~ diff -ru Carp-Clan-5.3/Clan.pm Carp-Clan-5.4/Clan.pm --- Carp-Clan-5.3/Clan.pm 2004-04-30 03:38:07.000000000 -0500 +++ Carp-Clan-5.4/Clan.pm 2006-08-15 11:47:21.000000000 -0500 @@ -15,6 +15,7 @@ use strict; use vars qw( $MaxEvalLen $MaxArgLen $MaxArgNums $Verbose $VERSION ); +require overload; # Original comments by Andy Wardley <abw@kfs.org> 09-Apr-1998. @@ -27,7 +28,7 @@ $Verbose = 0; # If true then make _shortmsg call _longmsg instead. -$VERSION = '5.3'; +$VERSION = '5.4'; # _longmsg() crawls all the way up the stack reporting on all the function # calls made. The error string, $error, is originally constructed from the @@ -77,7 +78,7 @@ { if (ref $_) { - $_ = "$_"; # Beware of overloaded objects! + $_ = overload::StrVal( $_ ); } else { Only in Carp-Clan-5.4: Clan.pm~ Only in Carp-Clan-5.4: Makefile Only in Carp-Clan-5.4: pm_to_blib diff -ru Carp-Clan-5.3/README.txt Carp-Clan-5.4/README.txt --- Carp-Clan-5.3/README.txt 2004-04-30 03:38:07.000000000 -0500 +++ Carp-Clan-5.4/README.txt 2006-08-15 11:47:30.000000000 -0500 @@ -1,5 +1,5 @@ ==================================== - Package "Carp::Clan" Version 5.3 + Package "Carp::Clan" Version 5.4 ==================================== Only in Carp-Clan-5.4: README.txt~ diff -ru Carp-Clan-5.3/t/01_______carp.t Carp-Clan-5.4/t/01_______carp.t --- Carp-Clan-5.3/t/01_______carp.t 2004-04-30 03:38:07.000000000 -0500 +++ Carp-Clan-5.4/t/01_______carp.t 2006-08-15 11:45:02.000000000 -0500 @@ -13,7 +13,7 @@ # NOTE: Certain ugly contortions needed only for crappy Perl 5.6.0! # (sorry for the outbreak :-) ) -print "1..58\n"; +print "1..59\n"; my $n = 1; @@ -552,5 +552,38 @@ {print "ok $n\n";} else {print "not ok $n\n";} $n++; +if ( not eval 'require Object::Deadly; 1' ) { + print "ok $n # skip Overload safety testing needs Object::Deadly\n"; + $n++; +} +else { + $SIG{ALRM} = sub { die "ALRM\n" }; + alarm 10; + eval { + sub { + my @args = @_; + sub { + Carp::Clan::confess( scalar @args ); + }->( @args ); + }->( Object::Deadly->new ) + }; + my $e = $@; + alarm 0; + $e =~ s/^/# /mg; + if ( $e eq '' ) { + print "not ok $n # Carp::Clan::confess didn't run\n"; + } + elsif ( $e =~ /ALRM/ ) { + print "$e\nnot ok $n # infinite loop\n"; + } + elsif ( $e =~ /Object::Deadly trace/ ) { + print "$e\nnot ok $n # triggered overloading\n"; + } + else { + print "ok $n\n"; + } + ++ $n; +} + __END__ Only in Carp-Clan-5.4/t: 01_______carp.t~
From: STBEY [...] cpan.org
On Ter. Ago. 15 13:36:50 2006, JJORE wrote: Show quoted text
> Carp::Clan::_longmess calls overloading on objects found in @DB::args > but should not. Use overload::StrVal instead to get a proper > stringification. > > The attached patch updates the module to be overload safe. You could > just apply the patch and it'll increment the version # for you and > everything. If you don't want to deal with this, please assign me > co-maintainer permissions (or greater) and I'll release this to CPAN. > > I have a module that would really benefit by using your library but I > can't do it until this bug is fixed.
Please go ahead and fix it as you see fit! Unfortunately I do not have time anymore to maintain my modules. How can I assign you co-maintainer permissions? What's your CPAN ID? Or would you like to completely take over maintenance of this module? Regards, Steffen
CC: JJORE [...] cpan.org
Subject: Re: [rt.cpan.org #21002] Carp::Clan triggers overloading when examining @DB::args
Date: Mon, 21 Aug 2006 09:59:42 -0500
To: bug-Carp-Clan [...] rt.cpan.org
From: "Joshua ben Jore" <twists [...] gmail.com>
On 8/20/06, Steffen_Beyer via RT <bug-Carp-Clan@rt.cpan.org> wrote: Show quoted text
> > Please go ahead and fix it as you see fit! > Unfortunately I do not have time anymore to maintain my modules. > How can I assign you co-maintainer permissions? > What's your CPAN ID? > Or would you like to completely take over maintenance of this module?
I'm ok in theory with taking the module. I tend to not have much time for module maintenance but I'm sure I could con some other ace hackers (Aristotle anyway. He first turned me on to your module.) into helping out. I'm JJORE. Go to https://pause.perl.org/pause/authenquery?ACTION=share_perms and delegate away. Josh
CC: Andreas Koenig <andreas.koenig [...] anima.de>
Subject: Re: [rt.cpan.org #21002] Carp::Clan triggers overloading when examining @DB::args
Date: Tue, 22 Aug 2006 10:39:04 +0200
To: Joshua ben Jore via RT <bug-Carp-Clan [...] rt.cpan.org>
From: Steffen Beyer <sb [...] engelschall.com>
Hello Joshua ben Jore via RT, in a previous mail you wrote: Show quoted text
> > Queue: Carp-Clan > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21002 > > > On 8/20/06, Steffen_Beyer via RT <bug-Carp-Clan@rt.cpan.org> wrote:
> > > > Please go ahead and fix it as you see fit! > > Unfortunately I do not have time anymore to maintain my modules. > > How can I assign you co-maintainer permissions? > > What's your CPAN ID? > > Or would you like to completely take over maintenance of this module?
> > I'm ok in theory with taking the module. I tend to not have much time > for module maintenance but I'm sure I could con some other ace hackers > (Aristotle anyway. He first turned me on to your module.) into helping > out. > > I'm JJORE. Go to > https://pause.perl.org/pause/authenquery?ACTION=share_perms and > delegate away. > > Josh
Tried that, but there is no official namespace registration for it yet. Without it, it doesn't appear in my list of modules, which means I cannot give you co-author access rights (or any at all). Asked for namespace registration, but out of my previous experiences, this may take years... :-( So I think the best we can do is probably that you simply release the new version under your own ID, and that's it. [CC: to Andreas Koenig (PAUSE maintainer) so that he knows it's okay when you upload it] Best of luck! Cheers, -- Steffen Beyer <sb@engelschall.com> http://www.engelschall.com/u/sb/whoami/ (Who am I) http://www.engelschall.com/u/sb/gallery/ (Fotos Brasil, USA, ...) http://www.engelschall.com/u/sb/download/ (Free Perl and C Software)
CC: Joshua ben Jore via RT <bug-Carp-Clan [...] rt.cpan.org>, Andreas Koenig <andreas.koenig [...] anima.de>
Subject: Re: [rt.cpan.org #21002] Carp::Clan triggers overloading when examining @DB::args
Date: Tue, 22 Aug 2006 16:47:19 +0200
To: Steffen Beyer <sb [...] engelschall.com>
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Tue, 22 Aug 2006 10:39:04 +0200, Steffen Beyer <sb@engelschall.com> said:
Show quoted text
> Hello Joshua ben Jore via RT, in a previous mail you wrote:
>> >> Queue: Carp-Clan >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21002 > >> >> On 8/20/06, Steffen_Beyer via RT <bug-Carp-Clan@rt.cpan.org> wrote:
>> > >> > Please go ahead and fix it as you see fit! >> > Unfortunately I do not have time anymore to maintain my modules. >> > How can I assign you co-maintainer permissions? >> > What's your CPAN ID? >> > Or would you like to completely take over maintenance of this module?
>> >> I'm ok in theory with taking the module. I tend to not have much time >> for module maintenance but I'm sure I could con some other ace hackers >> (Aristotle anyway. He first turned me on to your module.) into helping >> out. >> >> I'm JJORE. Go to >> https://pause.perl.org/pause/authenquery?ACTION=share_perms and >> delegate away. >> >> Josh
Show quoted text
> Tried that, but there is no official namespace registration for it yet. > Without it, it doesn't appear in my list of modules, which means I cannot > give you co-author access rights (or any at all).
You didn't try hard enough. The page you needed is reachable via "Change Permissions" -> "2.1 Pass primary maintainership status to somebody else" -> select module, enter JJORE, click "Pass maintainership status". I just did it for you, so now JJORE is maintainer and you are co-maintainer. Show quoted text
> Asked for namespace registration, but out of my previous experiences, > this may take years... :-(
Depends.....:-) Thanks, -- andreas
CC: Joshua ben Jore via RT <bug-Carp-Clan [...] rt.cpan.org>, Andreas Koenig <andreas.koenig [...] anima.de>, JJORE [...] cpan.org
Subject: Re: [rt.cpan.org #21002] Carp::Clan triggers overloading when examining @DB::args
Date: Tue, 22 Aug 2006 21:35:26 +0200
To: "Andreas J. Koenig" <andreas.koenig.gmwojprw [...] franz.ak.mind.de>
From: Steffen Beyer <sb [...] engelschall.com>
Hello Andreas J. Koenig, in a previous mail you wrote: Show quoted text
> >>>>> On Tue, 22 Aug 2006 10:39:04 +0200, Steffen Beyer <sb@engelschall.com> said:
>
> > Hello Joshua ben Jore via RT, in a previous mail you wrote:
> >> > >> Queue: Carp-Clan > >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21002 > > >> > >> On 8/20/06, Steffen_Beyer via RT <bug-Carp-Clan@rt.cpan.org> wrote:
> >> > > >> > Please go ahead and fix it as you see fit! > >> > Unfortunately I do not have time anymore to maintain my modules. > >> > How can I assign you co-maintainer permissions? > >> > What's your CPAN ID? > >> > Or would you like to completely take over maintenance of this module?
> >> > >> I'm ok in theory with taking the module. I tend to not have much time > >> for module maintenance but I'm sure I could con some other ace hackers > >> (Aristotle anyway. He first turned me on to your module.) into helping > >> out. > >> > >> I'm JJORE. Go to > >> https://pause.perl.org/pause/authenquery?ACTION=share_perms and > >> delegate away. > >> > >> Josh
>
> > Tried that, but there is no official namespace registration for it yet. > > Without it, it doesn't appear in my list of modules, which means I cannot > > give you co-author access rights (or any at all).
> > You didn't try hard enough. The page you needed is reachable via > "Change Permissions" -> "2.1 Pass primary maintainership status to > somebody else" -> select module, enter JJORE, click "Pass > maintainership status". > > I just did it for you, so now JJORE is maintainer and you are > co-maintainer. >
> > Asked for namespace registration, but out of my previous experiences, > > this may take years... :-(
> > Depends.....:-) > > Thanks, > -- > andreas
Hi Andreas, I had found it in the meantime, after another hint from Joshua! I already had made him co-maintainer. But the other way around (him main-, me co-maintainer) is also ok with me. Thanks for helping! :-) Best regards, -- Steffen Beyer <sb@engelschall.com> http://www.engelschall.com/u/sb/whoami/ (Who am I) http://www.engelschall.com/u/sb/gallery/ (Fotos Brasil, USA, ...) http://www.engelschall.com/u/sb/download/ (Free Perl and C Software)
This is resolvedi n 5.4.