I have written small C++ program under Linux that uses AVX instructions. But the program receives SIGKILL
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 SIGKILL
(at what instruction at best). But, when I run my program in GDB, program exits at the moment when it receives SIGKILL
and cannot be debugged. I tried to set:
(gdb) handle SIGKILL stop print nopass
but program still receives SIGKILL and exits before I can debug it. Do you have any tip how to work with this?