[Mono-dev] Mono embedded : segfault when jit_cleanup

2009-12-23 Thread Damien
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).

Thanks for help

Damien
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono embedded : segfault when jit_cleanup

2009-12-23 Thread Michael Hutchinson
On Wed, Dec 23, 2009 at 5:35 AM, Damien maitred...@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
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list