Chimneys, like all roof penetrations, are common places for leaks on traditional roofs. These photographs show a preferred installation approach which should not develop a leak during the roof's lifetime.
Old roof and flashing. Note that the step flashing is made up of multiple pieces that are separating at the seams.