Problem When Running Smaug

Posted by Colton on Sun 31 Jul 2005 06:19 PM — 17 posts, 68,210 views.

#0
Not exactly sure what the problem is...


Starting program: /cygdrive/c/smaugfuss/src/smaug.exe
Sun Jul 31 14:15:31 2005 :: 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
Sun Jul 31 14:15:31 2005 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Sun Jul 31 14:15:31 2005 :: Loading commands
Sun Jul 31 14:15:31 2005 :: Loading sysdata configuration...
Sun Jul 31 14:15:31 2005 :: [*****] BUG: Fread_sysdata: no match: IMCMailVnum
Sun Jul 31 14:15:31 2005 :: [*****] BUG: Fread_sysdata: no match: 0
Sun Jul 31 14:15:31 2005 :: Loading socials
Sun Jul 31 14:15:31 2005 :: Loading skill table
Sun Jul 31 14:15:31 2005 :: Sorting skill table...
Sun Jul 31 14:15:31 2005 :: Remapping slots to sns
Sun Jul 31 14:15:31 2005 :: Loading classes
Sun Jul 31 14:15:31 2005 :: Loading races
Sun Jul 31 14:15:31 2005 :: Loading herb table
Sun Jul 31 14:15:31 2005 :: Loading tongues
Sun Jul 31 14:15:31 2005 :: Making wizlist
Sun Jul 31 14:15:31 2005 :: Initializing random number generator
Sun Jul 31 14:15:31 2005 :: Setting time and weather
Sun Jul 31 14:15:31 2005 :: Assigning gsn's
Sun Jul 31 14:15:31 2005 :: 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
Sun Jul 31 14:15:31 2005 :: Fixing exits
Sun Jul 31 14:15:31 2005 :: Initializing economy
Sun Jul 31 14:15:31 2005 :: Resetting areas
Sun Jul 31 14:15:31 2005 :: Loading buildlist
Sun Jul 31 14:15:31 2005 :: ../gods/Corpus
Corpus.are : Rooms: 25000 - 25099 Objs: 25000 - 25099 Mobs: 25000 - 25099
Sun Jul 31 14:15:31 2005 :: ../gods/Enurai
Sun Jul 31 14:15:31 2005 :: ../gods/Heerro
Heerro.are : Rooms: 6400 - 6499 Objs: 6400 - 6499 Mobs: 6400 - 6499
Sun Jul 31 14:15:31 2005 :: ../gods/Killah
Sun Jul 31 14:15:31 2005 :: ../gods/Krelowyn
Krelowyn.are : Rooms: 25100 - 25199 Objs: 25100 - 25199 Mobs: 25100 - 25199
Sun Jul 31 14:15:31 2005 :: ../gods/Ramza
Sun Jul 31 14:15:31 2005 :: ../gods/Scarlettana
Sun Jul 31 14:15:31 2005 :: ../gods/Valance
Sun Jul 31 14:15:31 2005 :: Loading boards
Sun Jul 31 14:15:31 2005 :: ../boards/immortal.brd
Sun Jul 31 14:15:31 2005 :: ../boards/highgod.brd
Sun Jul 31 14:15:31 2005 :: Loading clans
Sun Jul 31 14:15:31 2005 :: Loading clans...
Sun Jul 31 14:15:31 2005 :: immortals.cln
Sun Jul 31 14:15:31 2005 :: Storeroom not found
Sun Jul 31 14:15:31 2005 :: $
Sun Jul 31 14:15:31 2005 :: Done clans
Sun Jul 31 14:15:31 2005 :: Loading councils
Sun Jul 31 14:15:31 2005 :: Loading councils...
Sun Jul 31 14:15:31 2005 :: immortal.cou
Sun Jul 31 14:15:31 2005 :: $
Sun Jul 31 14:15:31 2005 :: Done councils
Sun Jul 31 14:15:31 2005 :: Loading deities
Sun Jul 31 14:15:31 2005 :: Loading deities...
Sun Jul 31 14:15:31 2005 :: $
Sun Jul 31 14:15:31 2005 :: Done deities
Sun Jul 31 14:15:31 2005 :: Loading watches
Sun Jul 31 14:15:31 2005 :: Loading bans
Sun Jul 31 14:15:31 2005 :: Done.
Sun Jul 31 14:15:31 2005 :: Loading reserved names
Sun Jul 31 14:15:31 2005 :: Loading corpses
Sun Jul 31 14:15:31 2005 :: Loading Immortal Hosts
Sun Jul 31 14:15:31 2005 :: Done.
Sun Jul 31 14:15:31 2005 :: Loading Projects
Sun Jul 31 14:15:31 2005 :: Loading Morphs
Sun Jul 31 14:15:31 2005 :: Done.
Sun Jul 31 14:15:31 2005 :: Initializing socket

Breakpoint 1, init_socket (mudport=4000) at comm.c:420
420 perror( "Init_socket: listen" );
(gdb)
(gdb) c
Continuing.
Init_socket: listen: Invalid argument

Program exited with code 01.
(gdb)
USA #1
How did you run it? If the arg is "mudport=4000" it only needs to be a number.
#2
Ran it in gdb with a breakpoint on line 420 in comm.c, it showed the function that went along with the error basicly.
#3
It is odd, i can run it and have that error, run again and not have it and so on.. seems to be a random error... weird.
#4
I did ../src/smaug aboud 7 times to get it to actually start, 6 of the times i got the error Init_socket: listen: Invalid argument
Canada #5
Try passing a specific port instead of the default:

../src/smaug 4567
#6
nope, and even when it does load i can't connect.
USA #7
Have you tried stock? It could be perhaps your server. I've never seen anything like this.
#8
I don't see how this could have anything to do with it but I think it is my help.are. I installed it in a different location and it worked, i moved over system, player, god, and src and it worked.. then i moved over help.are for the greeting screen and such and it did not.
#9
Has anyone figured this out, because i'm having the same problem. I've tried searching everywhere to resolve this, with no luck. Thanks!
USA #10
What happens when you try running the exec?
#11
When I run startup, it doesn't show anything, but typing jobs shows that it is running. When I run smuag, it starts to load up everything, till it gets to initializing sockets. Then it says Init_socket: listen: Invalid argument
USA #12
Are you using stock Smaug?
#13
I've tried many everything i could think of, including reinstalling cygwin and the mud (smaug18fuss_lua_v1). I've even tried running a different version and get the same thing. I'm kind of new to this, but from what I can figure, it seems maybe the network isn't configed right or something? I've messed around with that, but still get the same thing.
USA #14
Yeah I'd have to say it's a problem due to that or something. Try Googling for listen: Invalid argument and see if anything there helps.

See if you can print off the argument as well (for listen).
#15
memset( &sa, '\0', sizeof( sa ) );
sa.sin_family = AF_INET;
sa.sin_port = htons( mudport );

if( bind( fd, ( struct sockaddr * )&sa, sizeof( sa ) ) == -1 )
{
perror( "Init_socket: bind" );
close( fd );
exit( 1 );
}

if( listen( fd, 50 ) < 0 )
{
perror( "Init_socket: listen" );
close( fd );
exit( 1 );
}

return fd;
}
This is where it stops comm.c lines 598-617. The only thing that I could find on google for invalid argument to listen, is that there is no fuction for listen. I have included all the needed librarys that I know of. If this is a network configuration problem, any suggestions on what I should do?
USA #16
What port are you trying to use? If it's below 1024 you might run into trouble since those are system ports.