create coredump for unhandled exception 90/186490/1
authorWoongsuk Cho <ws77.cho@samsung.com>
Fri, 10 Aug 2018 02:19:24 +0000 (11:19 +0900)
committerWoongsuk Cho <ws77.cho@samsung.com>
Fri, 10 Aug 2018 02:19:24 +0000 (11:19 +0900)
Change-Id: Ic03d31c38b0c2e6626844a7707e6c9e111729791

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index f5a43da..ced9782 100644 (file)
@@ -138,8 +138,16 @@ static void onSigabrt(int signum)
        }
 
        if (hasException()) {
-               write(2, "Unhandled exception is occured. Ignore coredump creation and terminate normally\n", 80);
-               exit(0);
+               write(2, "******************************************************\n", 55);
+               write(2, "Unhandled exception is occured. check application code\n", 55);
+               write(2, "******************************************************\n", 55);
+       }
+
+       checkOnSigabrt = true;
+       if (sigaction(SIGABRT, &sig_abrt_old, NULL) == 0) {
+               if (raise(signum) < 0) {
+                       write(2, "Fail to raise SIGABRT\n", 22);
+               }
        } else {
                write(2, "SIGABRT from native. raise SIGABRT\n", 35);
                checkOnSigabrt = true;