www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3060] New: Catch exception then loop causes seg fault

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3060

           Summary: Catch exception then loop causes seg fault
           Product: D
           Version: 2.030
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: EH
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: oag optusnet.com.au


The following trivial program segfaults when run.
If the while (1) line is commented out it runs OK.
If the trivial function call is omitted it also runs as expected.

void fun() {}
void main() {
  try {
    throw new Exception("Error");
  } catch (Exception) { fun(); }
  while (1) {}
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3060


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei metalanguage.com
         Resolution|                            |FIXED


--- Comment #1 from Andrei Alexandrescu <andrei metalanguage.com> 2011-01-08
16:34:02 PST ---
Must have been fixed a while ago.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 08 2011