Ok new patch to move this marker to be a rlimit core of 1 byte:
$ cat killme
#!/usr/bin/python
import resource
import os
import sys
resource.setrlimit(resource.RLIMIT_CORE, (int(sys.argv[1]), -1))
os.kill(os.getpid(), 11)
$ echo "core" | sudo tee -a /proc/sys/kernel/core_pattern
$ ./killme 0
Segmentation fault
$ ./killme 1
Segmentation fault
$ ./killme 2
Segmentation fault
$ ./killme 1024
Segmentation fault
$ ./killme 4096
Segmentation fault (core dumped)
$ echo "|/usr/share/apport/apport %p %s %c" | sudo tee -a
/proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c
$ ./killme 0
Segmentation fault (core dumped)
$ ./killme 1
Segmentation fault
$ ./killme 2
Segmentation fault (core dumped)
$ ./killme 1024
Segmentation fault (core dumped)
$ ./killme 4096
Segmentation fault (core dumped)
** Changed in: linux (Ubuntu Lucid)
Status: In Progress => Fix Committed
--
[lucid] breaks apport: core dumps get aborted even if core_pattern is a pipe
https://bugs.launchpad.net/bugs/498525
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs