The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

Start Problem

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Getting Started
View previous topic :: View next topic  
Author Message
Vyusing



Joined: 08 Mar 2010
Posts: 3

PostPosted: Mon Mar 08, 2010 4:46 pm    Post subject: Start Problem Reply with quote

I'm new at coding, and did a bit of searching around but nothing specific came up.

Following the instructions to a tee, I was given this error on my virgin run with "./dawn -f":

Code:
:: BUG??? in reset_room (Reset type P): get_obj_type returned NULL
for putting object 19561 into 19567
:: BUG??? in reset_room (Reset type P): pObjIndex is NULL!
 rest for putting object 19561 into 19567
:: BUG??? in reset_room (Reset type P): get_obj_type returned NULL
for putting object 19571 into 19570
:: BUG??? in reset_room (Reset type P): pObjIndex is NULL!
 rest for putting object 19571 into 19570
:: BUG??? in reset_room (Reset type P): get_obj_type returned NULL
for putting object 19535 into 19570
:: BUG??? in reset_room (Reset type P): pObjIndex is NULL!
 rest for putting object 19535 into 19570
:: BUG??? in reset_room (Reset type P): get_obj_type returned NULL
for putting object 19558 into 19616
:: BUG??? in reset_room (Reset type P): pObjIndex is NULL!
 rest for putting object 19558 into 19616
:: BUG??? in reset_room (Reset type P): get_obj_type returned NULL
for putting object 19558 into 19616
:: BUG??? in reset_room (Reset type P): pObjIndex is NULL!
 rest for putting object 19558 into 19616
:: Loading notes...
:: Loading disabled commands from data/disabled.txt...
:: ===Reading in laston records.
:: gio_generic_loadlist() reading in from data/laston.txt...
:: Finished gio_generic_loadlist [0].
:: 1 laston record has been read.
:: *************************************************************************
Laston_load() - didn't see any wealth information for any of the laston
records - required for the topwealth command...performing a
'laston_update_from_disk confirm' to populate the laston database with
wealth information from every pfile.
****************************************************************************
:: do_laston_update_from_disk(): ploading pfiles, updating laston nodes...
Segmentation fault (core dumped)


I modified arealist.txt to exclude taker.are and remove the annoying list of BUG???'s thinking that may be involved, but as that left me with the same final segmentation fault I was left sighing.

Grabbing gdb, I ran a back trace. This was the resulting conclusion:

Code:
Core was generated by `./dawn -f'.
Program terminated with signal 11, Segmentation fault.
#0  do_pload (ch=0x0, argument=0x59321c "") at pload.cpp:280
280             if(IS_NPC(ch) || ch->pload){

Code:
#0  do_pload (ch=0x0, argument=0x59321c "") at pload.cpp:280
#1  0x000000000052ba00 in pload_load_character (ch=0x0,
    name_of_character_to_load=0x0,
    return_character_if_already_in_the_game=true) at pload.cpp:106
#2  0x00000000004bcc45 in do_laston_update_from_disk (ch=0x0,
    argument=<value optimized out>) at laston.cpp:2564
#3  0x00000000004bcefe in laston_load () at laston.cpp:2657
#4  0x000000000047ba25 in boot_db () at db.cpp:630
#5  0x00000000004690aa in main (argc=2, argv=0x7fffffffe788) at comm.cpp:713


And if anyone's curious, running the newest beta 5 release with the provided beta 4 support files, and my g++ version is as follows:

Code:
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)


Running this on a private server that I own.

Any thoughts?


Back to top
View user's profile Send private message
Kalahn
Codebase Developer


Joined: 18 Jan 2003
Posts: 710
Location: New Zealand

PostPosted: Fri Mar 12, 2010 7:36 pm    Post subject: Reply with quote

It appears have a corrupt laston database - laston.txt that doesn't have a valid name for the single laston record it contains.

This has highlighted a bug in the code that doesn't recover gracefully from this.

To fix, edit do_pload() within pload.cpp... and add the check to see if ch is null as indicated. Recompile and you should be good to go.

Code:

// Kal - Dec 2001
void do_pload(char_data *ch, char *argument )
{   
   char_data *lch;

/// INSERT TEXT BELOW HERE
   if(!ch){
      return;
   }
/// INSERT TEXT ABOVE HERE

   if(IS_NPC(ch) || ch->pload){
      ch->println("live players only sorry.");
      return;
   }



This has been fixed in the master source and will be in the next release (when ever that is).

- Kal



_________________
Kalahn
Developer of the Dawn of Time Codebase
http://www.dawnoftime.org/
Back to top
View user's profile Send private message Visit poster's website
Vyusing



Joined: 08 Mar 2010
Posts: 3

PostPosted: Sat Mar 13, 2010 4:35 pm    Post subject: Reply with quote

Excellent. Thanks Kal.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Getting Started All times are GMT + 13 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin