Describe a challenging software bug you encountered in a past project and how you diagnosed and resolved it.