Regex hang - enormous memory consumption #5530
Labels
Addressed in RakuAST
This issue will be addressed in RakuAST
edge cases
Overflow, underflow, limits, boundaries, extreme large/small, negative or unexpected values
The Problem
Given the following:
Raku is spinning spinning spinning.
Expected Behavior
I expect raku surely not to hang spinning on ~20 characters is needs to go through.
Actual Behavior
After just 5 seconds of runtime for the above:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
97367 root 2 129 0 1385M 1139M CPU6 6 0:22 100.07% rakudo
Steps to Reproduce
Run what I've provided.
Environment
Operating system:
FreeBSD 14.0-RELEASE
Compiler version (
rakudo -v
orraku -v
):raku -v
Welcome to Rakudo™ v2024.01.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2024.01.
Note the same thing happened w/ the last 2023 release.
It shall be known that what I provided <![(]+> should have been <-[(]]+>.
I understand this. I'm documenting the behavior, not the syntax.
The text was updated successfully, but these errors were encountered: