process waits forever spawn_opt/5
Tue Jun 15 22:12:10 CEST 2021
It would be very helpful to share the code that spawn_opt is calling,
or provide code to reproduce this condition.
Does the function called by spawn_opt interact in _any_ way with the
gen_server that calls spawn_opt?
On Tue, Jun 15, 2021 at 1:09 PM Vyacheslav Levytskyy
> 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