Here's about the simplest one I can come up with:
perl -wle '$n=32766; $_="a" x $n; /(ab*){$n}/'
On most implementations this will coredump; depending on stacksize, it may coredump for much lower $n.
See the #24274 regexp metabug for more detail.
Hugo
In reply to Re: What perl operations will consume C stack space?
by hv
in thread What perl operations will consume C stack space?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |