beam.smp (enable-native-libs) hang

Tuncer Ayaz <>
Wed Sep 22 23:32:02 CEST 2010


On Wed, Sep 8, 2010 at 2:02 PM, Tuncer Ayaz wrote:
> Erlang version: a78b39a0e9ff2cfd13273ab077dc852d70565647
>
> Build Options: --enable-native-libs (HiPE is enabled automatically)
>
> Arch:
>     linux 2.6.35 x86_32, glibc 2.12.1
>     darwin 10.6.4 x86_64
>
> Symptom: beam.smp hangs/doesn't terminate
>
> Steps to reproduce:
>
> There are two known ways to reproduce the issue and the simplest is:
>
> $ hg clone http://bitbucket.org/basho/rebar
> $ cd rebar
> $ make
> [...]
> Recompile: src/rebar_xref
> ^Cmake: *** [all] Interrupt
>
> Compiling src/rebar_xref.erl hangs indefinitely at 100% cpu load.
>
> You can also reproduce the hang running 'rebar compile' in a project
> that makes use of it.
>
> A shared trait is running an escript.
>

Paul Guyot's patch
[erlang-patches] [PATCH] Fix hang when calling functions in a module
with an on_load attribute from a native module
seems to fix the issue.


More information about the erlang-bugs mailing list