>What do I have to do?! Remove this undefined cast from your code! You are assuming that you can take some arbitrary integer and treat it as an address. As the bus error shows, this does not work on machines that take alignment seriously!