In some languages such as French, a grave accent is a symbol that is placed over a vowel in a word to show how the vowel is pronounced. For example, the word 'mère' has a grave accent over the first 'e'
PHRASE
自掘坟墓;自取灭亡
If you say that someone is digging their own grave, you are warning them that they are doing something foolish or dangerous that will cause their own failure.
If you say that someone who is dead would turn in their grave at something that is happening now, you mean that they would be very shocked or upset by it, if they were alive.