[Mono-dev] Re: [Mono-osx] anybody noticed a mach port leak?

Alexandre Miguel Pedro Gomes alexmipego at gmail.com
Mon Jun 12 19:25:44 EDT 2006


Not a big fan of C, neither I do have a OS X machine to test but a simple
grep -R "mach_port" . shows that there is no deallocate.

On 6/12/06, Allan Hsu <allan at counterpop.net> wrote:
>
> On Jun 8, 2006, at 7:56 PM, Miguel de Icaza wrote:
>
> >> I'm having a hard time tracking down a mach port leak in imeem. Some
> >> roundabout debugging leads me to believe it's somewhere in the
> >> networking-related portions of either our managed code or the Mono
> >> runtime. Has anybody else noticed their mach port counts rising over
> >> time? If so, what does your application do?
> >
> > A test case narrowing the problem would be the first step.
>
> I've done some more investigation and I've filed a new bug and marked
> the old one as a duplicate of the new one:
>
> http://bugs.ximian.com/show_bug.cgi?id=78628
>
> It looks like the problem has to do with garbage collection and
> threading and it should effect just about anybody that uses threads
> under Mono on OS X. I attached a rough GC patch to the bug that
> halves the number of ports leaked in some situations, but does not
> entirely fix the problem. The patch also has a lot of whitespace
> changes I made so I could properly read the code (sorry about that).
>
> At this point, I'm not sure what else to do. I'm wondering if the
> rest of the leaks could be caused by another place where
> mach_port_deallocate() isn't being called when it should be. I'm no
> mach expert, so I'm not sure where else to look.
>
>         -Allan
> --
> Allan Hsu <allan at counterpop dot net>
> 1E64 E20F 34D9 CBA7 1300  1457 AC37 CBBB 0E92 C779
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



-- 
Alexandre Gomes, Portugal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060613/7aed124f/attachment.html 


More information about the Mono-devel-list mailing list