I've discovered this thing accidentally while working on a plugin that uses the "F" key to open a menu.
Here's a video of me explaining and demonstrating it:
https://www.youtube.com/watch?v=W_IOdW-qKec (make sure to set full quality, it's two screens so resolution is pretty big)
The script is the following:
Code:
#include <amxmodx>
#include <engine>
new g_team_menu;
public plugin_init() {
register_impulse(100, "test_menu");
g_team_menu = menu_create("Crash Menu", "test_menu_handler");
menu_additem(g_team_menu, "lolwtf", "1", 0);
menu_setprop(g_team_menu, MPROP_EXIT, MEXIT_ALL);
}
public test_menu(id) {
menu_display(id, g_team_menu, 0);
}
public test_menu_handler(id, menu, item) {
if(item == MENU_EXIT) {
menu_destroy(menu);
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
When pressing F two times in a row, the server crashes immediately.
Here is the full console output (including version, amxx version, meta version, meta list, amxx plugins)
https://pastebin.com/2CLg6KaT
I have also encountered similar crashes on my production server which I have only reported here
https://github.com/dreamstalker/rehlds/issues/522 because the post wouldn't comply with alliedmods' rules and I'm also running reHLDS (though on my local test server I am not)
__________________