hipe segmentation fault

Mikael Pettersson mikpe@REDACTED
Thu Apr 6 10:54:16 CEST 2006


Patrice Rault writes:
 > For information, on FC5 with kernel 2.6.16-1.2080_FC5.i686
 > 
 > Erlang (BEAM) emulator version 5.4.13 [source] [hipe] [threads:0]
 > 
 > Eshell V5.4.13  (abort with ^G)
 > 1> c(big).
 > {ok,big}
 > 2> big:bang(4).
 > 3.20000e-5
 > 3> c(big, [native]).
 > {ok,big}
 > 4> big:bang(4).
 > Erreur de segmentation
 > 
 > And i got segmentation fault with ALL native compilations.
 > But with a switch to kernel 2.6.15-1.2054_FC5.i686, native compilation
 > work.

Does this Erlang system have the glibc-2.4 fix applied? (See below.)

Does the problem go away if you build without thread support? There was
a bug in the sigaltstack() setup, but I've only seen the ill effects on
the SMP system, never on R10B. The fact that a 2.6.16-based kernel breaks
while a pre-2.6.16 kernel works hints strongly at the sigaltstack() bug.

/Mikael

--- otp-0317/erts/emulator/hipe/hipe_x86_signal.c.~1~	2005-10-21 14:02:57.000000000 +0200
+++ otp-0317/erts/emulator/hipe/hipe_x86_signal.c	2006-03-27 12:30:08.000000000 +0200
@@ -27,7 +27,7 @@
 #include <stdlib.h>
 #include "hipe_signal.h"
 
-#if __GLIBC__ == 2 && __GLIBC_MINOR__ == 3
+#if __GLIBC__ == 2 && (__GLIBC_MINOR__ == 3 || __GLIBC_MINOR__ == 4)
 /* See comment below for glibc 2.2. */
 #ifndef __USE_GNU
 #define __USE_GNU		/* to un-hide RTLD_NEXT */



More information about the erlang-questions mailing list