Hello everybody.<br><br>In my application i have a set of gen_servers orginized in a simple one level supervision tree, with  one superviser above all.  Now the problem that i have , is that once one of my gen_servers is crashed, the supervisor does not restart it, and what is even worse - dies himself.
<br>I have simplified the problem, creating a simple gen server in which a badarith can be initiated(divide by zero)  and a <br>simple supervisor, which should have restarted it in case of crash by one_to_one strategy.<br>
<br>now when starting the supervisor, and then calling the zuzu:do(0) (causing the badmatch)<br>i get the crash of the worker gen_serv, and then the supervisor crashes.Supervior's crash report is <br>=CRASH REPORT==== 20-Feb-2007::16:35:12 ===
<br>  crasher:<br>    pid: <0.41.0><br>    registered_name: []<br>    error_info: {{badarith,[{zuzu,handle_call,3},<br>                             {gen_server,handle_msg,6},<br>                             {proc_lib,init_p,5}]},
<br>                  {gen_server,call,[zuzu_serv,{do,0},35000]}}<br>    initial_call: {gen,init_it,<br>                      [gen_server,<br>                       <0.39.0>,<br>                       <0.39.0>,
<br>                       supervisor,<br>                       {self,bubu,[]},<br>                       []]}<br>    ancestors: [<0.39.0>]<br>    messages: []<br>    links: []<br>    dictionary: []<br>    trap_exit: true
<br>    status: running<br>    heap_size: 233<br>    stack_size: 21<br>    reductions: 227<br>  neighbours:<br><br>I get the feeling that the supervisor dies as it pasess the restart limit, but that's a quite surprise for me, as the first start of the worker proc pases normally.
<br>I will be greatfull for any advice on this issue.<br><br>Regards<br>Gurgen Tumanyan, Smart Tech<br><br><br><br>