Comment 5 for bug 1153662

Revision history for this message
Graeme Hewson (ghewson) wrote :

The specified core limit ends up getting multiplied by 1024*1024, though. Testing with your patch applied, ulimit 10 should be small enough to prevent this core file being written, but it is written:

$ shopt -o posix
posix off
$ ulimit -c 10
$ sleep 99
^\Quit (core dumped)
$ ls -l core; rm core
-rw-r----- 1 ghewson ghewson 372736 Mar 14 18:06 core
$ cat /var/log/apport.log
ERROR: apport (pid 10975) Thu Mar 14 18:06:05 2013: called for pid 10972, signal 3, core limit 10240
ERROR: apport (pid 10975) Thu Mar 14 18:06:05 2013: writing core dump to /tmp/core (limit: 10485760)

---

10485760 = 10 * 1024 * 1024