Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I thought that this was going to be different story.

There was a program I heard about back in the 90s which would literally crash depending on the phase of the moon!

The story is that it wanted to print a date. The programmer happened to have an astronomy library available that gave a string containing the date. So the programmer called that, and then parsed out the date.

Unfortunately the astronomy library wrote its result as a string to a point. The result included the phase of the Moon. The pointer was not declared to be long enough. And therefore, would crash if the name of the phase of the moon was too long!






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: