to
cause one's own
demise, downfall,
destruction, end, etc.; also, to
create a damaging or
nasty situation for oneself. This
phrase originated in the first half of the 20th century and is an allusion to a person literally digging the very hole in which he is going to be buried (his grave).