Inet_gethost segfault

I guess getting this output in your server logs is not a good thing:

Sep 05 08:34:48 octane kernel: inet_gethost[32654]: segfault at 968 ip 00007fb956bd234f sp 00007ffdcdd08960 error 4 in libpthread-2.28.so[7fb956bd2000+f000]
Sep 05 08:34:48 octane systemd[1]: Started Process Core Dump (PID 32655/UID 0).
Sep 05 08:34:48 octane code_stats[27331]: inet_gethost[27681]: WARNING:Malformed reply (header) from worker process 32654.
Sep 05 08:34:49 octane systemd-coredump[32656]: Process 32654 (inet_gethost) of user 1014 dumped core.

                                                Stack trace of thread 32654:
                                                #0  0x00007fb956bd234f n/a (ld-linux-x86-64.so.2)

Anyone else seen anything like this? It keeps coming up constantly. My BEAM (code_stats) is calling it and it’s crashing all the time. My site still seems to work, though, even the requests that seem to cause that crash (no rhyme or reason to them that I can see) return fine.

Seems this has fixed itself when I restarted the BEAM instances that were causing it. Curious as to what would have caused it, though, since I didn’t change any system library versions when it started. This is all the stack trace I was able to obtain (from another dump so the addresses probably don’t match), not much help though:

#0  0x00007f20a598235f in __pthread_initialize_minimal_internal () from /usr/lib/libpthread.so.0
#1  0x00007f20a598200d in _init () from /usr/lib/libpthread.so.0
#2  0x00007f20a4e36ea0 in ?? () from /usr/lib/libnss_myhostname.so.2
#3  0x00007f20a57a80ca in ?? ()
#4  0x0000000000000000 in ?? ()