process waits forever spawn_opt/5

Vyacheslav Levytskyy v.levytskyy@REDACTED
Tue Jun 15 22:06:57 CEST 2021


I'm surprised to see my gen_server process hanging forever when 
executing spawn/4 call. Process info shows spawn_opt/5 as a current 
function and status is waiting:

 > process_info(P).

Current stacktrace looks like:

 > process_info(P, current_stacktrace).

I wonder what could be conditions that made spawn_opt/5 to stuck in this 
state. Is there something I can do on my side to prevent such problems 
in future?

It's Erlang/OTP 24.0.2:

Erlang/OTP 24 [erts-12.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] 
[async-threads:1] [jit]

Thank you,

More information about the erlang-questions mailing list