[Monodevelop-devel] Newbie question about soft debugger

Levi Bard taktaktaktaktaktaktaktaktaktak at gmail.com
Mon Jul 11 05:54:13 EDT 2011


> When setting a breakpoint in MonoDevelop on my C# code, my
> mono-embedding-application crashes (with MonoDevelop in Debug mode and
> showing the breakpoint as "active"). Activating my self-built mono-2.0.dll
> and debugging into the native application shows that the mono runtime seems
> to crash in mini.c in the function mono_jit_runtime_invoke when calling
> "return runtime_invoke(obj, params, exc, info->compiled_method);". This is
> called when my embedding application's C++ code invokes a method on some
> object. From that the above line is called about 27 times before the crash
> occurs on that line on the 28th pass-by.
>
> When deactivating the breakpoint in MonoDevelop no crash occurs - I can then
> set and remove breakpoints in MonoDevelop in debug mode and the breakpoints
> appear as active. But hitting a breakpoint will crash. This happens with my
> self-built mono-2.0.dll as well as with the one shipped with the 2.10 mono
> distribution.
>
> It seems as if the code injected by a breakpoint has some defect. Any idea
> what to try next? Is this due to beta status of Mono 2.10 or MonoDevelop
> 2.6?

Sdb uses segmentation faults to trigger breakpoints, so a native
debugger will detect them as crashes when they're triggered.
Is your app actually crashing when the (VS) debugger isn't attached?
Also, breakpoints will actually cause (unhandled) crashes on 64bit
windows prior to win7sp1, I don't know what version of vista, and all
known versions of xp. ( http://support.microsoft.com/kb/976038 )


More information about the Monodevelop-devel-list mailing list