Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: habi on Aug 17, 2023, 05:47 PM

Title: [Bug]print crashes linux server when size is around 500
Post by: habi on Aug 17, 2023, 05:47 PM
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


Title: Re: [Bug]print crashes linux server when size is around 500
Post by: vitovc on Aug 17, 2023, 06:24 PM
good old bugs https://forum.vc-mp.org/?topic=353.0;sslRedirect
fix from 2015 is still actual https://forum.vc-mp.org/index.php?topic=1086.0
Title: Re: [Bug]print crashes linux server when size is around 500
Post by: habi on Aug 18, 2023, 02:54 AM
i have seen it also