The sealant around this flue pipe caught fire, very nearly setting the shelving above ablaze. The white marks around the flue pipe are the result of the fire.
It is important to have your chimney regularly swept and checked by a qualified chimney sweep.