getaddrinfo - Error: libc suspend() called from non-user context (0x117549a) - aborting
kliemann at ...543...
Tue Feb 6 23:19:16 CET 2018
when I use the lwip networking I sometimes get the following error:
> Error: libc suspend() called from non-user context (0x117549a) - aborting
I have tracked it down to a call of getaddrinfo yet I could not find
out when exactly and why this happens. It occurs at ca. 50% of the
tries. Does anyone have an idea how to fix that?
Also is there a way to check if an IP is available? Sleeping a few
seconds and hoping that DHCP assigned an address does not seem a
reliable solution to me.
The full code is available at ,  and  while the error happens
in  at line 24.
To test it yourself, check out  and run `make run/sntp`.
More information about the users