[Mono-bugs] [Bug 80899][Nor] Changed - Finalizers not called anymore after an unhandled type load exception in a finalizer

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 26 10:54:21 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80899

--- shadow/80899	2007-02-19 14:29:18.000000000 -0500
+++ shadow/80899.tmp.7642	2007-02-26 10:54:21.000000000 -0500
@@ -74,6 +74,13 @@
 The crash happens when trying to create an instance of Crasher, which
 throws an exception in the class constructor. After this crash, finalizers
 are not called anymore.
 
 Notice that if the exception shown is a regular exception it does not
 happen. It also does not happen if the Crasher class does not have a finalizer.
+
+------- Additional Comments From vargaz at gmail.com  2007-02-26 10:54 -------
+This is because the finalizer calls mono_jit_runtime_invoke (), which
+calls other functions which raise the type load exception, but there is
+nobody to catch it since there is no managed frame on the stack, so the
+finalizer thread is aborted after the unhandled exception.
+


More information about the mono-bugs mailing list