UART over multiple Arduinos mysterious problem

This is an excerpt of your code and absolutely useless as it is. Post the complete sketch and do that for both sides of the communication.

Just to eliminate one of the most common errors: did you connect the grounds?