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

Segmentation fault in CHalfLifeMultiplay::PlayerThink(CBasePlayer*) #924

Open
jobmail opened this issue Jan 12, 2024 · 0 comments
Open

Segmentation fault in CHalfLifeMultiplay::PlayerThink(CBasePlayer*) #924

jobmail opened this issue Jan 12, 2024 · 0 comments

Comments

@jobmail
Copy link

jobmail commented Jan 12, 2024

if (m_flRestartRoundTime > 0.0f && m_flRestartRoundTime <= gpGlobals->time)

Завершаю раунд принудительно:
set_member_game(m_bCompleteReset, true);
rg_round_end(f_delay, WINSTATUS_DRAW, ROUND_GAME_RESTART, "TEST", _, true);

Если f_delay поставить 0.5 и менее, а Entities на карте было создано 500+, получаем различные вариации краша:

Program terminated with signal 11, Segmentation fault.
#0 0x00000000 in ?? ()
#0 0x00000000 in ?? ()
#1 0xb29dbb41 in CHalfLifeMultiplay::PlayerThink(CBasePlayer*) () from /home/server3367/game/cstrike/dlls/cs.so
#2 0x00000001 in ?? ()
#3 0x00000000 in ?? ()
No symbol table info available.

Program terminated with signal 11, Segmentation fault.
#0 0x00000000 in ?? ()
#0 0x00000000 in ?? ()
#1 0xb2a1d28b in UpdateClientData(edict_s const*, int, clientdata_s*) () from /home/server3367/game/cstrike/dlls/cs.so
#2 0xb1281494 in ?? ()
#3 0x00000014 in ?? ()
#4 0xb68442d5 in SV_WriteClientdataToMessage () from /home/server3367/game/engine_i486.so

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

No branches or pull requests

1 participant