[LLVMdev] Weird memory bug

Chris Lattner sabre at nondot.org
Mon Dec 26 16:26:23 PST 2005

On Sat, 24 Dec 2005, Alexander Friedman wrote:
> This was indeed a memory issue - the hard datasize limit on my freebsd
> box was 512 mb and this opt went over.  Increasing hard limit fixed
> the problem.
> However, most unices have a 512mb limit - maybe insanely huge
> functions as this one should be automagically split somewhere?

We've tracked this down to being an apparent problem with the FreeBSD 
malloc implementation.  The test takes 20-40M of memory on linux for 
various people, but 10-100x that on two different FreeBSD boxes.  Linking 
with Doug Lea's malloc on FreeBSD apparently fixes the problem.

Has anyone in llvmdev land run into a problem with the FreeBSD malloc 
implementation before?  Are there any good solutions other than linking to 
a different malloc implementation?




More information about the llvm-dev mailing list