Strange digital pin behaviour

Looks very likely killerdark but then on the original post he did say:-

I have the pins configured as outputs in software.

But I agree this would fit the symptoms.