leo_x
Joined: 25 Aug 2010 Posts: 75
|
Posted: Wed Aug 25, 2010 23:22 Post subject: help with a segfault |
|
|
hello, first i want to say thank you to all the people that have worked on nwnx it's an amazing thing.
second, i'm having a problem with segfaults. i'm not very familiar with gdb or debugging. i'd say i was not bad at C, but clearly i did something wrong
i'm using Ubuntu 8.04, NWN Extender v2.8-dev and the following plugins:
Code: |
* Searching for signatures...
* Loading modules...
FIXES plugin registered.
FUNCS plugin registered.
SYSTEM plugin registered.
RESETPLUGIN plugin registered.
DMLOGS plugin registered.
EVENTS plugin registered.
ODBC plugin registered.
CHAT plugin registered.
DEFENSES plugin registered.
WEAPONS plugin registered.
HASHSET plugin registered.
LETO plugin registered.
STRUCTS plugin registered.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109 |
i have modified nwnx_weapons, nwnx_defenses. Here is the backtrace. I was thinking it had to be from a change i made in nwnx_weapons, but I'm not sure because it's totally sporadic and it's been ages since i changed it. [EDIT] it seems the vast bulk of these crashes occur right after a reset. players jump back on immediately when it shows up on the list. could their be some initialization issues?
Code: | (gdb) backtrace
#0 0x08145af1 in CNWSCreatureStats::GetAttackModifierVersus ()
#1 0x08130b00 in CNWSCreature::EquipMostDamagingRangedWeapon ()
#2 0x08233ee8 in CNWVirtualMachineCommands::ExecuteCommandActionEquipMostDamagingRanged ()
#3 0x08231a7e in CNWVirtualMachineCommands::ExecuteCommand ()
#4 0x0826042e in CVirtualMachine::ExecuteCode ()
#5 0x082627d7 in CVirtualMachine::RunScriptFile ()
#6 0x08262629 in CVirtualMachine::RunScriptSituation ()
#7 0x0811c2df in CNWSCreature::EventHandler ()
#8 0x08095f96 in CServerAIMaster::UpdateState ()
#9 0x080a0530 in CServerExoAppInternal::MainLoop ()
#10 0x0804bbe7 in main ()
|
thank for any help you can give. i can post any further output from gdb if necessary.[/code] |
|