Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Today, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, DotBot, Google, Yahoo!, Majestic-12

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Probs with hotboot?
Forum Rules | Mark all | Recent Posts

Probs with hotboot?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 27, 2002, 1:14 pm
Go to the top of the page
Go to the bottom of the page

Pharas

GroupMembers
Posts27
JoinedMay 22, 2002

I installed samson's hotboot snippet, i changed what i needed to for stock smaug, but for some reason i can't find the copyover_recover function in hotboot.c. my mud compiles fine, but when i log on and use the hotboot command it reaches copyover_recover and locks completely up? any ideas?

Pharas
       
Post is unread #2 Jun 27, 2002, 1:39 pm
Go to the top of the page
Go to the bottom of the page

Pharas

GroupMembers
Posts27
JoinedMay 22, 2002

sorry about not making to much sense. i found the copyover_recover function( it's hotboot_recovery). i will just post my log file:

TThu Jun 27 15:21:48 2002 :: Hotboot initiated by Pharas.
Thu Jun 27 15:21:48 2002 :: Preserving world state....
Thu Jun 27 15:21:48 2002 :: Saving player files and connection states....
Thu Jun 27 15:21:48 2002 :: Executing hotboot....
Thu Jun 27 15:21:48 2002 :: 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
Thu Jun 27 15:21:48 2002 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Thu Jun 27 15:21:48 2002 :: Loading commands
Thu Jun 27 15:21:48 2002 :: Loading sysdata configuration...
Thu Jun 27 15:21:48 2002 :: Loading socials
Thu Jun 27 15:21:48 2002 :: Loading skill table
Thu Jun 27 15:21:48 2002 :: Sorting skill table...
Thu Jun 27 15:21:48 2002 :: Remapping slots to sns
Thu Jun 27 15:21:48 2002 :: Loading classes
Thu Jun 27 15:21:48 2002 :: Loading races
Thu Jun 27 15:21:48 2002 :: Loading herb table
Thu Jun 27 15:21:48 2002 :: Loading tongues
Thu Jun 27 15:21:48 2002 :: Making wizlist
Thu Jun 27 15:21:48 2002 :: Initializing request pipe
Thu Jun 27 15:21:48 2002 :: Initializing random number generator
Thu Jun 27 15:21:48 2002 :: Setting time and weather
Thu Jun 27 15:21:48 2002 :: Assigning gsn's
Thu Jun 27 15:21:48 2002 :: Reading in area files...
(help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 1 - 43 Objs: 2 - 99 Mobs: 1 - 99
newacad.are : Rooms: 10300 - 10499 Objs: 10300 - 10499 Mobs: 10300 - 10499
newgate.are : Rooms: 100 - 199 Objs: 100 - 199 Mobs: 100 - 199
newdark.are : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499
haon.are : Rooms: 6000 - 6156 Objs: 6000 - 6155 Mobs: 6000 - 6117
midennir.are : Rooms: 3500 - 3590 Objs: 3500 - 3550 Mobs: 3500 - 3550
sewer.are : Rooms: 7001 - 7445 Objs: 7190 - 7310 Mobs: 7000 - 7206
redferne.are : Rooms: 7900 - 7918 Objs: 7909 - 7911 Mobs: 7900 - 7900
grove.are : Rooms: 8901 - 8999 Objs: 8900 - 8919 Mobs: 8900 - 8911
dwarven.are : Rooms: 6500 - 6554 Objs: 6502 - 6519 Mobs: 6500 - 6517
daycare.are : Rooms: 6601 - 6651 Objs: 6600 - 6647 Mobs: 6600 - 6610
grave.are : Rooms: 3600 - 3651 Objs: 3600 - 3613 Mobs: 3600 - 3605
chapel.are : Rooms: 3405 - 3475 Objs: 3400 - 3430 Mobs: 3400 - 3416
astral.are : Rooms: 800 - 899 Objs: 800 - 899 Mobs: 800 - 899
Build.are : Rooms: 9500 - 9589 Objs: 0 - 0 Mobs: 0 - 0
pixie.are : Rooms: 2070 - 2099 Objs: 2070 - 2076 Mobs: 2070 - 2073
export.are : Rooms: 9810 - 9899 Objs: 9810 - 9899 Mobs: 9800 - 9899
srefuge.are : Rooms: 1500 - 1599 Objs: 1500 - 1599 Mobs: 1500 - 1599
manor.are : Rooms: 2400 - 2499 Objs: 2400 - 2499 Mobs: 2405 - 2484
unholy.are : Rooms: 2101 - 2172 Objs: 2101 - 2150 Mobs: 2101 - 2120
gallery.are : Rooms: 24800 - 24899 Objs: 24800 - 24899 Mobs: 24800 - 24899
Thu Jun 27 15:21:48 2002 :: Fixing exits
Thu Jun 27 15:21:48 2002 :: Initializing economy
Thu Jun 27 15:21:48 2002 :: Loading world state...
Thu Jun 27 15:21:48 2002 :: World state: loading mobs
Thu Jun 27 15:21:48 2002 :: World state: loading objs
Thu Jun 27 15:21:48 2002 :: Resetting areas
Resetting: gods.are
Resetting: limbo.are
Resetting: newacad.are
Resetting: newgate.are
Resetting: newdark.are
Resetting: haon.are
Resetting: midennir.are
Resetting: sewer.are
Resetting: redferne.are
Resetting: grove.are
Resetting: dwarven.are
Resetting: daycare.are
Resetting: grave.are
Resetting: chapel.are
Resetting: astral.are
Resetting: Build.are
Resetting: pixie.are
Resetting: export.are
Resetting: srefuge.are
Resetting: manor.are
Resetting: unholy.are
Resetting: gallery.are
Thu Jun 27 15:21:48 2002 :: Loading buildlist
Thu Jun 27 15:21:48 2002 :: ../gods/Pharas
Thu Jun 27 15:21:48 2002 :: Loading boards
Thu Jun 27 15:21:48 2002 :: ../boards/immortal.brd
Thu Jun 27 15:21:48 2002 :: ../boards/highgod.brd
Thu Jun 27 15:21:48 2002 :: Loading clans
Thu Jun 27 15:21:48 2002 :: Loading clans...
Thu Jun 27 15:21:48 2002 :: vampire.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: druid.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: warrior.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: augurer.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: thief.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: cleric.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: mage.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: ranger.gui
Thu Jun 27 15:21:48 2002 :: Loading clan storage room
Thu Jun 27 15:21:48 2002 :: $
Thu Jun 27 15:21:48 2002 :: Done clans
Thu Jun 27 15:21:48 2002 :: Loading councils
Thu Jun 27 15:21:48 2002 :: Loading councils...
Thu Jun 27 15:21:48 2002 :: $
Thu Jun 27 15:21:48 2002 :: Done councils
Thu Jun 27 15:21:48 2002 :: Loading deities
Thu Jun 27 15:21:48 2002 :: Loading deities...
Thu Jun 27 15:21:48 2002 :: $
Thu Jun 27 15:21:48 2002 :: Done deities
Thu Jun 27 15:21:48 2002 :: Loading watches
Thu Jun 27 15:21:48 2002 :: Loading bans
Thu Jun 27 15:21:48 2002 :: Done.
Thu Jun 27 15:21:48 2002 :: Loading reserved names
Thu Jun 27 15:21:48 2002 :: Loading corpses
Thu Jun 27 15:21:48 2002 :: Loading Immortal Hosts
Thu Jun 27 15:21:48 2002 :: Done.
Thu Jun 27 15:21:48 2002 :: Loading Projects
Thu Jun 27 15:21:48 2002 :: Loading Morphs
Thu Jun 27 15:21:48 2002 :: Optimizing Morphs.
Thu Jun 27 15:21:48 2002 :: Done.
Thu Jun 27 15:21:48 2002 :: Loading Colors
Thu Jun 27 15:21:48 2002 :: Initiating hotboot recovery.
Write_to_descriptor: Socket operation on non-socket
Write_to_descriptor: Socket operation on non-socket
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor

anyone have any ideas?
       
Post is unread #3 Jun 27, 2002, 2:52 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Thu Jun 27 15:21:48 2002 :: Initiating hotboot recovery.
Write_to_descriptor: Socket operation on non-socket
Write_to_descriptor: Socket operation on non-socket
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor
Write_to_descriptor: Bad file descriptor


Appears to be a problem in the save/load format of the copyover.dat file that gets created. This is an indication that the values being passed are not synchronized anymore. You need to check the parts of do_hotboot and hotboot_recover that deal with this and be absolutely sure that the order they are saved in matches the order they are loaded in. What is likely happening is the -1 being loaded and misinterpreted as a descritpor, which the OS will not like and therefore generates that nice long list of errors you got.
       
Post is unread #4 Jun 27, 2002, 3:02 pm
Go to the top of the page
Go to the bottom of the page

Pharas

GroupMembers
Posts27
JoinedMay 22, 2002

okie will do, thanks for the help
       
Post is unread #5 Jun 27, 2002, 3:35 pm   Last edited Nov 24, 2007, 11:42 am by Samson
Go to the top of the page
Go to the bottom of the page

Pharas

GroupMembers
Posts27
JoinedMay 22, 2002

okie here's the code i have:

            fprintf( fp, "%d %d %d %d %d %s %s\n",
                     d->descriptor,
#ifdef MCCP
                     d->can_compress,
#else
                     0,
#endif
                     och->in_room->vnum, d->port, d->idle, och->name, d->host );
            /* One of two places this gets changed */
            och->pcdata->hotboot = TRUE;
            save_char_obj( och );
#ifdef MCCP
            write_to_descriptor( d, buf, 0 );
            compressEnd( d );
#else
		write_to_descriptor( d->descriptor, buf, 0 );
#endif
        }
    }

    fprintf( fp, "0 0 0 0 0 0 %d maxp maxp\n", sysdata.maxplayers );
    fprintf( fp, "-1\n" );
    FCLOSE( fp );


that's do_hotboot

and here's hotboot_recovery:

   fscanf( fp, "%d %d %d %d %d %s %s\n", &desc, &dcompress, &room, &dport, &idle, name, host );

        if (desc == -1 || feof(fp) )
            break;

	  if( !str_cmp( name, "maxp" ) || !str_cmp( host, "maxp" ) )
	  {
	   maxp = idle;
	   continue;
	  }


now up there in do_hotboot there is maxp twice does it really need to be there? also i got an error during compile that maxp might be uninitialized? could that be the prob?
       
Post is unread #6 Jun 28, 2002, 9:12 pm   Last edited Nov 24, 2007, 11:44 am by Samson
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

Ok, I ran into the same problem when installing hotboot. I went through changing alot of stuff even so that if it gives a bad desc like that and continues to eat up space by making huge log files with that error it would shutdown. but i found that you might be able to fix it with it like this.
Just changing the continue to break in this function.
Hope this helps out you and anyone else that has this problem.

Try changing this in hotboot.c

#ifdef MCCP
        if( !dcompress && !write_to_descriptor_old( desc, "\r\nThe ether swirls in chaos.\r\n", 0 ) )
#else
	  if( !write_to_descriptor( desc, "\r\nThe ether swirls in chaos.\r\n", 0 ) )
#endif
        {
            close( desc ); /* nope */
            continue;
        }

To this.
[code]#ifdef MCCP
        if( !dcompress && !write_to_descriptor_old( desc, "\r\nThe ether swirls in chaos.\r\n", 0 ) )
#else
	  if( !write_to_descriptor( desc, "\r\nThe ether swirls in chaos.\r\n", 0 ) )
#endif
        {
            close( desc ); /* nope */
            break;
        }
       
Pages:<< prev 1 next >>