Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Keirath, Yandex, Bing, DotBot

Members: 1
Guests: 19
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
636
Van1406890
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Hotboot
Forum Rules | Mark all | Recent Posts

Hotboot
< Newer Topic :: Older Topic > Having trouble with it

Pages:<< prev 1 next >>
Post is unread #1 Aug 26, 2004, 8:02 pm
Go to the top of the page
Go to the bottom of the page

Chalgyr

GroupMembers
Posts5
JoinedAug 26, 2004

Hello,

I'm very new to SMAUG in general, and have been coding my own ROM for a couple of years now. While I don't profess to be a great ROM coder, I do know the ins and outs of my base pretty well. Problem is, I am trying to help a friend with his SMAUG now, and we both felt a hotboot would be a good first bit of code to put in so we could make our changes more easily. I think I'm finding my way around the code pretty well now, but I am struggling with the hotboot code snippet I found from AFK. I believe that I have it in properly (I get a nice clean compile), but every time I try to use the command, we disconnect from server and reboot a minute or so later. It's a SMAUG 4.1 if that info's of any help.

If this is proper function for the command, I apologize - however, since my ROM's copyover kicks through instantly, I suspect that I do have a problem here.

Any and all pointers would be appreciated - not just in this instance (though it's what I'm currently most curious about), but SMAUG coding references in general as I fiddle about here.

Thanks in advance.
       
Post is unread #2 Aug 26, 2004, 8:35 pm
Go to the top of the page
Go to the bottom of the page

Odis

GroupMembers
Posts46
JoinedMar 8, 2005

I'm going to take it you mean SMAUG 1.4

Anyways, Samson would probably be able to help you the best. I do not use his snippet currently, so I do not know the in's and out's of it. However, any gdb output would be useful in this matter.

I think the problem is probably in the part containing the execl function or w/e its called. Thats where I've had trouble with mine.

Perhaps look at the logs and bug.txt files. Do they tell you of any errors? It may be easier to track it down that way.
       
Post is unread #3 Aug 27, 2004, 5:00 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

By disconnect, do you mean it delays for a long time or do you actually crash and the mud restarts again? The save_world functionality of the snippet can cause an unusually long delay in the process, you sure it's not just that?

If you are getting crashes, we will need to see the very tail end of your log files, starting from where is say "X initiated hotboot" to the end of the file. GDB output would be helpful but 99% of all copyover problems happen after the process restarts and GDB will be useless there.

If the logs and gdb are of no help, try typing "hotboot debug" and then look in your system dir for the copyover.dat file and post the contents of that here. That should provide plenty of valuable help.
       
Post is unread #4 Aug 27, 2004, 5:12 am
Go to the top of the page
Go to the bottom of the page

Chalgyr

GroupMembers
Posts5
JoinedAug 26, 2004

First off, thanks for the quick replies and likely then, it's 1.4 not 4.1. Again, I really don't know much about SMAUG yet.


The flow of time is halted momentarily as the world is reshaped!
%%% Disconnected from server.

That's what see game-side. It's a hard disconnect.

Fri Aug 27 07:02:29 2004 :: Hotboot initiated by Chalgyr.
Fri Aug 27 07:02:29 2004 :: Preserving world state....
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2
../hotboot/2: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 6
../hotboot/6: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 8
../hotboot/8: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 22
../hotboot/22: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2090
../hotboot/2090: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2091
../hotboot/2091: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2096
../hotboot/2096: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2097
../hotboot/2097: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 50
../hotboot/50: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2104
../hotboot/2104: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2105
../hotboot/2105: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2108
../hotboot/2108: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 10300
../hotboot/10300: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2113
../hotboot/2113: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 10305
../hotboot/10305: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2116
../hotboot/2116: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 70
../hotboot/70: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 74
../hotboot/74: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2123
../hotboot/2123: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2124
../hotboot/2124: No such file or directory
Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 2126
../hotboot/2126: No such file or directory
more of the same, then:

Fri Aug 27 07:02:29 2004 :: [*****] BUG: save_world: fopen 6125
../hotboot/6125: No such file or directory
Fri Aug 27 07:02:29 2004 :: Saving player files and connection states....
Fri Aug 27 07:02:29 2004 :: Executing hotboot....
Fri Aug 27 07:02:29 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
Fri Aug 27 07:02:29 2004 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------


Essentially the game restarts at this point on it's own. I also see this message when it's trying to boot, and even (sometimes, not always) when I do a ./startup 6666 &

Segmentation fault (core dumped)
Segmentation fault (core dumped)
Segmentation fault (core dumped)
Segmentation fault (core dumped)
Segmentation fault (core dumped)
Segmentation fault (core dumped)
Segmentation fault (core dumped)


The above message scrolls by as such while I'm in the shell.

I will again admit to being a newb when it comes to SMAUG at this point. None of this is expected behavior with copyover or how my files work in my ROM, so it's all rather strange to me.

Thanks for the replies so far guys, and I appreciate any and all help in my direction (it should be obvious I need lots of help)
       
Post is unread #5 Aug 27, 2004, 5:33 am
Go to the top of the page
Go to the bottom of the page

Chalgyr

GroupMembers
Posts5
JoinedAug 26, 2004

looking through the buglist that came up in log, I suspect it's the need to make a hotboot dir.

I recall seeing that in the file last night, but I believe (I don't have the page in front of me now) that it said to make it in the 'dist dir' - and I'm not entirely sure what you mean by that. Do you mean in the basic 'SMAUG' dir, or somewhere else? It looks as though I may have put it in the wrong place.

Is there anything I need to do with the dir once I've created the path, or does the code take care of the rest?

Thanx
       
Post is unread #6 Aug 27, 2004, 5:37 am
Go to the top of the page
Go to the bottom of the page

Chalgyr

GroupMembers
Posts5
JoinedAug 26, 2004



After fiddling around with directory locations at work just now - I found that I had it in the wrong place, and it seems to be working now.

However, the (core dump) line I sometimes get while starting up is still curious to me. Is this a normal message to see when booting a SMAUG?

And sorry for chewin' up time on the other. Just a silly mistake obviously.
       
Post is unread #7 Aug 27, 2004, 8:50 pm
Go to the top of the page
Go to the bottom of the page

Odis

GroupMembers
Posts46
JoinedMar 8, 2005

Heh, we all make mistakes. I remember when I first go into coding, I asked a question on Gammon's forum that I just couldnt figure out. Turn's out I forgot to include stdio.h at the top. Very very silly mistake, considering I knew it should be there. So yeah, it happens.

As for the core dump...not, its not something that should be happening. Since it is actually producing a core, perhaps you can run it through gdb? I don't really know where else to start, except what the logs and bugs file might tell us.
       
Post is unread #8 Aug 28, 2004, 8:27 am
Go to the top of the page
Go to the bottom of the page

Chalgyr

GroupMembers
Posts5
JoinedAug 26, 2004

Here's what I type to boot us (my buddy needs a SMAUG coder, I think, lol):

./startup 6666 &

what I see immediately after:

[1] 26730
Segmentation fault (core dumped)
Segmentation fault (core dumped)


We came up fine, but that just doesn't look right to me.

Here's what all I saw in GDB (looks like the custom slay snippet I put in for fun is being odd):

Sat Aug 28 10:11:21 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
Sat Aug 28 10:11:21 2004 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Sat Aug 28 10:11:21 2004 :: Loading commands
Sat Aug 28 10:11:21 2004 :: Loading sysdata configuration...
Sat Aug 28 10:11:21 2004 :: Loading socials
Sat Aug 28 10:11:21 2004 :: Loading skill table
Sat Aug 28 10:11:21 2004 :: Sorting skill table...
Sat Aug 28 10:11:21 2004 :: Remapping slots to sns
Sat Aug 28 10:11:21 2004 :: Loading classes
Sat Aug 28 10:11:21 2004 :: Loading races
Sat Aug 28 10:11:21 2004 :: Loading herb table
Sat Aug 28 10:11:21 2004 :: Loading tongues
Sat Aug 28 10:11:21 2004 :: Making wizlist
Sat Aug 28 10:11:21 2004 :: Building wizinfo
Sat Aug 28 10:11:21 2004 :: Initializing random number generator
Sat Aug 28 10:11:21 2004 :: Setting time and weather
Sat Aug 28 10:11:21 2004 :: Assigning gsn's
Sat Aug 28 10:11:21 2004 :: Reading in area files...
(help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 2 - 99 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
Sat Aug 28 10:11:21 2004 :: Fixing exits
Sat Aug 28 10:11:21 2004 :: Initializing economy
Sat Aug 28 10:11:21 2004 :: Resetting areas
Sat Aug 28 10:11:21 2004 :: Loading buildlist
Sat Aug 28 10:11:21 2004 :: ../gods/Admin
Sat Aug 28 10:11:21 2004 :: ../gods/Wizard
Sat Aug 28 10:11:21 2004 :: ../gods/Chalgyr
Sat Aug 28 10:11:21 2004 :: Loading boards
Sat Aug 28 10:11:21 2004 :: ../boards/immortal.brd
Sat Aug 28 10:11:21 2004 :: ../boards/highgod.brd
Sat Aug 28 10:11:21 2004 :: Loading clans
Sat Aug 28 10:11:21 2004 :: Loading clans...
Sat Aug 28 10:11:21 2004 :: vampire.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: druid.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: warrior.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: augurer.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: thief.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: cleric.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: mage.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: ranger.gui
Sat Aug 28 10:11:21 2004 :: Cannot open clan vault
Sat Aug 28 10:11:21 2004 :: $
Sat Aug 28 10:11:21 2004 :: Done clans
Sat Aug 28 10:11:21 2004 :: Loading councils
Sat Aug 28 10:11:21 2004 :: Loading councils...
Sat Aug 28 10:11:21 2004 :: $
Sat Aug 28 10:11:21 2004 :: Done councils
Sat Aug 28 10:11:21 2004 :: Loading deities
Sat Aug 28 10:11:21 2004 :: Loading deities...
Sat Aug 28 10:11:21 2004 :: $
Sat Aug 28 10:11:21 2004 :: Done deities
Sat Aug 28 10:11:21 2004 :: Loading watches
Sat Aug 28 10:11:21 2004 :: Loading bans
Sat Aug 28 10:11:21 2004 :: Done.
Sat Aug 28 10:11:21 2004 :: Loading reserved names
Sat Aug 28 10:11:21 2004 :: Loading slay table
Sat Aug 28 10:11:21 2004 :: [*****] BUG: fread_word: EOF encountered on read.

Sat Aug 28 10:11:21 2004 :: [*****] BUG: Load_slay_file: bad section: END
Sat Aug 28 10:11:21 2004 :: [*****] BUG: fread_letter: EOF encountered on read.

Sat Aug 28 10:11:21 2004 :: [*****] BUG: Load_slay_file: # not found.
Sat Aug 28 10:11:21 2004 :: Loading corpses
Sat Aug 28 10:11:21 2004 :: Loading Immortal Hosts
Sat Aug 28 10:11:21 2004 :: Done.
Sat Aug 28 10:11:21 2004 :: Loading Projects
Sat Aug 28 10:11:21 2004 :: Loading Morphs
Sat Aug 28 10:11:21 2004 :: Done.
Sat Aug 28 10:11:21 2004 :: Initializing socket
Sat Aug 28 10:11:21 2004 :: I3: Loading I3 command table...
Sat Aug 28 10:11:21 2004 :: I3: Loading Intermud-3 network data...
Sat Aug 28 10:11:21 2004 :: I3: Loading I3 router data...
Sat Aug 28 10:11:21 2004 :: I3: Loading I3 help file...
Sat Aug 28 10:11:21 2004 :: I3: Loading color table...
Sat Aug 28 10:11:21 2004 :: I3: Intermud-3 network data loaded. Autoconnect not set. Will need to connect manually.
Sat Aug 28 10:11:21 2004 :: IMC: Loading IMC2 command table...
Sat Aug 28 10:11:21 2004 :: IMC: Loading IMC2 network data...
Sat Aug 28 10:11:21 2004 :: IMC: Loading IMC2 help file...
Sat Aug 28 10:11:21 2004 :: IMC: Loading IMC2 color table...
Sat Aug 28 10:11:21 2004 :: IMC: IMC2 data loaded. Autoconnect not set. IMC2 will need to be connected manually.
Sat Aug 28 10:11:21 2004 :: (Name Not Set) ready at address

-------

The game ran fine it seemed, and I shutdown as normal.
       
Post is unread #9 Aug 28, 2004, 4:32 pm
Go to the top of the page
Go to the bottom of the page

Odis

GroupMembers
Posts46
JoinedMar 8, 2005

Could you run gdb on the core file and post the backtrace?
       
Post is unread #10 Aug 29, 2004, 1:20 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

You should also avoid assuming you need to start the mud up everytime you make changes. Since your logs show that it loaded and ran, it looks to me like it tried to start another instance and for whatever reason it crashed instead of just stopping itself. This sort of behaviour would be caught by the startup script that comes with FUSS btw. You'd be surprised how often people try to do this
       
Pages:<< prev 1 next >>