First, get rid of that auto copyover.. Unless you want it. When the mud goes to save, what does ch->desc actually contain? (what's the address)
It sounds like something is stepping on it. We need to trace ch->desc as early as you can. Where is do_save called from? Start there, and trace it with GDB. If it's char_update you should insert some code to break on so as to not have to loop through all the mobiles. Jason > > -----Original Message----- > From: Jennifer King [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 1:43 PM > To: [email protected] > > 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? > > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

