Hi Ralf!
What I meant with fail to compile mm-1.0.6 was that I succeded to do 'make' but when I tried to run 'make test' I got segmentation fault when testing allocation of MM object. This seems to come out of that the system is unable to determine the shared memory maximum segment size on the system. If I f.e. increase "#define MM_SHM_MAXSEGSIZE 0" in mm_conf.h to 32*1024 I succeed with the test. But I still got problem on both Solaris v.2.7 and AIX 4.2 when I try to start the httpd. I still get an error messages saying something about problems with ap_mm_create().
The screendump before and after changes is added below !
Best Regards,
Patrick Harlin, Tech.Consult.
Media Communications Eur AB (publ)
####
During ./configure
####
checking for shared memory maximum segment size... unknown
####
IN mm_conf.h default
####
/* Shared Memory Maximum Segment Size */
#define MM_SHM_MAXSEGSIZE 0
*** TESTING GLOBAL LIBRARY API ***
Fetching library version
version = 0x100206
*** TESTING LOW-LEVEL SHARED MEMORY API ***
=== Testing Memory Segment Access ===
Creating 16KB shared memory core area
actually allocated core size = 16384
Writing 0xF5 bytes to shared memory core area
write to core[016383]
Reading back 0xF5 bytes from shared memory core area
read from core[016383]
Destroying shared memory core area
=== Testing Memory Locking ===
Creating small shared memory core area
actually allocated core size = 8
count=032769 (parent)
Destroying shared memory core area
*** TESTING STANDARD MALLOC-STYLE API ***
=== Testing Allocation ===
Creating MM object
/bin/sh: 15398 Segmentation fault(coredump)
make: 1254-004 The error code from the last command is 139.
Stop.
####
IN mm_conf.h after changes below
####
/* Shared Memory Maximum Segment Size */
#define MM_SHM_MAXSEGSIZE 32*1024
*** TESTING GLOBAL LIBRARY API ***
Fetching library version
version = 0x100206
*** TESTING LOW-LEVEL SHARED MEMORY API ***
=== Testing Memory Segment Access ===
Creating 16KB shared memory core area
actually allocated core size = 16384
Writing 0xF5 bytes to shared memory core area
write to core[016383]
Reading back 0xF5 bytes from shared memory core area
read from core[016383]
Destroying shared memory core area
=== Testing Memory Locking ===
Creating small shared memory core area
actually allocated core size = 8
count=032768 (child )
Destroying shared memory core area
*** TESTING STANDARD MALLOC-STYLE API ***
=== Testing Allocation ===
Creating MM object
Information for MM
memory area = 0x30000418 - 0x300e0418
memory size = 28672
memory offset = 24
bytes spare = 28648
bytes free = 0 (0 chunks)
bytes allocated = 0
List of free chunks:
<empty-list>
actually available bytes = 28648
Allocating areas inside MM
Information for MMlocated=000027434 add=001936
memory area = 0x30000418 - 0x300e0418
memory size = 28672
memory offset = 28000
bytes spare = 672
bytes free = 0 (0 chunks)
bytes allocated = 27976
List of free chunks:
<empty-list>
=== Testing Defragmentation ===
Fragmenting memory area by freeing some selected areas
Information for MM
memory area = 0x30000418 - 0x300e0418
memory size = 28672
memory offset = 28000
bytes spare = 672
bytes free = 13456 (21 chunks)
bytes allocated = 14520
List of free chunks:
chunk #001: 0x30000440-0x30000540 (16 bytes)
chunk #002: 0x30000468-0x300005e8 (24 bytes)
chunk #003: 0x300004a8-0x300007a8 (48 bytes)
chunk #004: 0x30000518-0x30000998 (72 bytes)
chunk #005: 0x300005c0-0x30000cc0 (112 bytes)
chunk #006: 0x300006b8-0x30001038 (152 bytes)
chunk #007: 0x30000808-0x30001508 (208 bytes)
chunk #008: 0x300009c8-0x30001a48 (264 bytes)
chunk #009: 0x30000c00-0x30002100 (336 bytes)
chunk #010: 0x30000ec8-0x30002848 (408 bytes)
chunk #011: 0x30001228-0x30003128 (496 bytes)
chunk #012: 0x30001638-0x30003ab8 (584 bytes)
chunk #013: 0x30001b00-0x30004600 (688 bytes)
chunk #014: 0x30002098-0x30005218 (792 bytes)
chunk #015: 0x30002708-0x30006008 (912 bytes)
chunk #016: 0x30002e68-0x30006ee8 (1032 bytes)
chunk #017: 0x300036c0-0x30007fc0 (1168 bytes)
chunk #018: 0x30004028-0x300091a8 (1304 bytes)
chunk #019: 0x30004aa8-0x3000a5a8 (1456 bytes)
chunk #020: 0x30005658-0x3000bad8 (1608 bytes)
chunk #021: 0x30006340-0x3000d240 (1776 bytes)
Freeing all areas
Information for MM
memory area = 0x30000418 - 0x300e0418
memory size = 28672
memory offset = 28000
bytes spare = 672
bytes free = 27976 (1 chunk)
bytes allocated = 0
List of free chunks:
chunk #001: 0x30000430-0x3006d8b0 (27976 bytes)
Checking for memory leaks
Fine, we've again 28648 bytes available
Destroying MM object
OK - ALL TESTS SUCCESSFULLY PASSED.
