<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 18 jul 2011, at 15.54, Carlo Bertoldi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello list,<br> I have problem, as usual ;), this time with a process that refuses to die.<br>This particular process is the owner of an ets table:<br>ets:i().<br> id name type size mem owner<br> sonde_in sonde_in ordered_set 1131 165217 <0.122.0><br><br>In the meanwhile. the owner process crashed, let's check:<br>3> whereis(probe_db_manager).<br>undefined<br></div></blockquote><div><br></div><div>I would say that the server did not crash, it is just unregistered.</div><div>Clearly the <0.122.0> is not registered as probe_db_manager so, either it was</div><div>never registered or "someone" unregistered it.</div><div><br></div><div>/Tony</div><div><br></div><br><blockquote type="cite"><div>4> probe_db_manager:sonde_in_last_probe().<br>** exception exit: {noproc,{gen_server,call,<br>[probe_db_manager,sonde_in_last_probe]}}<br> in function gen_server:call/2<br><br>Ok, it is pushing daisies, but then why is the ets table still available? That made me suspicious, so I've checked running processes, and it's still there:<br>5> i().<br>...<br><0.122.0> probe_db_manager:init/1 987 233278 0<br> gen_server:loop/6 9<br>...<br><br>So, to double check:<br>6> process_info(pid(0, 122,0)).<br>[{current_function,{gen_server,loop,6}},<br> {initial_call,{proc_lib,init_p,5}},<br> {status,waiting},<br> {message_queue_len,0},<br> {messages,[]},<br> {links,[<0.107.0>]},<br> {dictionary,[{'$ancestors',[starter_sonda,<0.47.0>]},<br> {'$initial_call',{probe_db_manager,init,1}}]},<br> {trap_exit,false},<br> {error_handler,error_handler},<br> {priority,normal},<br> {group_leader,<0.46.0>},<br> {total_heap_size,1974},<br> {heap_size,987},<br> {stack_size,9},<br> {reductions,233278},<br> {garbage_collection,[{min_bin_vheap_size,46368},<br> {min_heap_size,233},<br> {fullsweep_after,65535},<br> {minor_gcs,845}]},<br> {suspending,[]}]<br>7> is_process_alive(pid(0, 122,0)).<br>true<br>8> sys:get_status(pid(0, 122, 0)).<br>{status,<0.122.0>,<br> {module,gen_server},<br> [[{'$ancestors',[starter_sonda,<0.47.0>]},<br> {'$initial_call',{probe_db_manager,init,1}}],<br> running,<0.107.0>,[],<br> [{header,"Status for generic server probe_db_manager"},<br> {data,[{"Status",running},<br> {"Parent",<0.107.0>},<br> {"Logged events",[]}]},<br> {data,[{"State","1-VENERA-20110718150001"}]}]]}<br><br>Parent is the supervisor.<br><br>So, why the process <0.122.0> is in this sort of limbo?<br>What do I have to do to make sure that after a crash it really goes away?<br><br>Thanks,<br> Carlo<br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; "><i>"Have run Make so many times I dunno what's installed anymore"</i></span></div></span></span>
</div>
<br></body></html>