You throw the cockatrice corpse with your bare hands.
You turn to stone...
Do you want your posessions identified? [yn]
I suppose you know you’re getting back into Nethack when you finally manage yet another stupid stoning death.
In this case I was fiddling about with my inventory and a stash. Having gone around the level, killed a cockatrice and picked up its corpse to wield as a weapon, I went back to the stash. I’d set things up nicely so that the only things on the square I was standing on were the things I wanted to identify, plus a few blessed scrolls of identify, a chest with my stash in it and my bag of holding. So I took off my armour and was about to stash it when I noticed I still had the cockatrice corpse, which I didn’t need to identify (it would rot away soon anyway). So I threw it away... forgetting that I’d just taken my gloves off.
Pity the scoring doesn’t count stuff on the same square as you, ‘cause there was a nice pile of gems in the chest.