Crash after Foldarea

Posted by Bink03861 on Wed 24 Mar 2004 05:29 AM — 7 posts, 22,372 views.

#0
Hey everyone.

Gotta a major bug problem here i think. My smaug 1.4a crashes everytime after someone folds an area.


The latest log shows this...

Wed Mar 24 00:19:59 2004 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Wed Mar 24 00:19:59 2004 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Wed Mar 24 00:19:59 2004 :: Loading commands
Wed Mar 24 00:19:59 2004 :: Loading sysdata configuration...
Wed Mar 24 00:19:59 2004 :: Loading socials
Wed Mar 24 00:19:59 2004 :: Loading skill table
Wed Mar 24 00:19:59 2004 :: [*****] BUG: fread_skill: unknown skill/spell do_aid
Wed Mar 24 00:19:59 2004 :: [*****] BUG: fread_skill: unknown skill/spell do_bash
Wed Mar 24 00:19:59 2004 :: [*****] BUG: fread_skill: unknown skill/spell do_mount
Wed Mar 24 00:19:59 2004 :: [*****] BUG: fread_skill: unknown skill/spell do_stun
Wed Mar 24 00:19:59 2004 :: Sorting skill table...
Wed Mar 24 00:19:59 2004 :: Remapping slots to sns
Wed Mar 24 00:19:59 2004 :: Loading classes
Wed Mar 24 00:19:59 2004 :: Loading Changes
Wed Mar 24 00:19:59 2004 :: Loading races
Wed Mar 24 00:19:59 2004 :: Loading herb table
Wed Mar 24 00:19:59 2004 :: Loading tongues
Wed Mar 24 00:19:59 2004 :: Making wizlist
Wed Mar 24 00:19:59 2004 :: Initializing request pipe
Wed Mar 24 00:19:59 2004 :: Initializing random number generator
Wed Mar 24 00:19:59 2004 :: Setting time and weather
Wed Mar 24 00:19:59 2004 :: Assigning gsn's
Wed Mar 24 00:19:59 2004 :: Reading in area files...
(help.are)
limbo.are : Rooms: 2 - 99 Objs: 2 - 99 Mobs: 1 - 99
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
Wed Mar 24 00:19:59 2004 :: [*****] FILE: newacad.are LINE: 94
Wed Mar 24 00:19:59 2004 :: [*****] BUG: Load_mobiles: # not found.

It obviously says there is no mobile, but there should be that one in the file. This is the original area of newacad.are nothing has been modded or edited. Can anyone help fix this problem? Thanks
Canada #1
Have you edited you read/writing at all? If you have, that will will most likely be the problem. The other option is to check try booting it in gdb and bt it, but you may need to change called from exit to abort for the backtrace to work.
USA #2
You said it crashed during foldarea, so I'd open up build.c and scour the fold_area() function for the problem. When it crashes during a file write, the resulting file was never completed, and thus the data will be corrupted. This is why it will no longer load - the file is missing the rest of the data it should have.
#3
actually, i wasn't as specific as i could be i guess. It crashes on a copyover after foldarea. Copyovers are fine but then BOOM after a folda xxxxxx.are it shutsdown. When i looked at the stack it gave me nothing. Just a bunch of ??? marks. Any new ideas?
Canada #4
If the stack is a bunch of ???, then you probably aren't targetting the binary file properly. If your core is in /area, from area you want:

gdb ../src/smaug -c core

You may not need the -c, but it can't hurt.
USA #5
Have you checked over fwrite_mobile?
#6
i looked for fwrite mobile but couldn't find it in any of the files.