From charlie.mas at gmail.com Fri Aug 15 10:26:05 2008 From: charlie.mas at gmail.com (Charlie.M) Date: Fri, 15 Aug 2008 07:26:05 -0700 (PDT) Subject: [Mono-gc-list] Help with Debuging Interop Code with Mono Message-ID: <18999561.post@talk.nabble.com> Hi all, I am currently trying to debug some code C# I have written. Its a wrapper around a native library (LibVorbis), I have it working on Windows with .net fine but when I run it on Mono it Seg Faults. At the moment I think its likely to be a bug in my code which windows tolerates and Linux doesn't. I tried to find the problem by running my app in Valgrind. Unfortunately it produces a large number of false positives during normal operation with Mono, I assume Mono's GC confuses Valgrind. It also doesn't appear to show an obvious source of my problems. This happens in the latest release of Mono. However recently I have switched to using a build I made from SVN and I have also built and installed the mono debugger. I have been using a recent SVN build of Mono Develop which includes its new debugger, both for Mono and Native code. The Managed stack trace from where my code crashes seems to be completely random, so I assume its getting screwed up somewhere before it actually segfaults. However it always segfaults when the garbage collector is running the GC_mark_from function at line 724 of mark.c according to the Mono Develop debugger. Can someone who's familiar with the Mono's GC tell me what its doing at this point. Also is it possible to figure out which structure / object is causing the GC problems. Any other suggestions would be greatly appreciated. Charlie M -- View this message in context: http://www.nabble.com/Help-with-Debuging-Interop-Code-with-Mono-tp18999561p18999561.html Sent from the Mono - Garbage Collection mailing list archive at Nabble.com. From kumpera at gmail.com Fri Aug 15 10:41:47 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 15 Aug 2008 11:41:47 -0300 Subject: [Mono-gc-list] Help with Debuging Interop Code with Mono In-Reply-To: <18999561.post@talk.nabble.com> References: <18999561.post@talk.nabble.com> Message-ID: <8cca42d80808150741x58d3a873ve9a8f471f9b16f0a@mail.gmail.com> You can use the suppresion file for running mono under valgrind, it's mono/data/mono.supp. It helps a lot by reducing the noise. On Fri, Aug 15, 2008 at 11:26 AM, Charlie.M wrote: > > Hi all, > > I am currently trying to debug some code C# I have written. Its a wrapper > around a native library (LibVorbis), I have it working on Windows with .net > fine but when I run it on Mono it Seg Faults. At the moment I think its > likely to be a bug in my code which windows tolerates and Linux doesn't. > > I tried to find the problem by running my app in Valgrind. Unfortunately it > produces a large number of false positives during normal operation with > Mono, I assume Mono's GC confuses Valgrind. It also doesn't appear to show > an obvious source of my problems. > > This happens in the latest release of Mono. However recently I have > switched > to using a build I made from SVN and I have also built and installed the > mono debugger. I have been using a recent SVN build of Mono Develop which > includes its new debugger, both for Mono and Native code. > > The Managed stack trace from where my code crashes seems to be completely > random, so I assume its getting screwed up somewhere before it actually > segfaults. However it always segfaults when the garbage collector is > running > the GC_mark_from function at line 724 of mark.c according to the Mono > Develop debugger. > > Can someone who's familiar with the Mono's GC tell me what its doing at > this > point. Also is it possible to figure out which structure / object is > causing > the GC problems. Any other suggestions would be greatly appreciated. > > Charlie M > -- > View this message in context: > http://www.nabble.com/Help-with-Debuging-Interop-Code-with-Mono-tp18999561p18999561.html > Sent from the Mono - Garbage Collection mailing list archive at Nabble.com. > > _______________________________________________ > Mono-gc-list maillist - Mono-gc-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-gc-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-gc-list/attachments/20080815/437dd43a/attachment.html