sl@0: /* Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.*/ sl@0: /* This is simply a process that segfaults */ sl@0: #include sl@0: #ifndef TODO sl@0: #include sl@0: #endif sl@0: #include sl@0: #include sl@0: sl@0: int sl@0: main () sl@0: { sl@0: char *p; sl@0: sl@0: struct rlimit r = { 0, }; sl@0: #ifndef TODO sl@0: getrlimit (RLIMIT_CORE, &r); sl@0: r.rlim_cur = 0; sl@0: setrlimit (RLIMIT_CORE, &r); sl@0: sl@0: raise (SIGSEGV); sl@0: #endif sl@0: p = NULL; sl@0: *p = 'a'; sl@0: sl@0: return 0; sl@0: }