Hello!
I know this problem was already mentioned in two threads. Still I have additional information.
Addition to "Segfault on SMP Linux kernels": I get those problems on the /third/ call to ReserveAddressSpace: (compiled with -O0, otherwise ReserveAddressSpace will be inlined) #0 ReserveAddressSpace (addr=0x3f000000 <Address 0x3f000000 out of bounds>, len=8192) at mmap.c:364 #1 0x080591fe in ReserveMLSpace ( bottom=0x3f000000 <Address 0x3f000000 out of bounds>, top=0x3f002000 <Address 0x3f002000 out of bounds>) at mmap.c:378 #2 0x080592f1 in ReserveMLSpaces () at mmap.c:406 #3 0x080521f3 in main (argc=1, argv=0xbfffe4f4) at mpoly.c:710
Addition to "Seg. fault - 2.6.9 kernel": I have a plain vanilla 2.6.9, no patches. Still this does not work for me.
I have a gentoo distribution, maybe you want to keep an eye on the related gentoo bug report as well: http://bugs.gentoo.org/show_bug.cgi?id=35548
I only had a rather brief look at the source code, but is there a special reason why the mmapped area should be at a fixed address?
Greetings, Martin von Gagern