[Issue 3060] New: Catch exception then loop causes seg fault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 10 05:55:35 PDT 2009


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 at puremagic.com
        ReportedBy: oag at 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: -------


More information about the Digitalmars-d-bugs mailing list