Hello
as the previous post was closed by inactivity, continued from the last post where Nick asked me the log gdb for smaug:
Previous Post:
http://www.gammon.com.au/forum/?id=13386
running the same command but with gdb the result is:
with list, after running the program:
Backtrace:
after this, and to my knowledge is overcome by the problem. I've taken a few months to put this but I had to keep trying.
as the previous post was closed by inactivity, continued from the last post where Nick asked me the log gdb for smaug:
Previous Post:
http://www.gammon.com.au/forum/?id=13386
Quote:
When I run the command ../src/smaug 4000
end yields this:
Sat Oct 15 12:26:23 2016 :: Loading watches
Sat Oct 15 12:26:23 2016 :: Loading bans
Sat Oct 15 12:26:23 2016 :: Done.
Sat Oct 15 12:26:23 2016 :: Loading reserved names
Sat Oct 15 12:26:23 2016 :: Loading corpses
Sat Oct 15 12:26:23 2016 :: Loading Immortal Hosts
Sat Oct 15 12:26:23 2016 :: Done.
Sat Oct 15 12:26:23 2016 :: Loading Projects
*** Error in `../src/smaug': double free or corruption (!prev): 0x098fe520 ***
When I run the command ../src/smaug 4000
end yields this:
Sat Oct 15 12:26:23 2016 :: Loading watches
Sat Oct 15 12:26:23 2016 :: Loading bans
Sat Oct 15 12:26:23 2016 :: Done.
Sat Oct 15 12:26:23 2016 :: Loading reserved names
Sat Oct 15 12:26:23 2016 :: Loading corpses
Sat Oct 15 12:26:23 2016 :: Loading Immortal Hosts
Sat Oct 15 12:26:23 2016 :: Done.
Sat Oct 15 12:26:23 2016 :: Loading Projects
*** Error in `../src/smaug': double free or corruption (!prev): 0x098fe520 ***
running the same command but with gdb the result is:
Quote:
Reading symbols from ../src/smaug...done.
(gdb) l
398 } /* cleanup memory */
399
400 #ifdef WIN32
401 int mainthread( int argc, char **argv )
402 #else
403 int main( int argc, char **argv )
404 #endif
405 {
406 struct timeval now_time;
407 bool fCopyOver = FALSE;
(gdb)
then the following command is:
(gdb) run 4000
Starting program: /home/src/smaug 4000
Sat Oct 15 12:27:32 2016 :: Initializing Lua
Mud-wide Lua module started up.
Sat Oct 15 12:27:32 2016 :: 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 Oct 15 12:27:32 2016 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Sat Oct 15 12:27:32 2016 :: Loading corpses
Sat Oct 15 12:27:32 2016 :: Loading Immortal Hosts
Sat Oct 15 12:27:32 2016 :: Done.
Sat Oct 15 12:27:32 2016 :: Loading Projects
*** Error in `/home/src/smaug': double free or corruption (!prev): 0x08752520 ***
Program received signal SIGABRT, Aborted.
0xb7fdccf9 in ?? ()
(gdb)
Just put the beginning and end of the run command because there was no more mistakes, only coming out in the end.
Reading symbols from ../src/smaug...done.
(gdb) l
398 } /* cleanup memory */
399
400 #ifdef WIN32
401 int mainthread( int argc, char **argv )
402 #else
403 int main( int argc, char **argv )
404 #endif
405 {
406 struct timeval now_time;
407 bool fCopyOver = FALSE;
(gdb)
then the following command is:
(gdb) run 4000
Starting program: /home/src/smaug 4000
Sat Oct 15 12:27:32 2016 :: Initializing Lua
Mud-wide Lua module started up.
Sat Oct 15 12:27:32 2016 :: 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 Oct 15 12:27:32 2016 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Sat Oct 15 12:27:32 2016 :: Loading corpses
Sat Oct 15 12:27:32 2016 :: Loading Immortal Hosts
Sat Oct 15 12:27:32 2016 :: Done.
Sat Oct 15 12:27:32 2016 :: Loading Projects
*** Error in `/home/src/smaug': double free or corruption (!prev): 0x08752520 ***
Program received signal SIGABRT, Aborted.
0xb7fdccf9 in ?? ()
(gdb)
Just put the beginning and end of the run command because there was no more mistakes, only coming out in the end.
with list, after running the program:
Quote:
(gdb) l
408 #ifdef IMC
409 int imcsocket = -1;
410 #endif
411
412 DONT_UPPER = FALSE;
413 num_descriptors = 0;
414 first_descriptor = NULL;
415 last_descriptor = NULL;
416 sysdata.NO_NAME_RESOLVING = TRUE;
417 sysdata.WAIT_FOR_AUTH = TRUE;
(gdb)
(gdb) l
408 #ifdef IMC
409 int imcsocket = -1;
410 #endif
411
412 DONT_UPPER = FALSE;
413 num_descriptors = 0;
414 first_descriptor = NULL;
415 last_descriptor = NULL;
416 sysdata.NO_NAME_RESOLVING = TRUE;
417 sysdata.WAIT_FOR_AUTH = TRUE;
(gdb)
Backtrace:
Quote:
(gdb) backtrace
#0 0xb7fdccf9 in ?? ()
#1 0xb7d2b4ba in malloc_printerr (action=<optimized out>, str=0xb7e1ddb0 "double free or corruption (!prev)", ptr=0x8752520)
at malloc.c:4996
#2 0xb7d2c12d in _int_free (av=0xb7e63420 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3840
#3 0xb7d1b63a in _IO_new_fclose (fp=0x8752520) at iofclose.c:85
#4 0x0814f8e9 in load_projects () at db.c:9194
#5 0x08133a3a in boot_db (fCopyOver=false) at db.c:771
#6 0x081235d5 in main (argc=2, argv=0xbffff764) at comm.c:525
(gdb) backtrace
#0 0xb7fdccf9 in ?? ()
#1 0xb7d2b4ba in malloc_printerr (action=<optimized out>, str=0xb7e1ddb0 "double free or corruption (!prev)", ptr=0x8752520)
at malloc.c:4996
#2 0xb7d2c12d in _int_free (av=0xb7e63420 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3840
#3 0xb7d1b63a in _IO_new_fclose (fp=0x8752520) at iofclose.c:85
#4 0x0814f8e9 in load_projects () at db.c:9194
#5 0x08133a3a in boot_db (fCopyOver=false) at db.c:771
#6 0x081235d5 in main (argc=2, argv=0xbffff764) at comm.c:525
after this, and to my knowledge is overcome by the problem. I've taken a few months to put this but I had to keep trying.