[Mono-list] running mono under Linux without shm

Tomasz Noiński noix at sphere.pl
Sun Mar 4 06:00:58 EST 2007


On Sun, 04 Mar 2007 01:16:34 -0500
Miguel de Icaza <miguel at novell.com> wrote:

> > Is there some way to run mono anyway, under such conditions?
> > If not - what was the last version which worked without shm?
> 
> You could try "export MONO_DISABLE_SHM=1", if that fails, we will have
> to look into making that fully SHM independent.

I'm afraid it didn't change anything (exactly the same errors).

I looked at strace output and it seems it didn't even try to shmget().
Those errors were outputed right after being unable to create
"/root/.wapi/shared_data-pyramid3-Linux-i686-312-11-0" file.
Is creating such a file necessary? As I said, it's a really restricted
environment and I can't allow the program to write to any files.

By the way, even when I allowed the program write access to its $HOME
directory, it didn't work - I think it tried to semget() in a loop:

(...)
semget(1292140897, 8, IPC_CREAT|IPC_EXCL|0600) = -1 ENOSYS (Function
not implemented)
semget(1292140898, 8, IPC_CREAT|IPC_EXCL|0600) = -1 ENOSYS (Function
not implemented)
semget(1292140899, 8, IPC_CREAT|IPC_EXCL|0600) = -1 ENOSYS (Function
not implemented)
semget(1292140900, 8, IPC_CREAT|IPC_EXCL|0600) = -1 ENOSYS (Function
not implemented)
semget(1292140901, 8, IPC_CREAT|IPC_EXCL|0600) = -1 ENOSYS (Function
not implemented)
(...)

There were >860000 such tries before i killed it.
(I don't have SysV IPC, so I don't have SysV semaphores either...)

Noix

P.S. Miguel: I'm sorry I send this email to you directly at first. I'm
reposting it to the whole mailing list now.


More information about the Mono-list mailing list