Project

General

Profile

Actions

Bug #12862

closed

ceph daemon does not generate core file on CentOS 7

Added by runsisi hust over 8 years ago. Updated over 8 years ago.

Status:
Won't Fix
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

On CentOS 7 which has "systemd-run" binary exists, when we use /etc/init.d/ceph to start ceph daemons, we do find that do_cmd_okfail in ceph_common.sh sets "ulimit -c unlimited", but after the daemon receives a signal, like 11(SIGSEGV), no core file generated.

If we add the "ulimit -c unlimited" in systemd-run cmdline as follows, everything will be OK.

cmd="$SYSTEMD_RUN -r bash -c 'ulimit -c unlimited;$files $cmd --cluster $cluster --setuser ceph --setgroup ceph -f'" 

BTW, we have set /proc/sys/kernel/core_pattern properly.

Actions

Also available in: Atom PDF