[Mono-list] embeded mono segfaults without calling managed code

Rodrigo Kumpera kumpera at gmail.com
Mon Aug 5 13:52:33 UTC 2013

For Java, try this:

On Mon, Aug 5, 2013 at 1:49 AM, Chris Ochs <chris at ochsnet.com> wrote:

> It appears that java and mono both use some of the same signals for GC and
> pthreads, and step on each other.  If you embed mono in a java app it works
> fine until you start spinning up other java threads, then it eventually
> segfaults.  This happens even if you do nothing but call mono_jit_init in
> the main thread.
> On Fri, Aug 2, 2013 at 10:50 PM, snacktime <chris at ochsnet.com> wrote:
>> I'm embedding mono using C, which I'm calling from java.   I'm loading the
>> mono runtime in the main thread.  That all works fine, until I load the
>> rest
>> of my app, at which point it segfaults.  It does this even when the only
>> thing I do is call mono_jit_init().  My c method that calls that returns
>> void, there are no references to anything from the mono side that I'm
>> carrying around.
>> I'd debug it with gdb but it's a jruby app, and I haven't figured out how
>> to
>> debug that under gdb.
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/embeded-mono-segfaults-without-calling-managed-code-tp4660386.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130805/8f48bec6/attachment.html>

More information about the Mono-list mailing list