<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 3, 2015 at 6:18 PM, Víctor Fernández <span dir="ltr"><<a href="mailto:vfrico@gmail.com" target="_blank">vfrico@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hello<br><br></div>I'm using rigth now a Manjaro distribution (derived from arch). Making some test, i've discovered that sending SIGABRT (6) to PID 1 (systemd) will cause system to enter on unstable mode:<br><br></div>after doing this, the system reboot graphic server (at least, it request to login again) and if you resend the SIGABRT, the system goes to Kernel Panic Mode.<br><br></div>Here is the code I've tested (executing as sudo, of course).<br><br>echo "int main(){kill(1,6);kill(1,6);}" > a.c && gcc a.c && sudo ./a.out <br><br></div>It appears not to be a very large problem (since root permisions are required), but I think is an undiserable behaviour.<br><br></div>Is this really a bug? </div></div></div></blockquote></div><div class="gmail_extra"><br></div>No, it is not a bug that a program crashes <b>when you ask it to crash</b>. The whole point of SIGABRT is that it kills the program immediately, when the program calls abort() after detecting some serious inconsistency.</div><div class="gmail_extra"><br></div><div class="gmail_extra">It is also not a bug that the kernel panics when init exits. Several things depend on the existence of PID 1.<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>