The test in question allocates the minimum amount of shared memory allowed by the underlying mm module, which is 8KB. The second error message shows that 75xx of this 8K is still available at the time of the first error. Does this bear on the kind of problem you were thinking of?