Thanks to visit codestin.com
Credit goes to github.com

Skip to content

race conditions? randomly on custom deployments #4

@helllamer

Description

@helllamer

I have an app, that using idna (and ux) very often. I'm generating release using rebar generate. Release usually cannot start with following error (but sometimes it starts - on slower servers):

=ERROR REPORT==== 11-Nov-2012::12:52:51 ===
** Generic server ux_unidata_server terminating 
** Last message in was {get_default,{unidata,to_lower}}
** When Server state == []
** Reason for termination == 
** {{case_clause,<0.454.0>},
    [{ux_unidata_server,handle_call,3,
                        [{file,"src/unidata/ux_unidata_server.erl"},
                         {line,102}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

=CRASH REPORT==== 11-Nov-2012::12:52:51 ===
  crasher:
    initial call: ux_unidata_server:init/1
    pid: <0.169.0>
    registered_name: ux_unidata_server
    exception exit: {{case_clause,<0.454.0>},
                     [{ux_unidata_server,handle_call,3,
                          [{file,"src/unidata/ux_unidata_server.erl"},
                           {line,102}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,588}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 747)
    ancestors: [ux_sup,<0.161.0>]
    messages: []
    links: [<0.166.0>]
    dictionary: [{{unidata,to_lower},<0.454.0>},
                  {#Ref<0.0.0.2659>,{comp_exclusions,is_exclusion}},
                  {{comp_exclusions,is_exclusion},
                   #Fun<ux_unidata_filelist.2.116846164>},
                  {#Ref<0.0.0.2603>,{unidata,to_lower}}]
    trap_exit: false
    status: running
    heap_size: 2584
    stack_size: 24
    reductions: 407
  neighbours:

=SUPERVISOR REPORT==== 11-Nov-2012::12:52:51 ===
     Supervisor: {local,ux_sup}
     Context:    child_terminated
     Reason:     {{case_clause,<0.454.0>},
                  [{ux_unidata_server,handle_call,3,
                       [{file,"src/unidata/ux_unidata_server.erl"},
                        {line,102}]},
                   {gen_server,handle_msg,5,
                       [{file,"gen_server.erl"},{line,588}]},
                   {proc_lib,init_p_do_apply,3,
                       [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.169.0>},
                  {name,ux_unidata_server},
                  {mfargs,{ux_unidata_server,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,10000},
                  {child_type,worker}]

..............

=SUPERVISOR REPORT==== 11-Nov-2012::13:01:08 ===
     Supervisor: {local,ux_sup}
     Context:    shutdown
     Reason:     reached_max_restart_intensity
     Offender:   [{pid,<0.895.0>},
                  {name,ux_unidata_server},
                  {mfargs,{ux_unidata_server,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,10000},
                  {child_type,worker}]


=INFO REPORT==== 11-Nov-2012::13:01:08 ===
    application: ux
    exited: shutdown
    type: permanent
** Found 0 name clashes in code paths 
{"Kernel pid terminated",application_controller,"{application_terminated,ux,shutdown}"}

Crash dump was written to: ./log/erl_crash.dump
Kernel pid terminated (application_controller) ({application_terminated,ux,shutdown})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions