[Mono-osx] Mono and Active Directory?!

Rick Schaut rsschaut at hotmail.com
Mon Jan 30 13:30:41 EST 2006


OK, I played around with this a bit, and it turns out that this is an IPC
bug in Mac OS X.  The initial call to semget succeeds, but the IPC_RMID call
to semctl fails with an ³Operation not permitted² error, at which point
every subsequent call to semget will fail.

Note, this only applies to Active Directory accounts, and I rather strongly
suspect that this stems from the fact that AD accounts tend to get unusually
large user ID.

So, this is not a Mono issue at all, though people using Mono on OS X might
be interested to know what the general issue is.

On 1/29/06 2:35 PM, "Jake Macmullin" <jake.macmullin at csiro.au> wrote:

> I have also had this problem - and it is a *pain*.
> 
> Cheers,
> 
> Jake
> 
> On 29/01/2006, at 11:36 AM, Rick Schaut wrote:
> 
>>  I'm not sure if this issue is confined to Mac OS X or not, but the Mono
>> runtimes fall into an infinite loop when trying to execute any cli program
>> (including mcs.exe).  The issue appears to be confined to accounts where the
>> user logs in using Active Directory credentials.
>>  
>>  The infinite loop involves successive "access denied" failures on semget and
>> semctl.  While the loop is executing, I get the following error messages in
>> the terminal window:
>>  
>>  ** 
>> (/Library/Frameworks/Mono.framework/Versions/1.1.13.2/lib/mono/1.0/mcs.exe:34
>> 1): WARNING **:_wapi_shm_semaphores_init: semget error: Permission denied key
>> 0x4d09fd6d - trying again
>>  
>>  ** 
>> (/Library/Frameworks/Mono.framework/Versions/1.1.13.2/lib/mono/1.0/mcs.exe:34
>> 1): WARNING **:_wapi_shm_semaphores_init: semctl init error: Permission
>> denied - trying again
>>  
>>  In successive iterations through the loop, the ³key² in the first error
>> message increases by one from the previous pair of error messages.
>>  
>>  The problem did not appear in build 1.6.1, and did appear in 1.8.1 or later
>>  
>>  Having not looked at the code, I have no idea why this happens.  Note that
>> it does not happen when I log in as a local user.  I¹ve tried with admin
>> privileges on the AD user account, and still no go.
>>  
>>  The problem occurs on two different machines, though I¹m using the same
>> Active Directory account.  The machines are both G4 PowerBooks, one running
>> 10.3.9 and the other running 10.4.4.
>>  
>>  Thoughts?
>>  
>> _______________________________________________
>> Mono-osx mailing list
>> Mono-osx at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>  
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20060130/6777f188/attachment.html


More information about the Mono-osx mailing list