New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An anonymous sub created at compile time in a module that itself calls a sub can't be called at runtime #4962
Comments
From @hoelzroSee attached files. When you run test.pl, you get the following error:
Moving the contents of TestModule.pm into test.pl doesn't produce the error. Issue seems to have been introduced in 8728828. |
From @hoelzro |
From @hoelzroI have a feeling this is related to https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127086 On 2015-12-30 07:32:20, rob@hoelz.ro wrote:
|
From @hoelzroI managed to golf this down to an example that doesn't use NativeCall. It seems like the issue is when you create an anonymous sub at compile time and call it at runtime. On 2015-12-30 09:22:46, rob@hoelz.ro wrote:
|
From @hoelzro |
From @hoelzroAlright, here's what I've managed to uncover: - The code that creates the anonymous sub must be in a module, and the code that calls must also. They may be On 2016-01-06 19:42:03, rob@hoelz.ro wrote:
|
From @hoelzroBisect points to rakudo@8728828, but that's a red herring; it's likely that precomp is just exposing some problem that has existed for some time. On 2016-01-07 18:45:35, rob@hoelz.ro wrote:
|
From @hoelzroOk, an adjusted bisect script to precompile the module points to rakudo@8bada16. On 2016-01-07 21:39:33, rob@hoelz.ro wrote:
|
From @hoelzroAfter looking at the commit in detail, it looks like another red herring; something that's causing precomp to be used a bit differently that triggers the behavior. On 2016-01-08 05:26:20, rob@hoelz.ro wrote:
|
From @hoelzroMore notes: - Calling subs from the compunit in the anonymous sub works fine On 2016-01-08 07:49:49, rob@hoelz.ro wrote:
|
From @hoelzrojnthn suggested that something along the lines of the change made in rakudo@76204fa58a7 may fix this issue. On 2016-01-09 09:32:35, rob@hoelz.ro wrote:
|
Migrated from rt.perl.org#127089 (status was 'new')
Searchable as RT127089$
The text was updated successfully, but these errors were encountered: