[Mono-bugs] [Bug 439909] Problem with throw and Stack traces...
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 4 04:24:53 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=439909
User informatique.internet at fiducial.fr added comment
https://bugzilla.novell.com/show_bug.cgi?id=439909#c6
Hubert FONGARNAND <informatique.internet at fiducial.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #6 from Hubert FONGARNAND <informatique.internet at fiducial.fr> 2008-11-04 02:24:52 MST ---
Hi, i've caught the real problem we have :
Please test this now :
using System;
using System.Web;
using System.Web.UI;
using System.IO;
namespace TestExecute
{
public class Default : Page
{
protected override void OnLoad(System.EventArgs e)
{
try{
Plante2("boom");
}catch
{
throw ;
}
}
public void Execute(string message)
{
try
{
throw new Exception(message);
}
catch
{
throw;
}
}
private void Plante2(string message)
{
Console.WriteLine("Throwing exception :"+message);
Execute(message);
}
}
}
Mono stacktrace is :
boom
Description: HTTP 500. Error processing request.
Stack Trace:
System.Exception: boom
at TestExecute.Default.Execute (System.String message) [0x00000] in
/home/hubert/Projects/TestExecute/TestExecute/Default.aspx.cs:32
MS.NET stacktrace is :
[Exception: boom]
TestException.Default.Execute(String message) in
c:\inetpub\wwwroot\testexception\default.aspx.cs:36
TestException.Default.Plante2(String message) in
c:\inetpub\wwwroot\testexception\default.aspx.cs:44
TestException.Default.OnLoad(EventArgs e) in
c:\inetpub\wwwroot\testexception\default.aspx.cs:24
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
The problem appears when there's more than one try/catch block
I reproduce it with mono svn, 1.9 and 2.0 (branches)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list