From: Woongsuk Cho Date: Wed, 12 Sep 2018 23:24:40 +0000 (+0900) Subject: create coredump for unhandled exception to debug issue easily X-Git-Tag: accepted/tizen/4.0/unified/20180913.013527^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0afb92f931e2d25b8d1c1a53eaa60d5ea450549a;p=platform%2Fcore%2Fdotnet%2Flauncher.git create coredump for unhandled exception to debug issue easily Change-Id: I9b7557d814b6d2a0662b0dbc6b8c265117b6f27e --- diff --git a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc index 08ef34c..f71e1e5 100644 --- a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc +++ b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc @@ -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); } }