[Mono-dev] Mono embedded : segfault when jit_cleanup

Michael Hutchinson m.j.hutchinson at gmail.com
Wed Dec 23 14:05:49 EST 2009


On Wed, Dec 23, 2009 at 5:35 AM, Damien <maitredede at gmail.com> wrote:
> Hi,
> I'm coding a plugin for valve source servers (half-life 2, orangebox...),
> and I try to embed Mono.
> All is working well, until I try to call mono_jit_cleanup : I have a
> segfault.
> In my code, when I don't call any Mono functions at all, all is working
> well.
> When I call Mono related functions, all is working well (init, assembly
> loading, type instanciation, function calling, type marshalling...), but
> cleanup => segfault.
> Event with only mono_jit_init with mono_jit_cleanup I have a segfault.
> How can I see if it is related to Mono or server ?
> I'm using Mono 2.4.2.3 (ubuntu 9.10 x86 distrib package).

Check that you only call mono_jit_init once.

Also, the track trace from the segfault would be useful in diagnosing the issue.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-devel-list mailing list