Created attachment 175794 [details] Upstream fix for alignment bug in allocator start code During the exp-run for bug 212343, lang/erlang-riak failed to build on i386 with clang 3.9.0, because beam.smp segfaults: gmake[4]: Entering directory '/wrkdirs/usr/ports/lang/erlang-riak/work/otp_src_R16B02-basho5/lib/hipe/misc' erlc -W +debug_info +warn_exported_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl gmake[4]: *** [/wrkdirs/usr/ports/lang/erlang-riak/work/otp_src_R16B02-basho5/make/i386-portbld-freebsd12.0/otp.mk:115: ../ebin/hipe_consttab.beam] Segmentation fault (core dumped) This is because of an alignment bug in Erlang's threaded allocator, fixed by the following upstream commit: https://github.com/erlang/otp/commit/5a00e724a58ee29d4012cca79c8aa33979e74eb6 Here is a patch for lang/erlang-riak to apply this. The regular lang/erlang port already has the fix.
Thanks
A commit references this bug: Author: wg Date: Mon Oct 17 11:17:04 UTC 2016 New revision: 424109 URL: https://svnweb.freebsd.org/changeset/ports/424109 Log: lang/erlang-riak: fix to build with clang 3.9.0 PR: 213515 Submitted by: dim Changes: head/lang/erlang-riak/files/patch-commit-5a00e72