Gear cable snaps
The shifter feels wobbly, the chain is in the biggest cog and you have three more hills to climb before getting home.
Freehub freewheels in both directions
It's the strangest feeling to pedal forwards and not get anywhere. If it's just started happening, you may be able to temporarily fix it.
Pedal breaks
Normally pedals don't break so much as fall apart. So long as you have the bits, you can fix it. If you've lost the parts, you can still ride out.