digitalmars.D.bugs - [Issue 4223] New: Throwing exception in finally block hides original exception
- d-bugmail puremagic.com (32/32) May 23 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4223
- d-bugmail puremagic.com (9/9) Jan 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4223
- d-bugmail puremagic.com (11/11) Jan 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4223
- d-bugmail puremagic.com (15/15) Jan 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4223
- d-bugmail puremagic.com (12/16) Jan 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4223
- d-bugmail puremagic.com (23/23) Jan 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4223
http://d.puremagic.com/issues/show_bug.cgi?id=4223 Summary: Throwing exception in finally block hides original exception Product: D Version: 2.041 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: nfxjfg gmail.com The message for assertion "a" will never be displayed, even though it certainly fails: void main() { try { assert(false, "a"); } finally { assert(false, "b"); } } Executing this program should display messages for both cases. Otherwise, it may be impossible to tell what actually failed: assertion b may depend on cleanup code that was supposed to be executed after assertion a. It is not unusual that other, seemingly unrelated, assertions fail once the program's state is "corrupted". Suggested fix: link the exceptions via Throwable.next. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 23 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4223 nfxjfg gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 06 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4223 Gide Nwawudu <gide nwawudu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, wrong-code Status|RESOLVED |REOPENED CC| |gide nwawudu.com Resolution|WONTFIX | -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4223 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |bugzilla digitalmars.com 13:57:15 PST --- This is an important matter. We don't want under any circumstances to irretrievably lose information. nfxjfg gmail.com, I understand you may be frustrated by the slow response, but please don't undo the valuable work you've put into reporting these bugs. Thanks. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4223 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.auThis is an important matter. We don't want under any circumstances to irretrievably lose information. nfxjfg gmail.com, I understand you may be frustrated by the slow response, but please don't undo the valuable work you've put into reporting these bugs. Thanks.It's particularly ironic -- this bug was actually fixed. (Fixed in DMD 2.048). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4223 Gide Nwawudu <gide nwawudu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Looks fixed. C:\>type bug4223.d void main() { try { assert(false, "a"); } finally { assert(false, "b"); } } C:\>dmd bug4223.d C:\>bug4223 core.exception.AssertError bug4223.d(5): b core.exception.AssertError bug4223.d(3): a -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 07 2011