faulter

faulter - int main(void) { volatile int i;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * faulter.c * * Tries to access an illegal address. * * When the system calls assignment is complete, this should run and * get killed without causing the kernel to panic. */ #include <stdio.h> #define REALLY_BIG_ADDRESS 0x40000000
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int main(void) { volatile int i; printf("\nEntering the faulter program - I should die immediately\n"); i = *(int *)REALLY_BIG_ADDRESS; printf("I didn't get killed! Program has a bug\n"); return 0; }...
View Full Document

This note was uploaded on 11/10/2009 for the course CS 536 taught by Professor Lums during the Spring '09 term at Indiana.

Ask a homework question - tutors are online