stock Glock 17 no special set up-at range-put a partially loaded mag in and pulled the slide back to cock and feed first round. First round feeds but no cock. The gun had been recently cleaned so first thought was I put it back together wrong. So dropped mag, cleared chamber and tried the whole deal again. no cocking. so unload totally, clear chamber, and take slide off. Trigger spring intact, everything looks normal and in place. I then move the cocking mechanism by hand, seems to go forward but grungingly so. (this with slide off) -pull trigger-repeat couple of times. Put the slide back on, dry cock a couple of times, and gun works fine. Question -what was the problem. If I had been in gun fight this malfunction could have been fatal.