# New Ticket Created by  Sam S. 
# Please include the string:  [perl #128285]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128285 >


When two modules `use` each other, Rakudo does not throw a compile-time error 
as it should.
Instead, it just hangs and keeps eating more and more RAM until the kernel 
kills the program.

Minimalist test case to reproduce the problem:

    $  echo "use B;" > A.pm
    $  echo "use A;" > B.pm
    $  perl6 -I. -e 'use A;'


Insight from IRC discussion:

    psch:   we did have circular module loading detection at some point...
            probably got clobbered with all the CUR work though :/

    lizmat: before, the detection lived in the nqp code, if I recall
            now, it is the responsibility of the CUR to detect circularities
            a start would be writing a test :-) 


---
This is Rakudo version 2016.05-26-g7500ea2 built on MoarVM version 2016.05
implementing Perl 6.c.

Reply via email to