The crashing of waves