1
I looked at the similar topic for issue when trying to find Core Dumped file but none of the solutions seem to work for me. Can someone help me in debugging. My application generates output in log tail that it failed because of core dump but that file is not being generated anywhere and that information is not preserved in the log file.
Linux System:
NAME="Red Hat Enterprise Linux Server" VERSION="7.8 (Maipo)" ID="rhel" ID_LIKE="fedora" As mentioned I tried several ways from the given link:
ulimit
ulimit -c
unlimited
cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c %d %P %E
folder apport does not exist when I check it
I tried also to modify /proc/sys/kernel/core_pattern with a string starting with /tmp
echo "/tmp/cores/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
/proc/sys/kernel/core_pattern: Read-only file system
will this work if I run as root since I do not have that access currently?
Core Dump file also does not exist from the directory where I run my app.
I tried find as well on entire system:
find / -name 'core*'
find / -name '*apport*'
I also checked different folders:
ls /var/cache/abrt
ls: cannot access /var/cache/abrt: No such file or directory
ls /var/crash
ls: cannot access /var/crash: No such file or directory
ls /var/spool/abrt
ls: cannot access /var/spool/abrt: No such file or directory
cat /var/log/apport.log
cat: /var/log/apport.log: No such file or directory
No result in:
ls /var/lib/systemd/coredump/
For the following solution: To remedy the problem, we need to make sure apport writes core dump files for non-package programs as well. To do so, create a file named ~/.config/apport/settings with the following contents: [main] unpackaged=true
cd ~/.config/apport/
cd: /opt/front/arena/.config/apport/: No such file or directory
For the solution: If you're missing core dumps for binaries on RHEL and when using abrt, make sure that /etc/abrt/abrt-action-save-package-data.conf contains ProcessUnpackaged = yes
cd /etc/abrt
cd: /etc/abrt: No such file or directory
I think I am running out of options. Thanks
/opt? What user are you doing this as?bash-4.2$ whoami arena bash-4.2$ pwd /opt/front/arenaThe same user runs the app. Thanks