[Mono-dev] Patch for Processes.c on Mac OSX
tom.philpot at logos.com
Tue Dec 1 16:38:07 EST 2009
Forgot to mention that this patch is MIT X11 licensed.
On 11/30/09 10:03 AM, "Tom Philpot" <tom.philpot at logos.com> wrote:
> Has anyone had a chance to review this patch for Mac OS X?
> Basically, enumerating processes on Mac OS X doesn't work correctly in Mono
> without this patch, but also doesn't always crash because we're malloc'ing
> some large random number of bytes pulled from a garbage location in memory.
> If that number is huge, we crash, if it's small enough, we silently and
> erroneously succeed.
> ------ Forwarded Message
> From: Tom Philpot <tom.philpot at logos.com>
> Date: Wed, 25 Nov 2009 15:09:41 -0800
> To: "mono-devel-list at ximian.com" <mono-devel-list at ximian.com>
> Subject: [Mono-dev] Patch for Processes.c on Mac OSX
> We have a patch for io-layer/processes.c where Mono on Mac OSX crashes if
> trying to lock a named mutex which is not owned by the current process. The
> problem is that Mono on Mac does not correctly know how to enumerate
> The attached program assumes that you have built it, it then launches itself
> and takes a lock on a named mutex. The first instance also tries to acquire
> the lock and crashes.
> The attached patch fixes the issue for us.
> Again, props to Martin Potter for the discovery and the patch.
> This patch is MIT/X11 licensed.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> ------ End of Forwarded Message
More information about the Mono-devel-list