[Mono-list] shared memory

Dick Porter dick@ximian.com
23 Jul 2003 16:46:08 +0100


On Wed, 2003-07-23 at 11:31, Roberto D=EDaz wrote:
> hello!
>=20
> Sometimes, when I'm comping my program, I get these warnings:
>=20
> ** (process:1983): WARNING **: Shared memory sanity check failed.
>=20
> ** (process:1983): WARNING **: Failed to attach shared memory! Falling ba=
ck
> to non-shared handles
>=20
> I can to solve these wanings erasing the $HOME/.wapi/shared_data-0.
>=20
> What is the cause of that ?

Something has overwritten the beginning of the shared memory file.  Mono
does a cursory check of the header, and in your case is finding bad
data.

Which version of mono are you running?  Some time ago I added a check to
catch a common problem, that of the length of a Unix socket patch being
set to 0 by configure.

- Dick