sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

[x64][tf2] SDKtools AcceptEntityInput Crash

Open bottiger1 opened this issue 1 year ago • 1 comments

Latest dev versions of sourcemod and metamod.

Easy repro. Does not crash on 32 bit.

#include <sdktools>

public OnPluginStart()
{
    RegConsoleCmd("sm_test", Cmd_Test);
}

public Action Cmd_Test(int client, int args) 
{
    int g_iop = CreateEntityByName("info_observer_point");
    DispatchKeyValue(g_iop, "Angles", "90 0 0");
    DispatchKeyValue(g_iop, "TeamNum", "0");
    DispatchKeyValue(g_iop, "StartDisabled", "0");
    DispatchSpawn(g_iop);
    //SetVariantInt(0);
    AcceptEntityInput(g_iop, "Enable");

    return Plugin_Handled;
}

Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f57827264b2 in CBaseEntity::AcceptInput(char const*, CBaseEntity*, CBaseEntity*, variant_t, int) () from /home/tf2/steam/server1/tf/tf/bin/linux64/server_srv.so [Current thread is 1 (Thread 0x7f5795692740 (LWP 4163748))] #0 0x00007f57827264b2 in CBaseEntity::AcceptInput(char const*, CBaseEntity*, CBaseEntity*, variant_t, int) () from /home/tf2/steam/server1/tf/tf/bin/linux64/server_srv.so #1 0x00007f577131313f in ?? () #2 0x000000000da99b40 in ?? () #3 0x000000000daeb67c in ?? () #4 0x00007f57714d77a0 in vec4_invalid () from /home/tf2/steam/server1/tf/tf/addons/sourcemod_idle/extensions/x64/sdktools.ext.2.tf2.so #5 0x000000000da99b40 in ?? () #6 0x00007ffc93d1d140 in ?? () #7 0x00007f577144fe5b in AcceptEntityInput(SourcePawn::IPluginContext*, int const*) () from /home/tf2/steam/server1/tf/tf/addons/sourcemod_idle/extensions/x64/sdktools.ext.2.tf2.so

bottiger1 avatar Apr 27 '24 21:04 bottiger1

Potential duplicate of #2119 Please also respect issue template, and do proper post formatting

Kenzzer avatar Apr 28 '24 11:04 Kenzzer