Skip to content

SigSegv Error with Citizen-Scripting-lua.dll #3632

Description

@Maaaaaaxx

What happened?

Hi, we have been having issues updating our artifact, it runs fine no issues on 7290, but once we go higher to the 17000+ it crashes, the dump file says there is an issue with Citizen-Scripting-lua.dll.

Any time we have server lagg it crashes like this, we can also trigger this by reload/refreshing scripts through TX.

09:45:38 PM
09:45:38 PM =================================================================
09:45:38 PM Native Crash Reporting
09:45:38 PM =================================================================
09:45:38 PM Got a SIGSEGV while executing native code. This usually indicates
09:45:38 PM a fatal error in the mono runtime or one of the native libraries
09:45:38 PM used by your application.
09:45:38 PM =================================================================
09:45:38 PM
09:45:38 PM =================================================================
09:45:38 PM Managed Stacktrace:
09:45:38 PM =================================================================
09:45:38 PM =================================================================
09:45:41 PM [ citizen-server-impl] network thread hitch warning: timer interval of 3384 milliseconds
09:45:41 PM [ citizen-server-impl] sync thread hitch warning: timer interval of 3379 milliseconds

This crash dump then shows:


  •                                                                         *
    
  •                    Exception Analysis                                   *
    
  •                                                                         *
    

KEY_VALUES_STRING: 1

Key  : AV.Type
Value: Read

Key  : Analysis.CPU.mSec
Value: 515

Key  : Analysis.Elapsed.mSec
Value: 24218

Key  : Analysis.IO.Other.Mb
Value: 0

Key  : Analysis.IO.Read.Mb
Value: 1

Key  : Analysis.IO.Write.Mb
Value: 41

Key  : Analysis.Init.CPU.mSec
Value: 531

Key  : Analysis.Init.Elapsed.mSec
Value: 30870

Key  : Analysis.Memory.CommitPeak.Mb
Value: 92

Key  : Analysis.Version.DbgEng
Value: 10.0.27920.1001

Key  : Analysis.Version.Description
Value: 10.2506.23.01 amd64fre

Key  : Analysis.Version.Ext
Value: 1.2506.23.1

Key  : Failure.Bucket
Value: INVALID_POINTER_READ_c0000005_citizen-scripting-lua.dll!Unknown

Key  : Failure.Exception.Code
Value: 0xc0000005

Key  : Failure.Exception.IP.Address
Value: 0x7ff8a6a5a2fa

Key  : Failure.Exception.IP.Module
Value: citizen_scripting_lua

Key  : Failure.Exception.IP.Offset
Value: 0x1a2fa

Key  : Failure.Hash
Value: {27bf0b2c-8c83-6e81-5758-32fcc8ca310a}

Key  : Failure.ProblemClass.Primary
Value: INVALID_POINTER_READ

Key  : Timeline.Process.Start.DeltaSec
Value: 91

Key  : WER.OS.Branch
Value: rs5_release

Key  : WER.OS.Version
Value: 10.0.17763.1

Key  : WER.Process.Version
Value: 1.0.0.0

FILE_IN_CAB: 0b32f1d4-037c-47fa-8080-6a933c82fdef.dmp

NTGLOBALFLAG: 0

CONTEXT: (.ecxr)
rax=000000000000003b rbx=0000018a52c70088 rcx=00000000000000df
rdx=1f4aedc082c2b395 rsi=0000000000000000 rdi=0000000000000300
rip=00007ff8a6a5a2fa rsp=0000004a0a1fb850 rbp=0000018a52d264a0
r8=00000100000001b3 r9=00007ff8a6a5a190 r10=00007ff8a6a40000
r11=0000000000000000 r12=0000000000000000 r13=000000003bdf6e08
r14=0000018a52cb2e88 r15=000000003bdf6e08
iopl=0 ov up ei pl nz na pe cy
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010a03
citizen_scripting_lua+0x1a2fa:
00007ff8a6a5a2fa 488b4f30 mov rcx,qword ptr [rdi+30h] ds:0000000000000330=????????????????
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff8a6a5a2fa (citizen_scripting_lua+0x000000000001a2fa)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000330
Attempt to read from address 0000000000000330

PROCESS_NAME: FXServer.exe

READ_ADDRESS: 0000000000000330

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 0000000000000330

STACK_TEXT:
0000004a0a1fb850 0000000000000000 : 0000004a0a1fb8d9 0000000000000000 0000000000000000 0000018a7919de00 : citizen_scripting_lua+0x1a2fa

SYMBOL_NAME: citizen_scripting_lua+1a2fa

MODULE_NAME: citizen_scripting_lua

IMAGE_NAME: citizen-scripting-lua.dll

STACK_COMMAND: ~20s; .ecxr ; kb

FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_citizen-scripting-lua.dll!Unknown

OS_VERSION: 10.0.17763.1

BUILDLAB_STR: rs5_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 1.0.0.18940

FAILURE_ID_HASH: {27bf0b2c-8c83-6e81-5758-32fcc8ca310a}

Followup: MachineOwner

Expected result

not crash

Reproduction steps

Start Server
Refresh Scripts
Crash

Importancy

Crash

Area(s)

ScRT: Lua

Specific version(s)

Havent narrowed it down to a specific build, but from 16237 up it is crashing and at 7290 it is not

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ScRT: LuaIssues/PRs related to the Lua scripting runtimebugcrash

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions