osx - Embedded Mono: EXC_BAD_ACCESS (SIGSEGV) when calling mono_jit_cleanup() -
i'm embedding mono runtime existing cocoa application. i've built latest runtime github (master branch) , exiting application after running managed code gives me during mono_jit_cleanup():
https://dl.dropbox.com/u/108566029/bad_access.png
it's reproduced when try send http request via httpwebrequest. if call getrequeststream(). code works fine , managed objects disposed correctly. mono_jit_cleanup() called once. problem occurs during shutting down runtime.
this reproduced on latest mono 2.10.x branch. sigsegv then.
this can occur in different places, seems threading issue.
so, how should shutdown runtime correctly. mono_jit_cleanup() call sufficient correctly dispose of runtime? , can exit application without disposing runtime (no mono_jit_cleanup() call)?
p.s.
i'm using 32-bit build of mono v2.0 (3.5 actually) runtime on osx 10.8.3. link against libmono-2.0.1.dylib, should boehm gc. same problem reproduced sgen gc.
p.p.s
here goes error https://dl.dropbox.com/u/108566029/sigabrt.png
the standard mono executable calls mono_jit_cleanup() fine, we'd need know more exact code you're calling, in thread etc.
in case, can exit application without calling function.
Comments
Post a Comment