It turns out that the heap problem I've been investigating results from
incorrect linking. The SpecCPU .cfg file I was using had 

EXTRA_LIBS = -lhugetlbfs

in it, which forced libhugetlbfs to be linked before other libraries and
we need to be last to work properly.

Many thanks to Adam for brainstorming this with me and helping to find
the answer. I'll see if I can find an easy way to detect this and spit
out a warning in HUGETLB_DEBUG mode.

The "dlopen: invalid caller" problem still exists and goes away if I use
256MB segments. But I need to poke around some more before I can guess
the source of that problem.

-- 

Steve Fox
IBM Linux Technology Center

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to