When running opensaf as non root; there are no coredumps generated during crash.
I have enabled coredumps in opensafd script.
Running kill -4 on any process running as opensaf does not generate coredump under /var/crash/opensaf
Checking running opensaf process limit
root@SC-1:/tmp# cat /proc/3657/limits
Limit Soft Limit Hard Limit Units
Max core file size unlimited unlimited bytes
Running kill -4 on amfnd or smfnd which are running as root generates coredumps in correct way.
I think this is same as https://sourceforge.net/p/opensaf/tickets/230/
The following patch enable coredump after setuid.
changeset: 6495:3f19d67c5fc6
tag: tip
user: Hans Nordeback hans.nordeback@ericsson.com
date: Mon Apr 27 16:55:13 2015 +0200
files: osaf/libs/core/common/daemon.c
description:
base: Coredumps are not generated when running as non root [#1106]
Related
Tickets:
#1106