Pleroma, erlang problem.
kh at panix.com
Wed Feb 3 17:57:46 UTC 2021
On 2/3/21 7:51 AM, Jacques Foucry wrote:
> Since this upgrade, Pleroma does not start and it seems it's an erlang
> When I try run launch is by hand, it fail:
> MIX_ENV=prod mix phx.server
> ld-elf.so.1: /usr/local/lib/erlang/erts-10.3.5.15/bin/beam.smp: Undefined symbol "pthread_setname_np at FBSD_1.6"
> I did not know anythіng about erlang. Could it be a bug on it?
> I use a poudriere. I recompile erlang, look at threard options, all are
Well, apparently it links to a shared library, which means some symbols
have to be resolved when erlang is run. Apparently erlang (I guess an
executable "beam.smp") tries to call a function pthread_name_np() that's
not in any shared library included in the original link.
Posix thread functions are in a separate library. Is beam.smp linked
with -lpthread? It probably is. See "man pthread".
Functions pthread_*_np are non-portable FreeBSD extensions to the Posix
thread standard. They could come and go across releases, virtual
machines, and so on -- though pthread_setname_np() has a man page on my
The rest of that undefined symbol -- the part "@FBSD_1.6" -- is a
mystery to me. It looks like a version number of an ancient FreeBSD, but
I've never heard of such version numbers being included in symbols. I
don't know what that's about.
That function sets the name of a Posix thread. Probably erlang would run
fine without setting those names. If the trouble is just that function
is missing, and the standard Posix thread functions are present and
linked, then, as a crude, short-term workaround, if you're willing to
modify the source code slightly, you could remove calls to that function.
More information about the freebsd-questions