Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Infinite loop at startup
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #15 on Thu 17 Dec 2009 01:11 PM (UTC) |
Message
| Everything looks fine, until I try to log in. Here is what it looks like at this moment, I haven't logged in through a client yet:
Quote:
(gdb) run 4000
Starting program: /home/Vengeance/dbs/src/dbsaga.exe 4000
[New thread 3956.0x1720]
[New thread 3956.0x16e4]
Thu Dec 17 09:03:45 2009 :: 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 Dec 17 09:03:45 2009 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Thu Dec 17 09:03:45 2009 :: Loading commands
Thu Dec 17 09:03:45 2009 :: Loading sysdata configuration...
Thu Dec 17 09:03:45 2009 :: Loading socials
Thu Dec 17 09:03:45 2009 :: Loading skill table
Thu Dec 17 09:03:45 2009 :: [*****] BUG: fread_skill: unknown skill/spell do_spl
it_form
Thu Dec 17 09:03:45 2009 :: Sorting skill table...
Thu Dec 17 09:03:45 2009 :: Remapping slots to sns
Thu Dec 17 09:03:45 2009 :: Loading classes
Thu Dec 17 09:03:45 2009 :: Loading races
Thu Dec 17 09:03:45 2009 :: Loading herb table
Thu Dec 17 09:03:45 2009 :: Loading tongues
Thu Dec 17 09:03:45 2009 :: Making wizlist
Thu Dec 17 09:03:45 2009 :: Building wizinfo
Thu Dec 17 09:03:45 2009 :: Initializing request pipe
Thu Dec 17 09:03:45 2009 :: Initializing random number generator
Thu Dec 17 09:03:45 2009 :: Setting time and weather
Thu Dec 17 09:03:45 2009 :: Assigning gsn's
ASSIGN_GSN: Skill multi-form not found.
ASSIGN_GSN: Skill tri-form not found.
ASSIGN_GSN: Skill mystic not found.
ASSIGN_GSN: Skill super kamikaze ghost attack not found.
Thu Dec 17 09:03:45 2009 :: Loading DNS cache...
Thu Dec 17 09:03:45 2009 :: Reading in area files...
(help.are)
***Areas loaded here****
***Rooms and mobs here***
Thu Dec 17 09:03:45 2009 :: Fixing exits
Thu Dec 17 09:03:45 2009 :: Initializing economy
Thu Dec 17 09:03:45 2009 :: Resetting areas
***Area resets here****
Thu Dec 17 09:03:45 2009 :: Loading buildlist
Thu Dec 17 09:03:45 2009 :: ../gods/Daraku
Thu Dec 17 09:03:45 2009 :: Loading boards
Thu Dec 17 09:03:45 2009 :: Loading Global Boards
Thu Dec 17 09:03:45 2009 :: Loading clans
Thu Dec 17 09:03:45 2009 :: Loading clans...
Thu Dec 17 09:03:45 2009 :: vesania
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: remnant
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: zfight
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: sacred
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: spf
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: icerianempire.clan
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: united
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: rra.clan
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: mystic.clan
Thu Dec 17 09:03:45 2009 :: Storeroom not found
Thu Dec 17 09:03:45 2009 :: $
Thu Dec 17 09:03:45 2009 :: Loading alliance data
Thu Dec 17 09:03:45 2009 :: Done clans
Thu Dec 17 09:03:45 2009 :: Loading deities
Thu Dec 17 09:03:45 2009 :: Loading deities...
Thu Dec 17 09:03:45 2009 :: $
Thu Dec 17 09:03:45 2009 :: Done deities
Thu Dec 17 09:03:45 2009 :: Loading councils
Thu Dec 17 09:03:45 2009 :: Loading councils...
Thu Dec 17 09:03:45 2009 :: newbie_council
Thu Dec 17 09:03:45 2009 :: hoi.council
Thu Dec 17 09:03:45 2009 :: dua.council
Thu Dec 17 09:03:45 2009 :: ac.council
Thu Dec 17 09:03:45 2009 :: $
Thu Dec 17 09:03:45 2009 :: Done councils
Thu Dec 17 09:03:45 2009 :: Loading watches
Thu Dec 17 09:03:45 2009 :: Loading bans
Thu Dec 17 09:03:45 2009 :: Done.
Thu Dec 17 09:03:45 2009 :: Loading reserved names
Thu Dec 17 09:03:45 2009 :: Loading censored words
Thu Dec 17 09:03:45 2009 :: Updating rare/unique item counts.....
Thu Dec 17 09:03:45 2009 :: Checking player files....
Thu Dec 17 09:03:45 2009 :: Checking corpses....
Thu Dec 17 09:03:45 2009 :: Loading corpses
Thu Dec 17 09:03:45 2009 :: Loading space
Thu Dec 17 09:03:45 2009 :: Loading space...
Thu Dec 17 09:03:45 2009 :: Done starsystems
Thu Dec 17 09:03:45 2009 :: Loading ships
Thu Dec 17 09:03:45 2009 :: Loading ships...
Thu Dec 17 09:03:45 2009 :: Done ships
Thu Dec 17 09:03:45 2009 :: Loading governments
Thu Dec 17 09:03:45 2009 :: Loading planets...
Thu Dec 17 09:03:45 2009 :: earth.planet
Thu Dec 17 09:03:45 2009 :: cou.planet
Thu Dec 17 09:03:45 2009 :: vegeta.planet
Thu Dec 17 09:03:45 2009 :: namek.planet
Thu Dec 17 09:03:45 2009 :: furiza.planet
Thu Dec 17 09:03:45 2009 :: fakenamek.planet
Thu Dec 17 09:03:45 2009 :: $
Thu Dec 17 09:03:45 2009 :: Done planets
Thu Dec 17 09:03:45 2009 :: Loading Immortal Hosts
Thu Dec 17 09:03:45 2009 :: Done.
Thu Dec 17 09:03:45 2009 :: Loading Projects
Thu Dec 17 09:03:45 2009 :: Loading Morphs
Thu Dec 17 09:03:45 2009 :: Optimizing Morphs.
Thu Dec 17 09:03:45 2009 :: Done.
Thu Dec 17 09:03:45 2009 :: Loading Colors
Thu Dec 17 09:03:45 2009 :: Loading Housing System, Home Accessories Data, and H
ome Auctioning System
Thu Dec 17 09:03:45 2009 :: [*****] BUG: Fread_accessories: Accessory doesn't ex
ist
Thu Dec 17 09:03:45 2009 :: [*****] BUG: Fread_accessories: Accessory doesn't ex
ist
Thu Dec 17 09:03:45 2009 :: [*****] BUG: Fread_accessories: Accessory doesn't ex
ist
Thu Dec 17 09:03:45 2009 :: Loading hiscore tables
Thu Dec 17 09:03:45 2009 :: Initializing socket
Thu Dec 17 09:03:45 2009 :: DragonBall Saga ready at address user1 on port 4000
.
Thu Dec 17 09:03:46 2009 :: Log invis card dropper: mpoload 100729
Thu Dec 17 09:03:56 2009 :: [*****] BUG: NULL ROOM: echo_to_room() The turbocar
doors close and it speeds out of the station.
Resetting: intro.are
Resetting: rabbit_gang.are
Resetting: sewers.are
Resetting: satancity.are
Resetting: intro.are
| Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #16 on Thu 17 Dec 2009 01:13 PM (UTC) |
Message
| And finally, it shows me something. I've seen this problem somewhere around here before, I can prolly fix it.
Quote:
[New thread 3956.0x17d0]
[New thread 3956.0x1284]
Program received signal SIGSEGV, Segmentation fault.
0x0044c9dc in check_total_bans (d=0x10f94d0) at ban.c:1116
1116 for ( i = 0; i < (int) strlen( d->host ) ; i++ )
(gdb)
| Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #17 on Fri 18 Dec 2009 12:16 PM (UTC) Amended on Fri 18 Dec 2009 12:19 PM (UTC) by Daraku
|
Message
| I guess I didn't see it. I saw a reference to it, but it wasn't actually the problem. Here's the code, I can't see what is wrong with it, and I showed it to a friend who dabbles in code, but he's almost as rusty as I am, and he said the same, that it should be working.
{
BAN_DATA *pban;
char new_host[MAX_STRING_LENGTH];
int i;
for ( i = 0; i < (int) strlen( d->host ) ; i++ )
new_host[i] = LOWER( d->host[i] );
new_host[i] = '\0';
for ( pban = first_ban; pban; pban = pban->next )
{
if ( pban->level != LEVEL_SUPREME )
continue;
if ( pban->user && str_cmp( d->user, pban->user ) )
continue;
if ( pban->prefix && pban->suffix &&
strstr( pban->name, new_host ) )
{
if ( check_expire( pban ) )
{
dispose_ban( pban, BAN_SITE );
save_banlist( );
return FALSE;
}
else
return TRUE;
}
/*
* Bug of switched checks noticed by Cronel
*/
if ( pban->suffix && !str_prefix( pban->name, new_host ) )
{
if ( check_expire( pban ) )
{
dispose_ban( pban, BAN_SITE );
save_banlist( );
return FALSE;
}
else
return TRUE;
}
if ( pban->prefix && !str_suffix( pban->name, new_host ) )
{
if ( check_expire( pban ) )
{
dispose_ban( pban, BAN_SITE );
save_banlist( );
return FALSE;
}
else
return TRUE;
}
if ( !str_cmp( pban->name, new_host ) )
{
if ( check_expire( pban ) )
{
dispose_ban( pban, BAN_SITE );
save_banlist( );
return FALSE;
}
else
return TRUE;
}
}
return FALSE;
}
| Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #18 on Fri 18 Dec 2009 04:19 PM (UTC) |
Message
| I'm not so sure that line is the actual problem, as it's the same code across all the Smaug codebases. That is where the Seg Fault occurs, but it is not telling us why.
Did the seg fault dump any core files? Check in your main DBSaga dir. If so, try this;
(change the core file # to whatever you have)
Did that seg fault occur when you tried to connect?
|
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #19 on Fri 18 Dec 2009 06:54 PM (UTC) |
Message
| Since it is failing here:
1116 for ( i = 0; i < (int) strlen( d->host ) ; i++ )
... you need to reproduce the crash in gdb, and then get some debugging information out. My page about gdb should help.
For one thing, find out about the variables that have caused the crash, almost certainly d and d->host.
First thing to do is type:
That shows a backtrace, which shows where this code was called from. Then look at the variables:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Daraku
(15 posts) Bio
|
Date
| Reply #20 on Sat 19 Dec 2009 02:29 AM (UTC) |
Message
| Wierd. I have a "stackdump" file in my areas folder, now. :/ Is this what I am supposed to be looking for? Heh. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #21 on Sat 19 Dec 2009 02:56 AM (UTC) |
Message
| You can reproduce it every time, right? So don't muck around with old core files, just run the MUD under gdb the way I described earlier. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
61,788 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top