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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1153662

Title:
  Core file not created on SIGQUIT

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1153662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to