Problem with arduino

A couple things:

  1. Do not use serial.print() inside of an interrupt service routine. It is interrupt driven and bound to cause you problems.

  2. The code shouldn't affect the bootloader. Do you have anything else connected to the arudino board?

  3. If you still think your code is related to the problem, tie pin 2 (interrupt 0) to 5 V to make sure it isn't activated.