Hello,
I have issues with httpd in jail. Sometimes it happen that it stuck in infinite loop takeing 100% of processor. I want to examine coredump of such process to find out where is a problem. So I wrote a script that detects such a process and kills it, I get:
but there is no core file left (I also tried to kill with SIGSEGV with no joy). If it matters I send kill signal from outside a jail.
My sysctls:
I also have :coredumpsize=unlimited:\ in default class in /etc/login.conf
What else should I set up to get core file?
I have issues with httpd in jail. Sometimes it happen that it stuck in infinite loop takeing 100% of processor. I want to examine coredump of such process to find out where is a problem. So I wrote a script that detects such a process and kills it, I get:
root@vh5:~ # dmesg | grep httpd | tail -3
pid 93785 (httpd), uid 1049: exited on signal 3
pid 3018 (httpd), uid 1049: exited on signal 3
pid 3306 (httpd), uid 1049: exited on signal 3
but there is no core file left (I also tried to kill with SIGSEGV with no joy). If it matters I send kill signal from outside a jail.
My sysctls:
root@vh5:~ # sysctl -a | grep core
kern.corefile: /tmp/core.%N.%U.%P.core
kern.coredump_devctl: 0
kern.nodump_coredump: 0
kern.coredump: 1
kern.capmode_coredump: 0
kern.sugid_coredump: 1
kern.coredump_pack_vmmapinfo: 1
kern.coredump_pack_fileinfo: 1
debug.ncores: 5
debug.elf32_legacy_coredump: 0
debug.elf64_legacy_coredump: 0
hw.ixl.core_debug_mask: 0
I also have :coredumpsize=unlimited:\ in default class in /etc/login.conf
What else should I set up to get core file?