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
Segfault with producing gist #5160
Comments
crashes reliably for me after the 7th iteration. Mind you, this is on an M1, so no JIT involved here. Same for using Confirm the problem doesn't exist if Oddly enough:
does NOT crash. Nor does calling any other sub do this. So after some more investigation, it looks like it is inside
|
However, |
Could possibly be related to inlining given that the problem seems to disappear if the program is run with MVM_SPESH_INLINE_DISABLE=1 The code seems to get stuck in some kind of infinite recursion as can be seen below:
... the listing is more or less endless |
looks like moar infinite-recurses in spesh while trying to inline a function and then it ping pongs back and forth between two different functions |
timo++ noticed at least the JIT mistake while investigating rakudo/rakudo#5160, but this change does *not* fix it.
The Problem
grep
can cause a segfault, under very specific conditions. The chance of a problem goes up with the volume of data supplied.Steps to Reproduce
All of this code works reliably when either MVM_SPESH_DISABLE or MVM_JIT_DISABLE is in force.
The last version where the problem I do not see this is v2022.12-1-gd52342eb0 (just prior to master -> main switch)
Environment
Seen with macos/Darwin and Ubuntu
perl6 -v
orraku -v
):All versions after master -> main switch
The text was updated successfully, but these errors were encountered: