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

Using SM 1.12.0.7165 compiler willl cause server crash #2220

Open
fbef0102 opened this issue Nov 17, 2024 · 1 comment
Open

Using SM 1.12.0.7165 compiler willl cause server crash #2220

fbef0102 opened this issue Nov 17, 2024 · 1 comment

Comments

@fbef0102
Copy link

fbef0102 commented Nov 17, 2024

sm version

 SourceMod Version Information:
    SourceMod Version: 1.12.0.7165
    SourcePawn Engine: 1.12.0.7165, jit-x86 (build 1.12.0.7165)

Game: L4D2
System: Windows

Compile the following the codes with SourcePawn Compiler 1.12.0.7165 -> launch game -> type !test -> server crash

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

Action sm_test(int client, int args)
{
    float AAA[3];
    static float BBB[3] = {0.1,0.2,0.3};
    
    // crash
    AAA = BBB;

    // not crash
    AAA[0] = BBB[0];
    AAA[1] = BBB[1];
    AAA[2] = BBB[2];

    return Plugin_Handled;
}

It won't happen in the previous compiler version: 1.12.0.7164 or 1.11

@fbef0102 fbef0102 changed the title Using SM 1.12.0.7165 compiler willl cause servercrash Using SM 1.12.0.7165 compiler willl cause server crash Nov 17, 2024
@A1mDev
Copy link
Contributor

A1mDev commented Nov 20, 2024

Related alliedmodders/sourcepawn/issues/977

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

2 participants