Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic server gproc terminating on reg #161

Closed
NoobsEnslaver opened this issue Sep 19, 2018 · 2 comments
Closed

Generic server gproc terminating on reg #161

NoobsEnslaver opened this issue Sep 19, 2018 · 2 comments

Comments

@NoobsEnslaver
Copy link

Call gproc:reg({rc, l, ResName}), get gproc gen_server crash

ERROR REPORT Generic server gproc terminating
 Last message in was {reg,{rc,l,{interface,<<"ams02-access-hp">>}},undefined,[],reg}
 When Server state == {state}
 Reason for termination ==
 {{case_clause,already_registered},[{gproc,handle_reg_call,6,[{file,".../_build/default/lib/gproc/src/gproc.erl"},{line,2478}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,636}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,665}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}

Problem here:

false ->

Expected:
gproc gen_server keep alive, return badarg

@NoobsEnslaver
Copy link
Author

Pull request with fix #162

@abogosyan
Copy link
Contributor

To reproduce: just call gproc:reg({rc, l, test}). twice from erlang console, also affects aggregated counters and names (a,n) and maybe more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants