nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
131 stars 92 forks source link

Couple server crashes in .16 #1046

Open vaardu opened 4 years ago

vaardu commented 4 years ago

Hi,

I pushed our server to .16 and have faced couple crashes since then, that I hope you could perhaps give some guidance to or see if something is truly crashing on nwnx?

Couple traces from the crashes we've had. I appreciate all the help if these point to specifics in our end.

NWNX Signal Handler:
 NWNX has crashed. Fatal error: Segmentation fault (11).

  Backtrace:
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Platform5Debug13GetStackTraceB5cxx11Eh+0x3a) [0x7f9a9364b84a]
    /nwn/nwnx/NWNX_Core.so(nwnx_signal_handler+0x7d) [0x7f9a935b1e7d]
    /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7f9a92fff840]
    /lib/x86_64-linux-gnu/libc.so.6(cfree+0x1d) [0x7f9a9304c9bd]
    ./nwserver-linux(_ZN11CGameEffectD2Ev+0x5c) [0x55b36455c7dc]
    ./nwserver-linux(_ZN10CNWSObjectD2Ev+0x121) [0x55b3645a4241]
    ./nwserver-linux(_ZN8CNWSItemD2Ev+0x158) [0x55b36457d018]
    ./nwserver-linux(_ZN8CNWSItemD0Ev+0x11) [0x55b36457d071]
    ./nwserver-linux(_ZN13CNWSInventoryD2Ev+0x4d) [0x55b3645773cd]
    ./nwserver-linux(_ZN13CNWSInventoryD0Ev+0x11) [0x55b364577401]
    ./nwserver-linux(_ZN12CNWSCreatureD2Ev+0x1ad) [0x55b3644ec27d]
    ./nwserver-linux(_ZN12CNWSCreatureD0Ev+0x11) [0x55b3644ec691]
    ./nwserver-linux(_ZN10CNWSModule12EventHandlerEjjPvjj+0xf6) [0x55b364583616]
    ./nwserver-linux(_ZN15CServerAIMaster11UpdateStateEv+0x4e7) [0x55b3645fa8f7]
    ./nwserver-linux(_ZN21CServerExoAppInternal8MainLoopEv+0x1aa) [0x55b36460d31a]
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Services9HooksImpl23HookLandingHolderShared11HookLandingILm3162480EiP21CServerExoAppInternalJEEET0_T1_DpT2_+0x52) [0x7f9a935b73f2]
    ./nwserver-linux(<UNKNOWN>) [0x55b3643e45d5]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f9a92fec09b]
    ./nwserver-linux(_start+0x2a) [0x55b3643e7afa]

Second:

 NWNX Signal Handler:
 NWNX has crashed. Fatal error: Segmentation fault (11).

  Backtrace:
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Platform5Debug13GetStackTraceB5cxx11Eh+0x3a) [0x7fec047bd84a]
    /nwn/nwnx/NWNX_Core.so(nwnx_signal_handler+0x7d) [0x7fec04723e7d]
    /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7fec04171840]
    ./nwserver-linux(_ZN14CNWSPlayerTURD15CopyAutomapDataEiP13CExoArrayListIjEPPh+0xca) [0x55b25ef1fd6a]
    ./nwserver-linux(_ZN10CNWSPlayer8DropTURDEv+0x238) [0x55b25ef16b48]
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Services9HooksImpl23HookLandingHolderShared11HookLandingILm2808080EvP10CNWSPlayerJEEET0_T1_DpT2_+0x52) [0x7fec047296c2]
    ./nwserver-linux(_ZN21CServerExoAppInternal17RemovePCFromWorldEP10CNWSPlayer+0x318) [0x55b25ef61c68]
    ./nwserver-linux(_ZN21CServerExoAppInternal16PlayerListChangeEjii+0xa9c) [0x55b25ef6e7dc]
    ./nwserver-linux(_ZN17CNetLayerInternal15SendBNDPMessageEjjRK10CExoString+0x1a2) [0x55b25eda7422]
    ./nwserver-linux(_ZN17CNetLayerInternal17HandleBNDMMessageEjPhj+0xcb) [0x55b25eda780b]
    ./nwserver-linux(_ZN17CNetLayerInternal21ProcessReceivedFramesEi+0xc9) [0x55b25edb0049]
    ./nwserver-linux(_ZN21CServerExoAppInternal8MainLoopEv+0x7f) [0x55b25ef6d1ef]
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Services9HooksImpl23HookLandingHolderShared11HookLandingILm3162480EiP21CServerExoAppInternalJEEET0_T1_DpT2_+0x52) [0x7fec047293f2]
    ./nwserver-linux(<UNKNOWN>) [0x55b25ed445d5]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7fec0415e09b]
    ./nwserver-linux(_start+0x2a) [0x55b25ed47afa]

And third:

NWNX Signal Handler:
 NWNX has crashed. Fatal error: Segmentation fault (11).

  Backtrace:
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Platform5Debug13GetStackTraceB5cxx11Eh+0x3a) [0x7ff80955884a]
    /nwn/nwnx/NWNX_Core.so(nwnx_signal_handler+0x7d) [0x7ff8094bee7d]
    /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7ff808f0c840]
    ./nwserver-linux(_ZN10CNWSObject16UpdateEffectListEjj+0x13e) [0x5643395e138e]
    ./nwserver-linux(_ZN8CNWSItem8AIUpdateEv+0x5e) [0x5643395b673e]
    ./nwserver-linux(_ZN15CServerAIMaster11UpdateStateEv+0x534) [0x564339639944]
    ./nwserver-linux(_ZN21CServerExoAppInternal8MainLoopEv+0x1aa) [0x56433964c31a]
    /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Services9HooksImpl23HookLandingHolderShared11HookLandingILm3162480EiP21CServerExoAppInternalJEEET0_T1_DpT2_+0x52) [0x7ff8094c43f2]
    ./nwserver-linux(<UNKNOWN>) [0x5643394235d5]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7ff808ef909b]
    ./nwserver-linux(_start+0x2a) [0x564339426afa]
driller-nwn commented 4 years ago

I have this same issue. Definitely crashing since .16.

NWNX Signal Handler:

NWNX has crashed. Fatal error: Segmentation fault (11). Please file a bug at https://github.com/nwnxee/unified/issues

Backtrace: /nwn/nwnx/NWNX_Core.so(_ZN7NWNXLib8Platform5Debug13GetStackTraceB5cxx11Eh+0x3a) [0x7fd1b910184a] /nwn/nwnx/NWNX_Core.so(nwnx_signal_handler+0x7d) [0x7fd1b9067e7d] /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7fd1b8ab5840] ./nwserver-linux(_ZN17CNWSCreatureStats13SaveClassInfoEP7CResGFFP10CResStruct+0x6d7) [0x55d4ee5dfdd7] ./nwserver-linux(_ZN17CNWSCreatureStats9SaveStatsEP7CResGFFP10CResStruct+0x941) [0x55d4ee5eedd1] ./nwserver-linux(_ZN12CNWSCreature12SaveCreatureEP7CResGFFP10CResStructiiii+0xde) [0x55d4ee577dbe] ./nwserver-linux(_ZN8CNWSArea13SaveCreaturesEP7CResGFFP10CResStructR13CExoArrayListIjEi+0x14b) [0x55d4ee6d100b] ./nwserver-linux(_ZN8CNWSArea7SaveGITEP7CResGFFP10CResStructR13CExoArrayListIjEi+0x29b) [0x55d4ee6d4d0b] ./nwserver-linux(_ZN25CNWVirtualMachineCommands28ExecuteCommandAreaManagementEii+0x59b) [0x55d4ee75daeb] ./nwserver-linux(_ZN15CVirtualMachine11ExecuteCodeEPiSt10shared_ptrI9DataBlockEP31CVirtualMachineDebuggingContext+0x10dd) [0x55d4eeb80efd] ./nwserver-linux(_ZN15CVirtualMachine13RunScriptFileEi+0xa9) [0x55d4eeb82689] ./nwserver-linux(_ZN15CVirtualMachine9RunScriptEP10CExoStringji+0x12f) [0x55d4eeb834bf] ./nwserver-linux(_ZN10CNWSDialog9RunScriptEP10CNWSObjectRK7CResRefRK13CExoArrayListI11ScriptParamE+0x9d) [0x55d4ee6eb56d] ./nwserver-linux(_ZN10CNWSDialog11HandleReplyEjP10CNWSObjectjij+0x42c) [0x55d4ee6ece7c] ./nwserver-linux(_ZN10CNWSObject11ReplyDialogEjjij+0x3a) [0x55d4ee6420ea] ./nwserver-linux(_ZN11CNWSMessage33HandlePlayerToServerDialogMessageEP10CNWSPlayerh+0x128) [0x55d4ee6f4128] ./nwserver-linux(_ZN11CNWSMessage27HandlePlayerToServerMessageEjPhj+0x43b) [0x55d4ee70719b] ./nwserver-linux(_ZN21CServerExoAppInternal13HandleMessageEjPhji+0x9d) [0x55d4ee6a5ffd] ./nwserver-linux(_ZN17CNetLayerInternal17UncompressMessageEjPhj+0x266) [0x55d4ee4e77f6] ./nwserver-linux(_ZN15CNetLayerWindow23UnpacketizeFullMessagesEi+0x407) [0x55d4ee4e7d27]

mtijanic commented 4 years ago

If either one of you is using OBJECT_TAG_LOOKUP optimization from nwnx_optimizations, please disable it. It might be related to this. I'll delete that optimization since it's not really helpful and could cause crashes.