Mnesia Crash Dump

Evans, Matthew mevans@REDACTED
Mon Feb 22 22:05:52 CET 2010


Hi,

I have an mnesia core dump on a distributed Linux platform. The core appeared when I did an mnesia:start().

I'm wondering if mnesia didn't shutdown cleanly after the node was rebooted last. We have a Linux initrd script set at run-level 6 that attempts to do an mnesia:stop() via the erl_call utility. Maybe this failed or timed-out? What is the appropriate way to shutdown mnesia on a reboot of the node?

Salient portions of the mnesia dump are below, the complete dump is available upon request (it's 153KB in size and I'd rather not fill-up all your inboxes). I guess I'd like to know how things got into this state, and what we can do to prevent it.

Any suggestions would be helpful

Many Thanks

Matt




{version,"4.4.11"},
 {schema,
     {'EXIT',
         {badarg,
             [{ets,match_object,[schema,'_']},
              {ets,tab2list,1},
              {mnesia_lib,mkcore,1},
              {mnesia_lib,fatal,2},
              {mnesia_sp,init_proc,4},
              {proc_lib,init_p_do_apply,3}]}}},
 {gvar,
     {'EXIT',
         {badarg,
             [{ets,match_object,[mnesia_gvar,'_']},
              {ets,tab2list,1},
              {mnesia_lib,mkcore,1},
              {mnesia_lib,fatal,2},
              {mnesia_sp,init_proc,4},
              {proc_lib,init_p_do_apply,3}]}}},
 {master_nodes,[]},

......


{workers,
     {'EXIT',
         {function_clause,
             [{mnesia_lib,workers,[{timeout,2000}]},
              {mnesia_lib,mkcore,1},
              {mnesia_lib,fatal,2},
              {mnesia_sp,init_proc,4},
              {proc_lib,init_p_do_apply,3}]}}},
 {locking_procs,
     {'EXIT',
         {function_clause,
             [{mnesia_lib,locking_procs,
                  [{'EXIT',
                       {aborted,
                           {badarg,
                               [{mnesia_locker,get_held_locks,0},
                                {mnesia,system_info,1},
                                {mnesia_lib,mkcore,1},
                                {mnesia_lib,fatal,2},
                                {mnesia_sp,init_proc,4},
                                {proc_lib,init_p_do_apply,3}]}}}]},
              {mnesia_lib,mkcore,1},
              {mnesia_lib,fatal,2},
              {mnesia_sp,init_proc,4},
              {proc_lib,init_p_do_apply,3}]}}},
 {held_locks,
     {'EXIT',
         {aborted,
             {badarg,
                 [{mnesia_locker,get_held_locks,0},
                  {mnesia,system_info,1},
                  {mnesia_lib,mkcore,1},
                  {mnesia_lib,fatal,2},
                  {mnesia_sp,init_proc,4},
                  {proc_lib,init_p_do_apply,3}]}}}},
 {lock_queue,
     {'EXIT',
         {aborted,
             {badarg,
                 [{mnesia_locker,get_lock_queue,0},
                  {mnesia,system_info,1},
                  {mnesia_lib,mkcore,1},
                  {mnesia_lib,fatal,2},
                  {mnesia_sp,init_proc,4},
                  {proc_lib,init_p_do_apply,3}]}}}},




More information about the erlang-questions mailing list