1 /* Refer https://bugs.kde.org/show_bug.cgi?id=234814
8 const char kSigbus
[] = "I caught the SIGBUS signal!\n";
13 write(1, kSigbus
, sizeof(kSigbus
)-1);
20 sa
.sa_handler
= mysigbus
;
21 sigemptyset(&sa
.sa_mask
);
23 if (sigaction(SIGBUS
, &sa
, NULL
) == -1) {
27 kill(getpid(), SIGBUS
);