Jokes about painful subjects (7,6)
I believe the answer is:
gallows humour
(Other definitions for gallows humour that I've seen before include "Black comedy or jokes" , "Sinister and ironic wit" , "Making jokes in a desperate situation" , "Type of perverse wit" , "Grim jesting" .)