create coredump for unhandled exception to debug issue easily 20/189020/1 accepted/tizen/4.0/unified/20180913.013527 submit/tizen_4.0/20180912.232550
authorWoongsuk Cho <ws77.cho@samsung.com>
Wed, 12 Sep 2018 23:24:40 +0000 (08:24 +0900)
committerWoongsuk Cho <ws77.cho@samsung.com>
Wed, 12 Sep 2018 23:24:40 +0000 (08:24 +0900)
Change-Id: I9b7557d814b6d2a0662b0dbc6b8c265117b6f27e

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index 08ef34c..f71e1e5 100644 (file)
@@ -124,18 +124,18 @@ static void onSigabrt(int signum)
        cleanupMM(signum);
 
        if (hasException()) {
-               write(2, "Unhandled exception is occured. Ignore coredump creation and terminate normally\n", 80);
-               exit(0);
-       } else {
-               write(2, "SIGABRT from native. raise SIGABRT\n", 35);
-               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, "Fail to set original SIGABRT handler\n", 37);
+               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, "Fail to set original SIGABRT handler\n", 37);
        }
 }