Mental affliction caused by spending too much time inside the same building; named after the experience of pioneers who were snowed in, stuck in their same small cabin for weeks. It can manifest as just restlessness or downright weird behavior.

Jimmy Buffett in "Boat Drinks" gives a good example:

This morning, I shot six holes in my freezer.
I think I got cabin fever.
Somebody sound the alarm.