This could happen if the compatibility between the railtypes was not symmetric. If for example a reservation of a first train ended at a railtype transition with an already present reservation on the other side, a reversing train could end up crashing with the first train.