Re: Help with Debuging Interop Code with Mono

"Rodrigo Kumpera" <[email protected]> Fri, 15 Aug 2008 11:41:47 -0300
Newsgroups gmane.comp.gnome.mono.garbage-collection
Message-ID <[email protected]>
--===============0628546938==
Content-Type: multipart/alternative; 
	boundary="----=_Part_2241_4607484.1218811307413"

------=_Part_2241_4607484.1218811307413
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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 <[email protected]> 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-gc-list
>

------=_Part_2241_4607484.1218811307413
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">You can use the suppresion file for running mono under valgrind, it&#39;s mono/data/mono.supp. It helps<br>a lot by reducing the noise.<br><br><br><div class="gmail_quote">On Fri, Aug 15, 2008 at 11:26 AM, Charlie.M <span dir="ltr">&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi all,<br>
<br>
I am currently trying to debug some code C# I have written. Its a wrapper<br>
around a native library (LibVorbis), I have it working on Windows with .net<br>
fine but when I run it on Mono it Seg Faults. At the moment I think its<br>
likely to be a bug in my code which windows tolerates and Linux doesn&#39;t.<br>
<br>
I tried to find the problem by running my app in Valgrind. Unfortunately it<br>
produces a large number of false positives during normal operation with<br>
Mono, I assume Mono&#39;s GC confuses Valgrind. It also doesn&#39;t appear to show<br>
an obvious source of my problems.<br>
<br>
This happens in the latest release of Mono. However recently I have switched<br>
to using a build I made from SVN and I have also built and installed the<br>
mono debugger. I have been using a recent SVN build of Mono Develop which<br>
includes its new debugger, both for Mono and Native code.<br>
<br>
The Managed stack trace from where my code crashes seems to be completely<br>
random, so I assume its getting screwed up somewhere before it actually<br>
segfaults. However it always segfaults when the garbage collector is running<br>
the GC_mark_from function at line 724 of mark.c according to the Mono<br>
Develop debugger.<br>
<br>
Can someone who&#39;s familiar with the Mono&#39;s GC tell me what its doing at this<br>
point. Also is it possible to figure out which structure / object is causing<br>
the GC problems. Any other suggestions would be greatly appreciated.<br>
<br>
Charlie M<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Help-with-Debuging-Interop-Code-with-Mono-tp18999561p18999561.html" target="_blank">http://www.nabble.com/Help-with-Debuging-Interop-Code-with-Mono-tp18999561p18999561.html</a><br>

Sent from the Mono - Garbage Collection mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Mono-gc-list maillist &nbsp;- &nbsp;<a href="mailto:[email protected]">[email protected]</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-gc-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-gc-list</a><br>
</font></blockquote></div><br></div>

------=_Part_2241_4607484.1218811307413--

--===============0628546938==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mono-gc-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-gc-list

--===============0628546938==--