Bug 37547

Summary: Exception in unhandled exception handler not catched after Thread.Abort
Product: [Mono] Runtime Reporter: Alexander Köplinger [MSFT] <alkpli>
Component: GeneralAssignee: Bugzilla <bugzilla>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ludovic, mono-bugs+mono, mono-bugs+runtime
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: test.cs

Description Alexander Köplinger [MSFT] 2016-01-09 20:06:44 UTC
Created attachment 14514 [details]
test.cs

Compile attached repro code:

> mcs test.cs

Run it:

> mono test.exe

This results in the following output:

> About to throw exception.
> Catched exception: From OnUnhandledException
> exception inside UnhandledException handler: 

As you can see, the code after the catch in the unhandled exception handler wasn't executed.
Additionally the default behavior of printing an unhandled exception isn't shown as well.

On MS.NET the following expected output is printed:

> About to throw exception.
> Catched exception: From OnUnhandledException
> After catch
>
> Unhandled exception: System.Exception: From OnCBFinished
> [ .. stack trace ..]
Comment 1 Ludovic Henry 2016-01-25 11:05:23 UTC

*** This bug has been marked as a duplicate of bug 32508 ***