<div dir="ltr"><div>Hi folks, I recently encountered a pretty strange segfault, and I was wondering if anyone could provide any insight...</div><div><br></div><div>The process is running just fine and then disappears. I grabbed the coredump and opened it up and found this output:</div><div><br></div><div>```</div><div>Program terminated with signal SIGSEGV, Segmentation fault.</div><div>#0  0x00000000004c9511 in do_allocate_logger_message (p=<synthetic pointer>, sz=280577276613695, bp=<synthetic pointer>, ohp=<synthetic pointer>, hp=0x7f97ba57f7f0, gleader=128)</div><div>    at beam/utils.c:1958</div><div>```</div><div><br></div><div>There's a little more context in the backtrace...</div><div><br></div><div>```</div><div>(gdb) backtrace</div><div>#0  0x00000000004c9511 in do_allocate_logger_message (p=<synthetic pointer>, sz=280577276613695, bp=<synthetic pointer>, ohp=<synthetic pointer>, hp=0x7f97ba57f7f0, gleader=128)</div><div>    at beam/utils.c:1958</div><div>#1  do_send_term_to_logger (tag=843, args=140289643116560, len=-966352886, buf=0x7f97c1f7db72 "", gleader=128) at beam/utils.c:2058</div><div>#2  send_error_term_to_logger (args=140289643116560, len=-966352886, buf=0x7f97c1f7db72 "", gleader=128) at beam/utils.c:2106</div><div>#3  erts_send_error_term_to_logger (gleader=128, dsbufp=0x7f97c1f7db70, args=140289643116560) at beam/utils.c:2187</div><div>#4  0x000000000059d990 in erts_bs_put_utf8 (EBS=0x7f97c1f7db72, arg=140289845403658) at beam/erl_bits.c:850</div><div>#5  0x00007f97bfb79898 in ?? ()</div><div>#6  0x000000000000001e in ?? ()</div><div>#7  0x00007f97b5c675a8 in ?? ()</div><div>#8  0x00007f97bb25b5d8 in ?? ()</div><div>#9  0x00007f97b5c25ad8 in ?? ()</div><div>#10 0x00007f97c1f7b282 in ?? ()</div><div>#11 0x8450345d9c222796 in ?? ()</div><div>#12 0x00007f97bfc47008 in ?? ()</div><div>#13 0x00007f97bc8c3338 in ?? ()</div><div>#14 0x0000000000449c14 in process_main (x_reg_array=0x7f97b5c66d30, f_reg_array=0x7f97c666a00a) at x86_64-pc-linux-musl/opt/smp/beam_hot.h:943</div><div>#15 0x00007f97bba80100 in ?? ()</div><div>#16 0x0000000000000000 in ?? ()</div><div>```</div><div><br></div><div>I do have an error_handler module added to the error_logger. Although there doesn't appear to be any noticable memory growth or message queue backup in the error_logger process before it dies.</div><div><br></div><div>I can't quite trigger it myself but it does happen on a regular basis.</div><div><br></div><div>Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:10] [hipe] [kernel-poll:false]</div><div>Elixir 1.6.4 (compiled with OTP 20)</div><div>Alpine 3.7</div><div><br></div><div>Anyone have any clues?</div><div><br></div></div>