Skip Menu |

This queue is for tickets about the IO-YAML CPAN distribution.

Report information
The Basics
Id: 50151
Status: open
Worked: 1.7 hours (100 min)
Priority: 0/
Queue: IO-YAML

People
Owner: nkuitse [...] cpan.org
Requestors: JMERELO [...] cpan.org
Cc:
AdminCc:

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



Subject: Warning when installing (and using!)
This is a Fedora Core 10 with perl 5.10; when installing it shows this: -- t/00-use.t ........... 1/2 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/00-use.t ........... ok t/01-open.t .......... 1/13 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/01-open.t .......... ok t/02-read.t .......... 1/31 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/02-read.t .......... ok t/03-write.t ......... 1/9 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/03-write.t ......... ok t/04-append.t ........ 6/8 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/04-append.t ........ ok t/05-new.t ........... 1/7 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/05-new.t ........... ok t/06-read-beyond.t ... 1/8 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/06-read-beyond.t ... ok t/07-write-beyond.t .. 1/7 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. t/07-write-beyond.t .. ok t/08-autoterm.t ...... 1/4 untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. untie attempted while 2 inner references still exist at /root/.cpan/build/IO-YAML-0.07-xT7MOz/blib/lib/IO/YAML.pm line 254. -- It also shows the same error when closing a simple stream. Cheers JJ
This seems to fix it: -- sub DESTROY { my ($self) = @_; $self->close if $self->handle; unless ( $^V and $^V gt 'v5.8.0' ) { untie *$self if tied *$self; } } -- However, it says exactly the opposite it did. JJ
Unfortunately, the suggested fix results in warnings in v5.8.1-RC3 -- precisely those warnings that it prevents in 5.10.
I think I've fixed this in version 0.08 -- I can't test it as I don't have access to a box with Perl 10.
On Sab. Oct. 03 09:40:48 2009, NKUITSE wrote: Show quoted text
> I think I've fixed this in version 0.08 -- I can't test it as I don't > have access to a box with Perl > 10.
Will download and try it... JJ
Checked source, and it might fix it, but one of the problem is that version numbers in 5.10 start with v: osl:~# perl -d -e kk Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): kk DB<1> p $^V v5.10.0 -- So you'll have to take this into account when checking version numbers. JJ