ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
138 stars 31 forks source link

Signal 11 (Segmentation fault), address is 4aed from eea48c72 #164

Closed Yousha closed 5 years ago

Yousha commented 5 years ago
Signal 11 (Segmentation fault), address is 4aed from eea48c72

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0xdc) [0xee2a20cc]
  #1 in [0xeed12410]
  #2 in /lib/i386-linux-gnu/libc.so.6(+0x8dc72) [0xeea48c72]
  #3 in ./samp03svr() [0x80eb3fc]
  #4 in ./samp03svr() [0x80950e4]
  #5 in plugins/crashdetect.so(_ZN18CrashDetectHandler15ProcessCallbackEiPiS0_+0x4bb) [0xee98bb9b]
  #6 in plugins/crashdetect.so(+0x1cfc2) [0xee98ffc2]
  #7 in plugins/crashdetect.so(amx_Exec+0xdc7) [0xee994bc7]

Information:
  System: GNU/Linux
  SA-MP: 0.3.7 R2
  FCNPC: 1.8.2

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80d0a90
  FUNC_CPlayer__Kill: 0x80cb220
  FUNC_CPlayer__EnterVehicle: 0x80cc1c0
  FUNC_CPlayer__ExitVehicle: 0x80cc340
  FUNC_CPlayer__SpawnForWorld: 0x80ccfc0
  FUNC_GetVehicleModelInfo: 0x80d5e00
  FUNC_CConsole__GetIntVariable: 0x80a0070
  FUNC_ClientJoin_RPC: 0x80b0030

Pointers:
  VAR_ServerAuthentication: 0x81ab8ec
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================
ziggi commented 5 years ago

The problem is not in the FCNPC plugin. It seems what you have problems with SQLite usage.

Yousha commented 5 years ago

May I ask how do you know that? and how can I trace it?

ziggi commented 5 years ago

I just look at the 0x80eb3fc address through IDA Pro. But I'm not sure and I don't know how to understand the real reason of the crash. What about crashdetect logs?

Yousha commented 5 years ago

Nothing found... only FCNPC crash files.

Note: crashdetect is enable by default. server.cfg:

plugins crashdetect.so sscanf.so streamer.so mysql.so FCNPC.so discord-connector.so nativechecker.so

Yousha commented 5 years ago

I think something is wrong... I have many FCNPC crash logs but no crashdetect logs ?

Is there a way to test crashdetect if it is working file? like forcing SAMP to crash