Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small zone overflow #148

Closed
k4r3l01 opened this issue Mar 29, 2017 · 18 comments
Closed

small zone overflow #148

k4r3l01 opened this issue Mar 29, 2017 · 18 comments
Assignees
Labels
Milestone

Comments

@k4r3l01
Copy link
Contributor

k4r3l01 commented Mar 29, 2017

when i try to run server i give this error
Sys_Error: Z_Malloc: failed on allocation of 60 bytes from the small zone
Bad thread localBad thread local

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Mar 30, 2017

now i tried to run server with yours precompiled linux server and its same

@D4edalus
Copy link
Contributor

what distro are you on? are you maybe out of memory :P? .. i mean its working for 600 other servers

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Mar 30, 2017

sever is ubuntu and we have free about 20GB of ram so i dont know where is problem
and here is complete console output
https://pastebin.com/QCurHU1s

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Mar 30, 2017

so i now tried to start server

  1. without mod and with configs its same
  2. without mod and without config server start correctly
  3. with mod but without configs server starts correctly

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Mar 30, 2017

and what i see in qcommon_mem.c so small zone is only for cvars and cmds

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Mar 30, 2017

so small zone must be increased for me default in qcommon_mem.c is
int s_smallZoneTotal = 512 * 1024;
but i must use
int s_smallZoneTotal = 1024 * 1024;
its will be great if this will be possible to make in dvar and not edit source of cod4x

@T-Maxxx
Copy link
Contributor

T-Maxxx commented Mar 30, 2017

Maybe re-create your configs?

@AlexanderCurl
Copy link
Contributor

AlexanderCurl commented Mar 30, 2017

This huge amount of configs makes the server crashes. Insert in 1 and will be fine.

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Mar 30, 2017

we are using openwarfare mod and this mod using this config system for better transparency so i think its not good to decrease number of configs helps because this crash have nothing with number of configs but with number of dvars

@D4edalus
Copy link
Contributor

after a few days of running one of my servers crashed with the same bug. something is going on there.

@d1st4r
Copy link
Contributor

d1st4r commented Mar 31, 2017

All 3 of my servers encountered this error today.
Sys_Error: Z_Malloc: failed on allocation of 52 bytes from the small zone

@T-Maxxx
Copy link
Contributor

T-Maxxx commented Mar 31, 2017

Possible error: requested 52 bytes, allocated 4k == 1 page, in use 52. And so on...

@D4edalus
Copy link
Contributor

D4edalus commented Mar 31, 2017

i dont quite understand what you mean @T-Maxxx

i've increased zone size in a recent commit. if a crash happens again i'd start looking for memory leaks.

@volkv
Copy link
Contributor

volkv commented Mar 31, 2017

@D4edalus ok, start testing new build. cuz build 2000 caused 1 of my 8th servers drop like every 1-2 hours

@volkv
Copy link
Contributor

volkv commented Apr 1, 2017

16 hours run - no crashes. I believe problem is solved

@Kingwolf123
Copy link
Contributor

Yup same error occuring
MingW Build 2000
Sys_Error: Z_Malloc: failed on allocation of 36 bytes from the small zone

Will update to 17.2 Version to update on the issue

@D4edalus D4edalus added this to the 17.3 milestone Apr 4, 2017
@D4edalus
Copy link
Contributor

still crashing on build 2011.
however, increasing small zone delayed crashing. probably a memory leak.

@D4edalus D4edalus self-assigned this Apr 26, 2017
@D4edalus D4edalus changed the title bug on 494 commit small zone overflow Apr 26, 2017
@ingre
Copy link

ingre commented May 4, 2018

omg again this problem, guys help me pls, I add new mod and some problem
just start test mod in pc, crash
Sys_Error: Z_Malloc: failed on allocation of 32 bytes from the small zone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants