xml_from_edocs.escript HiPE segfault in R14B dev branch

Tuncer Ayaz tuncer.ayaz@REDACTED
Wed Sep 8 02:38:51 CEST 2010

On Thu, Sep 2, 2010 at 8:17 PM, Tuncer Ayaz wrote:
> FYI,
> When building erlang with HiPE enabled and native-libs in the current
> dev tree you might encounter a segfault with xml_from_edocs.escript.
> This will usually happen if you call 'make docs'.
> Rickard and OTP team has git bisected the issue to the following first
> bad commit which exposes a possible bug in HiPE:
> a8b8ec5e858da86531933b545f752f436e411b58
> Load native code for modules loaded before the code server
> This commit is only bad because it exposed the bug by causing more
> native compiled code to be executed than before.
> The HiPE team is informed and will hopefully fix it before R14B.
> If you happen to experience the issue just make sure to build the docs
> with a non-hipe beam.

It looks like Paul Guyot's erts_gc_after_bif_call patch corrected the segfault:
Fix call to erts_gc_after_bif_call in hipe glue

A remaining issue with a native enabled beam is that you can
easily reproduce a hang of the vm if you try to compile rebar
or use rebar. Interestingly this is again on invocation of an escript.
$ hg clone http://bitbucket.org/basho/rebar
$ cd rebar
$ make clean all
Recompile: src/rebar_utils
Recompile: src/rebar_xref
^Cmake: *** [all] Interrupt

More information about the erlang-questions mailing list