I have a program which is aborting and I want to view a core dump. I am using addresssanitizer which is causing the abort when it hits a heap overflow. I have done the following:
sudo sysctl -w kernel.core_pattern=core.%u.%p.%t
ulimit -c unlimited
sudo vim /etc/apport/crashdb.conf
and commented out
'problem_types': ['Bug', 'Package'],
Then ran:
systemctl enable apport.service
However, when my program crashes, there is NO core file in the directory where the program ran, or in /var/crash/
or in /var/lib/systemd/coredump
I am on Ubuntu 18.04.
export ASAN_OPTIONS=abort_on_error=1
before running the program for ASAN to attempt to coredump. Note, this is NOT related to my question above though (that issue is still not solved). – the_endian May 11 '20 at 19:55