Core dump using HiPE (possibly my fault ;-))

Bjorn Gustavsson <>
Tue Feb 11 16:33:20 CET 2003


I've found the bug.

It has to do with the "heap fragments" that the emulator allocates
in situations when more heap memory is needed but a standard garbage
collection cannot be performed (mainly in BIFs).

In R9B, the heap fragments gets a size proportional to the minimum
heap size of the process, and they are not re-used (in most cases).

Therefore, until this problem is fixed, setting a huge minimum heap size
is not recommended.

/Bjorn

Mikael Pettersson <> writes:

> I've been trying to fix this bug, believing that it was HiPE's fault.
> However, the module below which is derived from Thierry's test1 module reliably
> crashes OTP R9B built --without-hipe, on both SPARC and x86. Apparently, BEAM
> has a generic space leak bug which will only trigger in specific cases, and
> this is what hit the HiPE-compiled code Thierry tried to run.
> 
> I've reported this to the appropriate runtime hacker @ OTP.
> 
> /Mikael

-- 
Björn Gustavsson            Ericsson Utvecklings AB
      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö



More information about the erlang-questions mailing list