A simple C program to detect bit flips possibly caused by cosmic rays.
Allocates a gigabyte array and checks for bit flips. If a bit flip is found it prints the unix timestamp, test number, and location in the array.
If it can't allocate the memory it will throw a segfault.
It runs indefinitely until it receives a SIGINT.
The test.c
file has also been provided which triggers a bit flip in bitflipdetector.c
by modifying the memory of the process. Make sure to run it with sudo
Wikipedia on Soft Errors (cosmic rays creating energetic neutrons and protons)