[erlang-questions] Hipe and memory alignment (Yikes! erts_alloc() returned misaligned address)

Kenji Rikitake kenji.rikitake@REDACTED
Thu Aug 5 09:37:51 CEST 2010


I also often see mostly the same message which only the address value is
different on FreeBSD i386 7.3-RELEASE, with the stock gcc
(gcc (GCC) 4.2.1 20070719  [FreeBSD])

Regards,
Kenji Rikitake

In the message <33495D81-33AC-4AC8-9394-6377C01760CD@REDACTED>
dated Wed, Aug 04, 2010 at 06:59:11PM +0200,
Paul Guyot <pguyot@REDACTED> writes:
> Hello,
> 
> When running erl with native (hipe) code on some platforms (FreeBSD amd64), one quickly encounters messages such as:
> 
> Yikes! erts_alloc() returned misaligned address 0x8016a512c
> 
> This message seems to come from hipe_bifs:alloc_data/2. The allocator is the system allocator, which on unix platform is malloc, and malloc does not necessarily return aligned blocks (on MacOS X, it does, but not on FreeBSD).
> 
> Does it really matter? (hipe_bifs:alloc_data/2 is only called from hipe_unified_loader:create_data_segment/3).
> If it doesn't, can we remove the log line?
> If it does, can we replace the allocator with another one that always return aligned blocks?
> 
> Paul
> -- 
> Semiocast                    http://semiocast.com/
> +33.175000290 - 62 bis rue Gay-Lussac, 75005 Paris
> 
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED


More information about the erlang-questions mailing list