Every time, my application crash a core dump file is not generated. I remember that few days ago, on another server it was generated. I'm running the app using screen in bash like this:
#!/bin/bash
ulimit -c unlimited
while true; do ./server; done
As you can see I'm using ulimit -c unlimited
which is important if I want to generate a core dump, but it still doesn't generate it, when I got an segmentation fault.
How can I make it work?
sudo
(and probably other kind of subshells): inulimit -c unlimited ; sudo ./server-crashing
, the new limit won't have effect whenserver-crashing
crashes. – Amorphousjournalctl -f
I found e.g.systemd-coredump[345476]: Resource limits disable core dumping for process 345459
– Pryer