Keep the training ideas coming. I had the same experience recently in my first and only marathon - leg spasms after 20 miles but I don't think I bonked because I avoided the death shuffle. Lost maybe a minute in the last 10K. I did some of the things people here are suggesting (15MP in a 20-mile run) but not the total glycogen depletion workouts.