21 sprintf(s,
"gdb --batch -ex 'set confirm off' -ex sharedlibrary -ex bt -ex kill root.exe %d", getpid());
29 std::cout <<
"\n\nUncaught exception\n" << std::endl;
37 std::cout <<
"\n\nAborted\n" << std::endl;
39 std::cout <<
"\n\nSegmentation fault\n" << std::endl;
41 std::cout <<
"\n\nFloating point exception\n" << std::endl;
43 std::cout <<
"\n\nBus error\n" << std::endl;
58 if(getenv(
"CAFE_NO_BACKTRACE"))
return;
63 sprintf(s,
"/proc/%d/cmdline", getpid());
68 if(ss.find(
"root.exe") == std::string::npos)
return;
76 memset(&sa, 0,
sizeof(sa));
77 sigemptyset(&sa.sa_mask);
80 sa.sa_flags = SA_SIGINFO;
82 sigaction(SIGABRT, &sa, NULL);
83 sigaction(SIGSEGV, &sa, NULL);
84 sigaction(SIGBUS, &sa, NULL);
85 sigaction(SIGFPE, &sa, NULL);
process_name opflashCryoW ana
then echo File list $list not found else cat $list while read file do echo $file sed s
BEGIN_PROLOG could also be cout
void handle_signal(int sig, siginfo_t *, void *)
static InstallHandlers gHandlerInstaller