Public bug reported: Binary package hint: linux-source-2.6.22
I cannot get apport to work on 2.6.22-6.13. There is no data passed, the core dumps are 0 empty by default, and CORE_REAL_RLIM is always -1. Let's create a crash hook and enable it: $ echo -e '#!/bin/sh\nenv >/tmp/env\ncat >/tmp/crash' > /tmp/hook $ chmod 755 /tmp/hook $ echo '|/tmp/hook' | sudo tee /proc/sys/kernel/core_pattern For the default ulimit 0: $ ulimit -c 0 $ bash -c 'kill -SEGV $$' Segmentation fault (core dumped) $ ls -l /tmp/env /tmp/crash -rw-r--r-- 1 root root 0 2007-06-08 08:25 /tmp/crash -rw-r--r-- 1 root root 145 2007-06-08 08:25 /tmp/env $ grep RLIM /tmp/env CORE_REAL_RLIM=-1 In this case, CORE_REAL_RLIM should be 0 (since -1 means 'unlimited') and /tmp/crash should have the entire core dump (but is empty). For unlimited it works fine: $ ulimit -S -c unlimited $ bash -c 'kill -SEGV $$' Segmentation fault (core dumped) $ ls -l /tmp/env /tmp/crash -rw-r--r-- 1 root root 905216 2007-06-08 08:28 /tmp/crash -rw-r--r-- 1 root root 145 2007-06-08 08:28 /tmp/env $ grep RLIM /tmp/env CORE_REAL_RLIM=-1 For a large limit, the core dump works, but CORE_REAL_RLIM is not correctly set: $ ulimit -S -c 5000 $ bash -c 'kill -SEGV $$' Segmentation fault (core dumped) $ ls -l /tmp/env /tmp/crash -rw-r--r-- 1 root root 909312 2007-06-08 08:30 /tmp/crash -rw-r--r-- 1 root root 145 2007-06-08 08:30 /tmp/env $ grep RLIM /tmp/env CORE_REAL_RLIM=-1 For a small ulimit, the core dump s correctly capped, but CORE_REAL_RLIM is still -1: $ ulimit -S -c 50 $ bash -c 'kill -SEGV $$' Segmentation fault (core dumped) $ ls -l /tmp/env /tmp/crash -rw-r--r-- 1 root root 53248 2007-06-08 08:31 /tmp/crash -rw-r--r-- 1 root root 145 2007-06-08 08:31 /tmp/env $ grep RLIM /tmp/env CORE_REAL_RLIM=-1 The empty core dump with 0 ulimit breaks apport in the default case, and the wrongly set CORE_REAL_RLIM breaks correct writing of core files by apport. Thanks in advance! ** Affects: linux-source-2.6.22 (Ubuntu) Importance: Undecided Status: Unconfirmed -- apport patches for CORE_REAL_RLIM and limit overriding do not work any more https://bugs.launchpad.net/bugs/119267 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs