Hello community,
We are facing an issue regarding the personalization of core dump files generation as documented in this IBM URL https://www.ibm.com/support/pages/aix-core-dump-facility.
The problem is that the core dumps are not being generated when the personalization parameters are enabled for non-privileged accounts, the core dumps are only generated when logging in as root through SSH.
It's important to mention that when logging in as root through SSH and then switch (su) to a non-privileged account the core dump files are generated as expected.
The server and the account are configured as following:
# lsattr -E -l sys0 | grep full
fullcore Enable full CORE dump
# lsuser -f -a fsize core core_hard ACCOUNT
ACCOUNT:
fsize=-1
core=-1
core_hard=-1
# lscore ACCOUNT
compression: on
path specification: on
corefile location: /users/ACCOUNT/dir_coredumps
naming specification: on
We force the core dump generation (Segmentation Fault) executing the following C code :
#include <stdio.h>
int main() {
int *ptr = NULL;
*ptr = 5;
return 0;
}
After some research our hypothesis is that the issue could be related to the SSH protocol, because, when we access the server directly from the HMC or using the TELNET protocol, the generation of core dump files is successful for both, root and non-privileged accounts.
The test was executed in the following environment:
SO version: AIX 7200-05-05-2246
OpenSSH version:
$ lslpp -L | grep -i ssh
openssh.base.client 8.1.112.1201 C F Open Secure Shell Commands
openssh.base.server 8.1.112.1201 C F Open Secure Shell Server
$ ssh -V
OpenSSH_8.1p1, OpenSSL 1.1.1l 24 Aug 2021
¿Do you have any ideas to solve this issue?, we really appreciate any suggestions.
Regards,
Aaron
------------------------------
Aarón Gaona
------------------------------