I have a C++ program that does what it is supposed to do, but there must be some problem with pointer, since it crashes at the end and creates a core dump. My problem is that I cannot find the core file, so I cannot debug it.
I have tried
ulimit -c unlimited
ulimit -a
and now the dimension of the file is set to unlimited, but still I cannot find the core. I have tried in every folder written here but still it seems that no core file is created.
Where can I find it?
/var/crash
/var/log/apport.log
, because modern Ubuntu versions use Apport, which can interfere with core-dumping in non-obvious ways. See stackoverflow.com/a/18368068/1772379 for more info.