This example demonstrates a possible problem with mmalloc.
The Makefile contains 6 test cases.
Case 1 to 3 allocate structs of size 20, 200, 2000 using
mmmalloc and a local mmap file.
Case 4 to 6 allocate the same, but use malloc from the mmalloc lib.

Case 1,4,5,6 are OK under Sparc-Solaris 2.6 using g++ 2.8.1
Case 2 and 3 fail with different reasons. See the test2.truss.out 
and test3.truss.out for a trace of the system calls.

Wolfgang Glunz - Wolfgang.Glunz@icn.siemens.de

