0

我想调试一个失败的服务SIGPIPE。所以我安装了一个信号处理程序SIGPIPE并调用abort()它以获得核心转储。

但我没有得到。我已经准备sysctl -w kernel.core_pattern=/tmp/corecore进入并且tmp我设置了两者/etc/security/limits.confulimit -c unlimited

那么,我怎样才能得到一个core

我的 xinetd-service 文件如下所示:

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
}
4

1 回答 1

0

添加

struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY }; 
setrlimit(RLIMIT_CORE, &rl);

解决了问题

于 2015-01-08T20:08:06.510 回答