in reply to I need a "non-trivial" bug for my script!

Since you're computing time spent in various places by comparing timestamps from one line to another, you could introduce a bug in the indexing of those pre-computed times. For example, comparing everything against the last match of any user, rather than the last match for that user. Or perhaps comparing the timestamp on each line with the first line on which that user's ip address ever appears, for times that continue to increase into infinity.

Perhaps a bug in the regular expression that causes two non-identical IP addresses to match each other when they should not.

I'm shootin' in the dark here. It would be easier if we could see the code. :)
  • Comment on Re: I need a "non-trivial" bug for my script!

Replies are listed 'Best First'.
Re^2: I need a "non-trivial" bug for my script!
by GrandFather (Saint) on Feb 26, 2009 at 22:49 UTC

    Actually as soon as you introduce comparing time stamps issues such as non-synced time sources, day roll over, daylight savings changes, leap seconds, timezone issues and date formats present a huge range of bug possibilities.


    True laziness is hard work