Can you debug it? — Signal Handler with unexpected behavior

This is the first edition of “Can you debug it?”, where we test your mettle with weird, small pieces of code which don’t work as they are…