我想调试一个使用SIGPIPE失败的服务。因此,我为SIGPIPE安装了一个信号处理程序,并在其中调用了abort(),以便获得一个核心转储。
但我什么也没得到。我将sysctl -w kernel.core_pattern=/tmp/core设置为将core设置为tmp,并使用/etc/security/limits.conf和ulimit -c unlimited进行设置
那么,我怎样才能得到一个core
我的xinetd服务文件如下所示:
service netmaumau
{
socket_type = stream
protocol = tcp
port = 8899
type = UNLISTED
flags = KEEPALIVE
disable = no
wait = yes
user = heiko
instances = 1
cps = 1 10
server = /long/path/to/nmm-server
server_args = -a
log_on_success = PID HOST EXIT
log_on_failure = HOST
}发布于 2015-01-08 20:08:06
添加
struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
setrlimit(RLIMIT_CORE, &rl);解决了这个问题
https://stackoverflow.com/questions/27848157
复制相似问题