diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-06-05 22:37:54 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-06-05 22:37:54 -0700 |
commit | 71edc89419f11505f2cdaba9b13be65582d7f011 (patch) | |
tree | cf31dd4ce22fa560605fb40843d1a50e8e77e102 /t | |
parent | c0b72abc47a28e2094e4ffc331df81433920bb63 (diff) | |
download | perl-71edc89419f11505f2cdaba9b13be65582d7f011.tar.gz |
[perl #92258] <$fh> hangs on a glob copy
Opening a file handle to \$glob causes assertion failures
(under debugging) or hangs or other erratic behaviour without
debugging. This might even crash in some cases.
It never really worked properly, but it didn’t start hanging
apparently until 5.12.2 and 5.14.0.
Diffstat (limited to 't')
-rw-r--r-- | t/io/perlio.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/io/perlio.t b/t/io/perlio.t index 1a330f4367..a65b0d3eb9 100644 --- a/t/io/perlio.t +++ b/t/io/perlio.t @@ -6,7 +6,7 @@ BEGIN { skip_all_without_perlio(); } -plan tests => 42; +plan tests => 44; use_ok('PerlIO'); @@ -191,6 +191,12 @@ close ($perlio); close ($no_perlio); } +{ # [perl #92258] + open my $fh, "<", \(my $f = *f); + is join("", <$fh>), '*main::f', 'reading from a glob copy'; + is ref \$f, 'GLOB', 'the glob copy is unaffected'; +} + } |