I was trying to generate a core file in Ubuntu 18.04. My program generates a core file, but I'm not able to find it.
$ ./a.out
Segmentation fault (core dumped)
$ ls -lrt
total 32
-rwxrwxrwx 1 sanjay sanjay 302 Mar 4 16:38 segmentation.cpp
-rwxrwxrwx 1 sanjay sanjay 28720 Mar 4 16:47 a.out
ulimit
(also set tounlimited
in my system), its' the coredumpulimit
which you get withulimit -c
- make sure that is 'unlimited' as well. – Thomas Ward Mar 06 '19 at 21:47