fix of hipe crashes in gc

Paul Guyot pguyot@REDACTED
Sat Jul 17 15:07:22 CEST 2010


Hello,

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:
http://www.erlang.org/cgi-bin/ezmlm-cgi/4/50033
http://www.erlang.org/cgi-bin/ezmlm-cgi/4/39462
http://www.erlang.org/cgi-bin/ezmlm-cgi/2/1583

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://github.com/pguyot/otp.git pg/fix-hipe-crash-in-gc_after_bif
http://github.com/pguyot/otp/commit/c42ba9962d7e83accec797c56e5480a2d0b6281a

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

Regards,

Paul
-- 
Semiocast                    http://semiocast.com/
+33.175000290 - 62 bis rue Gay-Lussac, 75005 Paris



More information about the erlang-bugs mailing list