[Bug]print crashes linux server when size is around 500

Started by habi, Aug 17, 2023, 05:47 PM

Previous topic - Next topic

habi

Description
function onScriptLoad()
{
local a="";for(local i=0;i<500;i++)a+="a";
print(a)
}
[MODULE] Loaded SqVCMP 0.4 frontend by Stormeus. (v1.0)
Segmentation fault (core dumped)

Reproducible
Always

What you were doing when the bug happened
I was directing some huge chunks of data to print function. If size is around 600, it print something like
AWAVAUATI��USH���␂ and if size is around 500, server crashes (like in code)

What you think caused the bug
Something inside server (linux). In windows there is no problem.

Additional information
I don't know if this is due to running linux in WSL.   On Debian 12.0 32-bit, neither the  server does not crashes and print works perfectly