HiPE glue: amd64 bug in handle_trap

Paul Guyot <>
Mon Sep 27 16:38:51 CEST 2010


Hello,

I suspect that there is a bug here:
http://github.com/erlang/otp/blob/dev/erts/emulator/hipe/hipe_amd64_glue.S#L405

As mentioned on line 390, N_ARITY is a 32 bits value. The instruction line 405 should probably be replaced with:

	movl	%eax, P_NARITY(P)	# Note: narity is a 32-bit field 

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



More information about the erlang-bugs mailing list