Subject: | Encountered "Unknown! This should never happen!" in weakened__memory_cycle_ok() |
When traversing a structure that has a coderef containing a closure, I
encountered the error:
not ok 6 - No memory cycles were found!
# Failed test 'No memory cycles were found!'
# at /home/ether/t/Foo/bar.t line 50.
# Cycle #1
# MyApp::Foo::Bar A->{_baz} => MyApp::Blah::Bar B
# MyApp::Blah::Bar B->{table} => &C
# Unknown! This should never happen!
# $D => MyApp::Foo::Bar A
This is because the 'CODE' type of reference is not checked for in
weakened_memory_cycle_ok(), whereas it is checked in memory_cycle_ok().