I have unpacked my vmlinuz
into a vmlinux
and tried to execute it, just to see what would happen. However, the binary gets SIGKILL on startup!
Why does this happen?
I was expecting a SIGILL (kernel tries to do something that is not allowed in user space) or a SIGSEGV (trying to access kernel memory not allowed in user-mode not allowed to access), but not a SIGKILL!
Is the process sending SIGKILL to itself, or is it being killed? GDB doesn't help -- the message is During startup program terminated with signal SIGKILL, Killed.
The max resident memory is only 412kB per /bin/time
so the OOM killer is not the culprit. In fact, the SIGKILL is sent even if I have the OOM killer disabled by echo 2 | sudo dd of=/proc/sys/vm/overcommit_memory
.