title: Debugging program that catches SIGKILL under Linux
body: <p>I have written small C++ program under Linux that uses AVX instructions. But the program receives <code>SIGKILL</code> signal and exits. It seems that the reason is some illegal instruction or wrong value passed to an instruction. I would need to learn at what point of the program it receives <code>SIGKILL</code> (at what instruction at best). But, when I run my program in GDB, program exits at the moment when it receives <code>SIGKILL</code>and cannot be debugged. I tried to set:</p>
  
  <pre><code>    (gdb) handle SIGKILL stop print nopass
  </code></pre>
  
  <p>but program still receives SIGKILL and exits before I can debug it. Do you have any tip how to work with this?</p>