summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-05-04 18:12:03 +0100
committerNicholas Clark <nick@ccl4.org>2009-05-04 18:12:03 +0100
commit1dffc4d1a24556f4e23f612d6713492847ff064b (patch)
tree82895cd711e2665533a5f8fb93a374810f3df612 /t
parent2b78b7715e1330aaceb5d16e6de25abbe8fde06c (diff)
downloadperl-1dffc4d1a24556f4e23f612d6713492847ff064b.tar.gz
Fix SEGVs when cloning a typeglob that has been undefined. (RT #64954)
Diffstat (limited to 't')
-rw-r--r--t/op/threads.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/op/threads.t b/t/op/threads.t
index 814b59550f..c8ed34a7a1 100644
--- a/t/op/threads.t
+++ b/t/op/threads.t
@@ -16,7 +16,7 @@ BEGIN {
exit 0;
}
- plan(13);
+ plan(14);
}
use strict;
@@ -185,5 +185,10 @@ threads->new(\&safe_re)->join();
# tests in threads don't get counted, so
curr_test(curr_test() + 1);
+# This used to crash in 5.10.0 [perl #64954]
+
+undef *a;
+threads->new(sub {})->join;
+pass("undefing a typeglob doesn't cause a crash during cloning");
# EOF