A flashing red light at a railroad crossing means:

You are required to stop at all railroad crossings when a signal warns of an approaching train. These signals may include flashing red lights, a lowered crossing gate, a flagger signaling, or a train’s audible signal of warning. Do not move forward or attempt to go around any gate or ignore any signal of an approaching train.

Wait, before you go

Ace Your Pennsylvania DMV Written Test with our Guaranteed Cheat Sheet