Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
April 30, 2011 [Issue 5911] New: Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5911 Summary: Closure destroys the thrown Exception . Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: sweatygarlic@yahoo.co.jp --- Comment #0 from sweatygarlic@yahoo.co.jp 2011-04-29 22:56:17 PDT --- The below ends with SEGV. ---------------------------- import std.stdio; void logout( lazy const(char)[] msg ) { writeln( msg ); } void main() { string str = "hello world"; logout( (){return str;}() ); // closure 1 try throw new Exception( "exception!!" ); catch( Exception e ) { logout( e.toString ); // closure2 SEGV : e is null. } } ---------------------------- Build : dmd 2.052 on Windows Vista WOW64. Without `closure 1', the code executed successfully. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 30, 2011 [Issue 5911] Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
Posted in reply to sweatygarlic@yahoo.co.jp | http://d.puremagic.com/issues/show_bug.cgi?id=5911 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm@gmail.com Platform|x86_64 |x86 OS/Version|Windows |All --- Comment #1 from kennytm@gmail.com 2011-04-30 03:52:21 PDT --- The "x86_64" platform means the executable is 64-bit. Only Linux has 64-bit output. BTW, reproducible on Mac OS X also. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 06, 2013 [Issue 5911] Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
Posted in reply to sweatygarlic@yahoo.co.jp | http://d.puremagic.com/issues/show_bug.cgi?id=5911 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice CC| |hsteoh@quickfur.ath.cx Severity|normal |major --- Comment #2 from hsteoh@quickfur.ath.cx 2013-07-06 10:21:24 PDT --- Heh, on git HEAD (b9b5c063d7f44b879d6fde74f400ff094ba85707), this code causes an ICE: dmd: struct.c:251: static void AggregateDeclaration::alignmember(structalign_t, unsigned int, unsigned int*): Assertion `alignment > 0 && !(alignment & (alignment - 1))' failed. Aborted -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 06, 2013 [Issue 5911] Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
Posted in reply to sweatygarlic@yahoo.co.jp | http://d.puremagic.com/issues/show_bug.cgi?id=5911 --- Comment #3 from hsteoh@quickfur.ath.cx 2013-07-06 10:22:37 PDT --- P.S. This is on Linux 64-bit. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 08, 2013 [Issue 5911] Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
Posted in reply to sweatygarlic@yahoo.co.jp | http://d.puremagic.com/issues/show_bug.cgi?id=5911 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, wrong-code Platform|x86 |All --- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2013-07-07 23:43:48 PDT --- https://github.com/D-Programming-Language/dmd/pull/2316 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 08, 2013 [Issue 5911] Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
Posted in reply to sweatygarlic@yahoo.co.jp | http://d.puremagic.com/issues/show_bug.cgi?id=5911 --- Comment #5 from github-bugzilla@puremagic.com 2013-07-08 12:37:40 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3f95fdda2595c949af9070887a4b50e5fe79e214 fix Issue 5911 - Closure destroys the thrown Exception https://github.com/D-Programming-Language/dmd/commit/88b794d01348c7d0b39ebc2e27e70e7cf1afb66d Merge pull request #2316 from 9rnsr/fix5911 Issue 5911 - Closure destroys the thrown Exception -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 08, 2013 [Issue 5911] Closure destroys the thrown Exception . | ||||
---|---|---|---|---|
| ||||
Posted in reply to sweatygarlic@yahoo.co.jp | http://d.puremagic.com/issues/show_bug.cgi?id=5911 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation