This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
belatedly add a test for RT #51636:
authorDavid Mitchell <davem@iabyn.com>
Fri, 4 Jun 2010 20:16:48 +0000 (21:16 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 4 Jun 2010 20:16:48 +0000 (21:16 +0100)
segmentation fault with array ties

t/op/tie.t

index 281c0d9..ad3031a 100644 (file)
@@ -897,3 +897,19 @@ fetching... *{}
 fetching... @{}
 fetching... %{}
 fetching... ${}
+########
+# RT 51636: segmentation fault with array ties
+
+tie my @a, 'T';
+@a = (1);
+print "ok\n"; # if we got here we didn't crash
+
+package T;
+
+sub TIEARRAY { bless {} }
+sub STORE    { tie my @b, 'T' }
+sub CLEAR    { }
+sub EXTEND   { }
+
+EXPECT
+ok