[Mono-dev] Segfault on mono_jit_cleanup

Arno Rehn mono-devel at arnorehn.de
Wed Jul 2 08:35:23 EDT 2008


On Wednesday 02 July 2008 10:18:55 Robert Jordan wrote:
> Arno Rehn wrote:
> > Hi,
> >
> > I hope this is the right place for this question:
> > Currently I'm working on providing a Mono plugin factory for KDE. I've
> > followed the instructions for embedding Mono in the wiki and it works
> > quite well, up to the point where I want to call mono_jit_cleanup(). It
> > segfaults with the following stacktrace:
> >
> > **
> > ** ERROR:(../../mono/io-layer/handles-
> > private.h:160):_wapi_handle_set_signal_state: assertion failed: (thr_ret
> > == 0) Stacktrace:
>
> I believe this is caused by calling mono_jit_cleanup () twice.
I just tested that, it's definitely only called once. I tried calling it twice 
on purpose in an example app, the error for that is
**
** ERROR:(error.c:70):SetLastError: assertion failed: (ret == 0)
Aborted

Similar, but not the same.

Thanks anyway. I'm gonna try Seo's  suggestion, though I'd like to have a 
solution which doesn't require the end-user to recompile mono ;)

-- 
Arno Rehn
arno at arnorehn.de



More information about the Mono-devel-list mailing list