[Mono-dev] wapi_shm_semaphores_init exits on startup

Joachim Ante joe at otee.dk
Mon Mar 12 04:35:54 EDT 2007


When launching Unity applications (Initializing mono at startup). The  
embedded mono exits on startup.

This is on a limited user access (It's a university teaching Unity).
I believe they have Macs running Mac OS X over a netboot drive. They  
also have access limited user accounts.

They consistently get this error.

** (process:187): CRITICAL **: _wapi_shm_semaphores_init: semget
error: No space left on device.  Try deleting some semaphores with
ipcs and ipcrm

on another machine:
** (process:226): WARNING **: _wapi_shm_semaphores_init: semctl init
error: Permission denied - trying again

** (process:226): WARNING **: _wapi_shm_semaphores_init: semget error:
Permission denied key 0x4d028412 - trying again

I also asked the user to run ipcs and the result was:

hcc-x3-13:~ art$ ipcs
Message Queues:
T     ID     KEY        MODE       OWNER    GROUP

Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP

T     ID     KEY        MODE       OWNER    GROUP

There is enough space on both the local hard disk and the net boot  
drive. We are using mono 1.2.0.

Any ideas what might cause this? Any ideas on how to fix it or how to  
work around it?

Did i say a that adding compile time define for ripping out iolayer  
would be really, really helpful?

* Avoiding bugs - This is not the first time we are running into an  
issue related to iolayer
* Avoid creating files unneccessarily which will not be cleaned up  
automatically. On OS X files will automatically be created in an  
invisible folder called .wapi. Some of our tech savvy end-users do  
complain about this.
* We will never need any cross application shared memory or mutexes

A compile time define could simply replace system wide mutex with a  
normal mutex...

Best regards,
Joachim Ante

More information about the Mono-devel-list mailing list