Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
persist.c - crash on load

 
Post new topic   Reply to topic Printable version
 View previous topic  high c2s Post :: Post Security of Open Source  View next topic  
Author Message
Live-Wire
Newbie


Joined: Oct 22 2005
Posts: 4
Offline

PostPosted: Thu Nov 17, 2005 4:01 am    Post subject: persist.c - crash on load Reply to topic Reply with quote

VS.NET 7.0 build from source of 1.4.1 (build successful, bat runs if I don't bother loading any of the scoring mods, including persist). Built BDB from source 4.3.29.

"Unhandled exception at 0x00000000 in asss.exe: 0xC0000005: Access violation reading location 0x00000000." Wah?

It crashes on loading the persist module. It complains about persist.c :

Code: Show/Hide
local int init_db(void)
{
   int err;
   mkdir(ASSS_DB_HOME, 0755);
   if ((err = db_env_create(&dbenv, 0)))
   {
      fprintf(stderr, "db_env_create: %s\n", db_strerror(err));
      return MM_FAIL;
   }
   if ((err = dbenv->open(
            dbenv,
            ASSS_DB_HOME,
            DB_INIT_CDB | DB_INIT_MPOOL | DB_CREATE,
            0644)))
   {
      fprintf(stderr, "db_env_create: %s\n", db_strerror(err));
      goto close_env;
   }
   if ((err = db_create(&db, dbenv, 0)))
   {
      fprintf(stderr, "db_env_create: %s\n", db_strerror(err));
      goto close_env;
   }
   if ((err = db->open(
            db,
#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
            /* they added a transaction parameter to the db->open
             * call in 4.1.0. */
            NULL,
#endif
            ASSS_DB_FILENAME,
            NULL,
            DB_BTREE,
            DB_CREATE,
            0644)))
   {
      fprintf(stderr, "db_env_create: %s\n", db_strerror(err));
      goto close_db;
   }
   /* sync once */
   db->sync(db, 0);

   return MM_OK;

close_db:
   db->close(db, 0);
close_env:
   dbenv->close(dbenv, 0);
   return MM_FAIL;
}


Error occurs on line 789: "0644)))"
Back to top
View users profile Send private message Add User to Ignore List
Live-Wire
Newbie


Joined: Oct 22 2005
Posts: 4
Offline

PostPosted: Fri Nov 18, 2005 9:16 pm    Post subject: Reply to topic Reply with quote

Anyone have any idea what I can try?
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Nov 18, 2005 11:49 pm    Post subject: Reply to topic Reply with quote

Submit a bug report on the tracker.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 150 page(s) served in previous 5 minutes.

phpBB Created this page in 0.409867 seconds : 27 queries executed (94.7%): GZIP compression disabled