[Mono-dev] patch provided for mon-mmap.c to fix /dev/shm/mono.pid pileups

2010-04-07 Thread cpMon
Here's a patch you should consider for mono-2.6.1. Specifically, I noticed that /dev/shm/mono.pid files were piling up and not being cleaned up as they should have been. mono-mmap.c tries to get rid of stale ones with a kill but they don't check for ENOMEM return which causes the cleanup to fail.

[Mono-dev] Where is trampoline x86 pseudo code documented?

2010-03-06 Thread cpMon
Is there a document that describes the x86 pseudo code your JIT engine uses. For example, it would be a lot easier for me to find bugs for you if I didn't have to reverse-engineer things such as: Thanks, Cal Page if ( 0 && mono_thread_get_tls_offset () != -1) { /* MonoOb

[Mono-dev] [PATCH] mono/io-layer/shared.c sends non-existant file to ftok for Linux

2010-03-05 Thread cpMon
The shared memory files are created in /dev/shm/... on linux, but the code tries to find them in your home account. Since the file doesn't exist, a 0 is returned from ftok. This results in a pileup of shm's and semaphores. Run ipcs -a after every run to see the probmem. Cal Page Here's the pat

Re: [Mono-dev] System.Threading.Monitor::Exit fails in latest trees

2010-03-05 Thread cpMon
My Visual Studio 2005 throws the exception. Specifically, what version of the .net frawmwork do you support? If it 1.1, then I can see your point, but 2.0 and beyond, the mono code should do the exception. Cal Page -- View this message in context: http://n4.nabble.com/System-Threading-Monitor

Re: [Mono-dev] System.Threading.Monitor::Exit fails in latest trees

2010-03-05 Thread cpMon
According to the 2.0 .net MS spec, an exception is thrown for System.Threading.Monitor . From them: Exceptions Exception type Condition ArgumentNullException The obj parameter is a null reference (Nothing in Visual Basic). SynchronizationLockException The current thread d

[Mono-dev] System.Threading.Monitor::Exit fails in latest trees

2010-03-04 Thread cpMon
I never get a signal when System.Threading.Monitor::Exit gets called too many times. Further, I traced it down into the mono 2.6.1 code tree, and mono_monitor_exit is never called. The trampoline generates the code, but it's never called. Can you provide a quick fix? It seems like a glaring bug. A

[Mono-dev] Workaround for build failure on Linux

2010-03-03 Thread cpMon
Here's a compile error from 2.6.1 and your latest svn tree: CC io.lo In file included from ../../mono/io-layer/wapi.h:28, from io.c:32: ../../mono/io-layer/sockets.h:85: error: conflicting types for ‘close’ /usr/include/unistd.h:350: note: previous declaration of ‘close’ was

[Mono-dev] Here's a patch for /dev/shm/mono.pid's piling up on Linux

2010-03-03 Thread cpMon
Here's a patch you should consider for mono-2.6.1. Specifically, I noticed that /dev/shm/mono.pid files were piling up and not being cleaned up as they should have been. mono-mmap.c tries to get rid of stale ones with a kill but they don't check for ENOMEM return which causes the cleanup to fail.