mdriver prints the ERROR: mem_sbrk failed. Ran out of memory... error message when the simulated memory heap (20MB) is full. Some of the test traces allocate a total of 37MB (without considering frees). This could therefore happen if:
- your
freeroutine fails to free the released blocks - your
mallocroutine fails to use freed blocks - your allocation algorithm generates too much internal fragmentation