fix of hipe crashes in gc

Paul Guyot <>
Sat Jul 17 15:07:22 CEST 2010


I have been experiencing crashes in the garbage collector when running erlang with natively compiled modules, and especially with OTP configured with --enable-native-libs.

This has been discussed before, including by others:

I finally got a reproduceable case and nailed the bug down. The bug was introduced in R12B-0, when the function erts_gc_after_bif_call was updated to take 4 parameters but the assembly glue code was not updated to pass proper values for the third and fourth parameters.

A fix is available here:

git fetch git:// pg/fix-hipe-crash-in-gc_after_bif

Please note that I only tested it on x86 and amd64 platforms.


+33.175000290 - 62 bis rue Gay-Lussac, 75005 Paris

More information about the erlang-bugs mailing list