no core dump from the kernel on SIGSEGV

David Ho DavidHo at nanometrics.ca
Wed Jun 2 06:22:34 EST 2004


Hi all,

I'm looking at making the kernel core dump on a process that seg vaulted.
What I did was recompiled the kernel specifying a non-zero core file size
rlim[RLIMIT_CORE] = { RLIM_INFINITY, RLIM_INFINITY }.  I was still not
getting a core dump.

The following test program was used to signal a seg vault (SIGSEGV).

#include <stdio.h>

int main(int argc, char** argv) {

        unsigned int* pointer = (unsigned int*) 0x12345678;

        /* generate a SIGSEGV - invalid memory reference */
        *pointer = 0xdeadbeef;

        return 0;
}

Anyone can shred some light on this?

Thanks a lot,
David


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list