-
Notifications
You must be signed in to change notification settings - Fork 577
perl: op.c:14769: Perl_find_lexical_cv: Assertion `PARENT_PAD_INDEX(name)' failed. #19857
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
Comments
As you might expect, this problem has been present since
@JRaspass @leonerd , can you take a look? Thank you very much. |
I expect the problem is with the lexical import mechanism, rather than ceil() itself:
|
Worse, it happens with plain lexical subs too:
|
Reproduced in a
Should we consider making this into a TODO-ed test in the test suite? |
We don't need the BEGIN:
I have a fix for this assertion which I'll pretty up for a PR. Of course, normal lexical subs have a different problem, even without eval:
which means the normal lexical sub won't be available in BEGIN anyway. This isn't a problem for lexical imports since those set the definition at compile-time. This happens because normal lexical subs don't actually get a definition until runtime, when the
I expect the fix for that is going to be moving the cloning for the first pad for a function rather than at runtime. |
Module:
Description
Running this code:
in a DEBUGGING build throws:
Backtrace:
Steps to Reproduce
Expected behavior
No assertion.
Perl configuration
The text was updated successfully, but these errors were encountered: