alliedmodders / sourcemod

SourceMod - Source Engine Scripting and Administration
http://www.sourcemod.net/
991 stars 428 forks source link

Crash in topmenus.ext.so (TopMenu::OnMenuSelect2) #1473

Open dragokas opened 3 years ago

dragokas commented 3 years ago

Help us help you

Environment

Description

Crash happened when I clicked "Player Commands" item of sm_admin menu. At the same time sm_respawn plugin is reloaded and is being manipulated with TopMenu's Remove / AddItem methods.

Logs

https://crash.limetech.org/ry2lz6ixbacb

KyleSanderson commented 3 years ago

Can you attach the STR / plugin?

dragokas commented 3 years ago

STR? Here is a current version of the plugin, which was used while those crash happened: https://dragokas.com/private/l4d_sm_respawn.zip https://pastebin.com/u3y0StQm

dragokas commented 3 years ago

One more different crash. May be related: https://crash.limetech.org/z2v7fcvg2pqq

topmenus.ext.so!TopMenu::UpdateClientCategory(int, unsigned int, bool) + 0x73
topmenus.ext.so!TopMenu::DisplayMenu(int, unsigned int, SourceMod::TopMenuPosition) + 0x78
topmenus.ext.so!DisplayTopMenu(SourcePawn::IPluginContext*, int const*) + 0xc9
asherkin commented 3 years ago

Both of those crashes appear to be instances of #1559.

I've been seeing a bunch of other topmenus crashes on Discord with people updating to 1.11, those don't seem to require any menu item changes to hit but the stack traces are very similar and the crash is where it'd be expected for #1559, so there might be another 1.11-specific issue around topmenus item handling too.