HiPE glue: amd64 bug in handle_trap

Mikael Pettersson <>
Mon Sep 27 18:26:10 CEST 2010

Paul Guyot writes:
 > 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 

Thanks.  Yes it's a bug, and there's a similar one in hipe_ppc_glue.S.
I'll send a patch in a few minutes.


More information about the erlang-bugs mailing list