Ok, after working on this problem for hours on end, it's time to see if
anyone else has any suggestions.
I recently rewrote the good old nanny, and changed it into a menu based
account/login/creation system,
which is all working just fine.. you can login, create accounts, create
characters, and get into the game.
Once you're in the game, everything seems to be working as well,
characters even save correctly.. then
problem #1 hits: a sighandler was installed into the game a while back,
and for some reason, it causes the
mud to auto-copyover 5 ticks/mins after booting. Ok, mud auto-copyovers,
characters are loaded back
onto the game, everything seems to be working fine... then problem #2:
character goes to save and mud
goes *boom*. I ran things through gdb and found out that it's crashing
because ch->desc is invalid.. but
it does make it past the ch->desc != NULL check. I put in some watch
points for any reads/changes to
ch->desc, and it remained valid up until do_save, but once it was in
it.. *boom*. Only one change was
made to do_save, and that was inserting the mysql db insert/update for
accounts, and it requires ch->desc
in order to get the account data ( sprintf( sql, "...blah... %ld",
ch->desc->accnt->id);). I'm also getting an
"error accessing memory" error in gdb when it crashes too.
Does *anyone* have any ideas on what could be happening?
Thanks much!
Jen
--
---
RogueDragon @ A Merging of Fates MUD
telnet://mud.merging.org:5454
icq: 2072355 (inactive atm), yim: roguedragon, aim: roguedragon69
---
Windows - Where do you want to go today?
Linux - Where do you want to go tomorrow?
FreeBSD - When are they going to catch up?