CC: | ingy [...] cpan.org |
Subject: | Inline::RPerl is causing endless loops when using Inline::* |
The following command is causing an endless loop generating a large process tree and eventually consuming all available memory:
/opt/perl-5.22.3/bin/perl -MRPerl::AfterSubclass -e1
Something similar happens if using any perl code which uses Inline::*, and Inline::RPerl is installed. I think the problem is following:
- when using Inline, then for some reason all available Inline::* modules are scanned and loaded
- Inline::RPerl is amongst them, and has the command "use RPerl::AfterSubclass"
- somewhere in the RPerl::AfterSubclass dependency tree modules are loaded which use Inline::C or Inline::CPP
- now we have the endless loop
Maybe the rule is: any Inline::* module must not use modules which itself use Inline::*