[Mono-dev] crashes in glib hangs (not exits) program
D Bera
dbera.web at gmail.com
Mon Apr 21 10:51:10 EDT 2008
> >> I noticed that some unmanaged crashes in glib could leave the
> >> program running but hanged. See below for a sample program (the bad
> >> g_free was used to deliberately crash).
> >
> > Did some more testing to reveal that Mono behaves unpredictably upon
> > crashes in unmanaged glib. I have filed a bug with a couple of
> > testcases, see
> > https://bugzilla.novell.com/show_bug.cgi?id=381928
Thats why I put the "g_free was used to deliberately crash" at the
beginning. The sample program is a test case on how mono reacts to a
glib crash. To answer your question,
> Why are you not using the managed GType wrapper? And how about reusing
> GString? Or at least look at its source to see how it's supposed to
> be p/invoked correctly.
The actual crash in my program happens in a third-party library on
which I have no control.
> It's impossible for mono to recover from unmanaged crashes. This is by
> design.
I am not asking mono recover from a crash. I am merely asking mono to
"not hang". That is an unpredicable behaviour since people want a
program to either run or not run but not stay in a middle state of
"doing nothing". Hope I am clear this time. Looking at the stack trace
I _think_ its just some bug in mono's after-crash-stacktrace-printer
which is causing the problem. Mono's behaviour (and yours too) is
absolutely right otherwise.
- dBera
--
-----------------------------------------------------
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
More information about the Mono-devel-list
mailing list