On a recent hike in Germany I came across a tree that I never saw before. Its entire trunk was covered with holes. The bark wasn’t cut or punctured, just weirdly bent inwards. There was just this one tree that looked like this. Unfortunately, it didn’t have leaves yet.

Do you know what kind of tree that is? Or is it some kind of virus / cancer etc. causing this?