To prevent the escape of privileged data, setcap executables on Linux don't dump core:
ijw@build$ cat > test.c
main() { abort(); }
ijw@build$ gcc test.c
test.c: In function ‘main’:
test.c:1: warning: incompatible implicit declaration of built-in function ‘abort’
ijw@build$ ./a.out
Aborted (core dumped)
ijw@build$ sudo setcap "cap_net_admin=+ep" a.out
ijw@build$ ./a.out
Aborted
Is there any way to enable it when you're debugging and actually want to see the core file?
ulimit -c unlimited
– Alterant