[erlang-questions] Mnesia crash, when node name changes

lankeanandrao lankeanandrao@REDACTED
Fri Apr 20 12:07:44 CEST 2018


Hi All,

     I  have an application, which is running in distributed way. When 
first time the application is getting started the mnesia is created 
based on the node name which is created dynamically (for example; 
sample@REDACTED). The mnesia data is persistent data. When the node name 
is changed (for example; sample@REDACTED) the *mnesia is not getting 
started* in the node. Here in code I am trying to *modify / replace* the 
node name with new node name created dynamically.

Here I have attached the *erl_crash.dump* file.

     Anyone have idea, why the mnesia is not getting started & erlang is 
crashing ?

regards,
Anand Rao L
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180420/12627548/attachment.htm>
-------------- next part --------------
=erl_crash_dump:0.3
Sat May 26 06:28:30 2001
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,mnesia,{{shutdown,{failed_to_start_child,mnesia_kernel_sup,killed}},{mnesia_sup,start,[normal,[]]}}})
System version: Erlang/OTP 19 [erts-8.0] [source] [async-threads:10] [kernel-poll:false]
Compiled: Fri Nov 11 01:04:28 2016
Taints: asn1rt_nif,crypto,erl_tracer
Atoms: 33118
Calling Thread: scheduler:1
=scheduler:1
Scheduler Sleep Info Aux Work: 
Current Port: 
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: OUT_OF_WORK | HALFTIME_OUT_OF_WORK | NONEMPTY | UNKNOWN(134217728)
Current Process: <0.0.0>
Current Process State: Running
Current Process Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING | TRAP_EXIT | ON_HEAP_MSGQ
Current Process Program counter: 0x48259710 (init:sleep/1 + 32)
Current Process CP: 0x00000000 (invalid)
Current Process Limited Stack Trace:
0x491fd5f4:SReturn addr 0x48257764 (init:boot_loop/2 + 1860)
0x491fd5f8:SReturn addr 0x1026AE58 (<terminate process normally>)
=memory
total: 26597192
processes: 3215036
processes_used: 3199488
system: 23382156
atom: 1090205
atom_used: 1086027
binary: 292848
code: 12968865
ets: 26948
=hash_table:atom_tab
size: 25717
used: 18614
objs: 33118
depth: 8
=index_table:atom_tab
size: 33792
limit: 1048576
entries: 33118
=hash_table:module_code
size: 397
used: 397
objs: 447
depth: 3
=index_table:module_code
size: 1024
limit: 65536
entries: 447
=hash_table:export_list
size: 12853
used: 9196
objs: 15863
depth: 8
=index_table:export_list
size: 16384
limit: 524288
entries: 15863
=hash_table:export_list
size: 6421
used: 4797
objs: 8538
depth: 7
=hash_table:process_reg
size: 23
used: 4
objs: 5
depth: 2
=hash_table:fun_table
size: 2411
used: 1603
objs: 2709
depth: 7
=hash_table:node_table
size: 11
used: 2
objs: 2
depth: 1
=hash_table:dist_table
size: 11
used: 2
objs: 2
depth: 1
=allocated_areas
sys_misc: 49928
static: 262752
atom_space: 852072 847894
atom_table: 238133
module_table: 93328
export_table: 242344
export_list: 1395944
register_table: 172
fun_table: 9722
module_refs: 9040
loaded_code: 11218487
dist_table: 355
node_table: 171
bits_bufs_size: 0
bif_timer: 0
link_lh: 0
process_table: 2097152
port_table: 524288
ets_misc: 24596
=allocator:sys_alloc
option e: true
option m: libc
option tt: 131072
option tp: 0
=allocator:temp_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 90
option rsbcmt: 80
option rmbcmt: 100
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: af
mbcs blocks: 0 4 4
mbcs blocks size: 0 300816 300816
mbcs carriers: 1 2 2
mbcs mseg carriers: 0
mbcs sys_alloc carriers: 1
mbcs carriers size: 131072 1179648 1179648
mbcs mseg carriers size: 0
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
temp_alloc calls: 103921
temp_free calls: 103921
temp_realloc calls: 30
mseg_alloc calls: 5
mseg_dealloc calls: 5
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:sl_alloc
versions: 2.1 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 80
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option mbsd: 3
option as: gf
mbcs blocks: 1 53485 53485
mbcs blocks size: 520 7858992 7858992
mbcs carriers: 1 5 5
mbcs mseg carriers: 0
mbcs sys_alloc carriers: 1
mbcs carriers size: 131072 11665408 11665408
mbcs mseg carriers size: 0
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
sl_alloc calls: 81822
sl_free calls: 81821
sl_realloc calls: 66
mseg_alloc calls: 13
mseg_dealloc calls: 13
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:std_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 20
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: bf
mbcs blocks: 21 107 107
mbcs blocks size: 150704 171128 171128
mbcs carriers: 2 2 2
mbcs mseg carriers: 1
mbcs sys_alloc carriers: 1
mbcs carriers size: 1179648 1179648 1179648
mbcs mseg carriers size: 1048576
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
std_alloc calls: 155
std_free calls: 134
std_realloc calls: 0
mseg_alloc calls: 1
mseg_dealloc calls: 0
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:ll_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 8388573
option asbcst: 0
option rsbcst: 0
option rsbcmt: 0
option rmbcmt: 0
option mmbcs: 2097152
option mmsbc: 0
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: aobf
mbcs blocks: 53400 53402 53402
mbcs blocks size: 18406816 18406992 18406992
mbcs carriers: 6 6 6
mbcs mseg carriers: 5
mbcs sys_alloc carriers: 1
mbcs carriers size: 25165824 25165824 25165824
mbcs mseg carriers size: 23068672
mbcs sys_alloc carriers size: 2097152
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
ll_alloc calls: 53432
ll_free calls: 32
ll_realloc calls: 889
mseg_alloc calls: 6
mseg_dealloc calls: 1
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:eheap_alloc
versions: 2.1 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 50
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 524288
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option mbsd: 3
option as: gf
mbcs blocks: 10 98 98
mbcs blocks size: 1100448 3176768 3176768
mbcs carriers: 3 4 4
mbcs mseg carriers: 2
mbcs sys_alloc carriers: 1
mbcs carriers size: 3670016 7864320 7864320
mbcs mseg carriers size: 3145728
mbcs sys_alloc carriers size: 524288
sbcs blocks: 0 1 1
sbcs blocks size: 0 786608 786608
sbcs carriers: 0 1 1
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 790528 790528
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
eheap_alloc calls: 2375
eheap_free calls: 2365
eheap_realloc calls: 28
mseg_alloc calls: 4
mseg_dealloc calls: 2
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:ets_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 20
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: bf
mbcs blocks: 4 911 911
mbcs blocks size: 2352 334584 334584
mbcs carriers: 1 2 2
mbcs mseg carriers: 0
mbcs sys_alloc carriers: 1
mbcs carriers size: 131072 1179648 1179648
mbcs mseg carriers size: 0
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
ets_alloc calls: 996
ets_free calls: 992
ets_realloc calls: 19
mseg_alloc calls: 1
mseg_dealloc calls: 1
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:fix_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 20
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: aobf
fix type: driver_select_data_state 24 24
fix type: driver_event_data_state 0 0
fix type: nlink_sh 1180 120
fix type: monitor_sh 440 0
fix type: bif_timer 288 0
fix type: hl_ptimer 48 48
fix type: ll_ptimer 0 0
fix type: msg_ref 0 0
fix type: proc 15480 1720
mbcs blocks: 120 275 275
mbcs blocks size: 18744 28720 28720
mbcs carriers: 1 1 1
mbcs mseg carriers: 0
mbcs sys_alloc carriers: 1
mbcs carriers size: 131072 131072 131072
mbcs mseg carriers size: 0
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
fix_alloc calls: 3335
fix_free calls: 3322
fix_realloc calls: 0
mseg_alloc calls: 0
mseg_dealloc calls: 0
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:literal_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 8388573
option asbcst: 0
option rsbcst: 0
option rsbcmt: 0
option rmbcmt: 0
option mmbcs: 1048576
option mmsbc: 0
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: aobf
mbcs blocks: 448 448 448
mbcs blocks size: 6621552 6621552 6621552
mbcs carriers: 4 4 4
mbcs mseg carriers: 3
mbcs sys_alloc carriers: 1
mbcs carriers size: 8388608 8388608 8388608
mbcs mseg carriers size: 7340032
mbcs sys_alloc carriers size: 1048576
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
literal_alloc calls: 450
literal_free calls: 2
literal_realloc calls: 0
mseg_alloc calls: 3
mseg_dealloc calls: 0
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:binary_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 20
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: bf
mbcs blocks: 1018 1201 1201
mbcs blocks size: 292848 1880568 1880568
mbcs carriers: 3 3 3
mbcs mseg carriers: 2
mbcs sys_alloc carriers: 1
mbcs carriers size: 3276800 3276800 3276800
mbcs mseg carriers size: 3145728
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 3 3
sbcs blocks size: 0 2162704 2162704
sbcs carriers: 0 3 3
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 2170880 2170880
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
binary_alloc calls: 2888
binary_free calls: 1870
binary_realloc calls: 5
mseg_alloc calls: 7
mseg_dealloc calls: 5
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:driver_alloc
versions: 0.9 3.0
option e: true
option t: false
option ramv: false
option sbct: 524288
option asbcst: 4145152
option rsbcst: 20
option rsbcmt: 80
option rmbcmt: 50
option mmbcs: 131072
option mmsbc: 256
option mmmbc: 4294967295
option lmbcs: 10485760
option smbcs: 1048576
option mbcgs: 10
option acul: 0
option as: bf
mbcs blocks: 31 127 127
mbcs blocks size: 3208 83008 83008
mbcs carriers: 1 1 1
mbcs mseg carriers: 0
mbcs sys_alloc carriers: 1
mbcs carriers size: 131072 131072 131072
mbcs mseg carriers size: 0
mbcs sys_alloc carriers size: 131072
sbcs blocks: 0 0 0
sbcs blocks size: 0 0 0
sbcs carriers: 0 0 0
sbcs mseg carriers: 0
sbcs sys_alloc carriers: 0
sbcs carriers size: 0 0 0
sbcs mseg carriers size: 0
sbcs sys_alloc carriers size: 0
driver_alloc calls: 4862
driver_free calls: 4831
driver_realloc calls: 0
mseg_alloc calls: 0
mseg_dealloc calls: 0
mseg_realloc calls: 0
sys_alloc calls: 1
sys_free calls: 0
sys_realloc calls: 0
=allocator:test_alloc
option e: false
=allocator:mseg_alloc[0]
version: 0.9
option amcbf: 4194304
option rmcbf: 20
option mcs: 10
memory kind: all memory
cached_segments: 2
cache_hits: 13
segments: 13 17 17
segments_watermark: 14
segments_size: 37748736 49283072 49283072
mseg_alloc calls: 40
mseg_dealloc calls: 27
mseg_realloc calls: 0
mseg_create calls: 27
mseg_create_resize calls: 0
mseg_destroy calls: 14
mseg_recreate calls: 0
mseg_clear_cache calls: 0
mseg_check_cache calls: 16
=allocator:erts_mmap.default_mmap
option scs: 0
os mmap size used: 39587840
=allocator:alloc_util
option mmc: 4294967295
option ycs: 1048576
option sac: true
=allocator:instr
option m: false
option s: false
option t: false
=proc:<0.0.0>
State: Running
Name: init
Spawned as: otp_ring0:start/2
Spawned by: []
Started: Sat May 26 06:28:05 2001
Message queue length: 1
Number of heap fragments: 0
Heap fragment data: 0
Link list: [<0.453.0>, <0.4.0>]
Reductions: 3843
Stack+heap: 2586
OldHeap: 4185
Heap unused: 1916
OldHeap unused: 3645
Memory: 27524
Program counter: 0x48259710 (init:sleep/1 + 32)
CP: 0x00000000 (invalid)
Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING | TRAP_EXIT | ON_HEAP_MSGQ
=proc:<0.1.0>
State: Waiting
Name: erts_code_purger
Spawned as: erts_code_purger:start/0
Current call: erts_code_purger:loop/0
Spawned by: <0.0.0>
Started: Sat May 26 06:28:05 2001
Message queue length: 0
Number of heap fragments: 0
Heap fragment data: 0
Reductions: 4
Stack+heap: 233
OldHeap: 0
Heap unused: 233
OldHeap unused: 0
Memory: 1276
Program counter: 0x4824bf20 (erts_code_purger:loop/0 + 12)
CP: 0x00000000 (invalid)
arity = 0
Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | TRAP_EXIT | ON_HEAP_MSGQ
=proc:<0.4.0>
State: Waiting
Name: erl_prim_loader
Spawned as: erlang:apply/2
Current call: erl_prim_loader:loop/3
Spawned by: <0.3.0>
Started: Sat May 26 06:28:05 2001
Message queue length: 0
Number of heap fragments: 0
Heap fragment data: 0
Link list: [<0.0.0>, #Port<0.1>]
Reductions: 19371
Stack+heap: 75113
OldHeap: 46422
Heap unused: 30470
OldHeap unused: 46418
Memory: 486524
Program counter: 0x4828f51c (erl_prim_loader:loop/3 + 80)
CP: 0x00000000 (invalid)
arity = 0
Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | TRAP_EXIT | ON_HEAP_MSGQ
=proc:<0.453.0>
State: Waiting
Name: error_logger
Spawned as: proc_lib:init_p/5
Spawned by: <0.3.0>
Started: Sat May 26 06:28:18 2001
Message queue length: 0
Number of heap fragments: 0
Heap fragment data: 0
Link list: [<0.0.0>]
Reductions: 475
Stack+heap: 4185
OldHeap: 0
Heap unused: 2103
OldHeap unused: 0
Memory: 17156
Program counter: 0x48a40bbc (gen_event:fetch_msg/5 + 24)
CP: 0x00000000 (invalid)
arity = 0
Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | TRAP_EXIT | ON_HEAP_MSGQ
=proc:<0.497.0>
State: Waiting
Name: mnesia_tm
Spawned as: proc_lib:init_p/5
Spawned by: <0.492.0>
Started: Sat May 26 06:28:18 2001
Message queue length: 1
Number of heap fragments: 0
Heap fragment data: 0
Reductions: 25912
Stack+heap: 17731
OldHeap: 121536
Heap unused: 3880
OldHeap unused: 57561
Memory: 557520
Program counter: 0x4921e6e4 (mnesia_tm:get_info/1 + 140)
CP: 0x00000000 (invalid)
arity = 0
Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | TRAP_EXIT | ON_HEAP_MSGQ
=port:#Port<0.0>
Slot: 0
Connected: <0.0.0>
Port controls forker process: forker
=port:#Port<0.1>
Slot: 16
Connected: <0.4.0>
Links: <0.4.0>
Port controls linked-in driver: efile
=node:'nonode@REDACTED'
=no_distribution
=loaded_modules
Current code: 11218487
Old code: 0
=mod:otp_ring0
Current size: 460
=mod:erts_code_purger
Current size: 5808
=mod:init
Current size: 33980
=mod:prim_eval
Current size: 328
=mod:prim_inet
Current size: 55821
=mod:prim_file
Current size: 31047
=mod:zlib
Current size: 7252
=mod:prim_zip
Current size: 14840
=mod:erl_prim_loader
Current size: 39420
=mod:erlang
Current size: 45849
=mod:erts_internal
Current size: 4024
=mod:erl_tracer
Current size: 392
=mod:lists
Current size: 56205


More information about the erlang-questions mailing list