in reply to Re^3: Crash in stack_grow() with SQL::Abstract
in thread Crash in stack_grow() with SQL::Abstract
Thank you for the input!
Forgive my ignorance of the guts, if there is a better way to expand the stack pathologically without the `x` operator, please advise. I tested the following on the hardware:
The results of that script on the hardware is an instant OOM.#!/usr/bin/perl use strict; use warnings; sub test { my @arr = (1) x 0xFF000000; return @arr; } test()
Out of memory during list extend at ./test.pl line 8.If I instead drop the value down to 0x0F000000 it gets reaped by the OOM killer after 5-6 seconds.
[14975.456522] Out of memory: Killed process 26695 (test.pl)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Crash in stack_grow() with SQL::Abstract
by dave_the_m (Monsignor) on Jun 04, 2025 at 15:31 UTC | |
by Casey2255 (Initiate) on Jun 04, 2025 at 18:37 UTC |