Closed Bug 77778 Opened 25 years ago Closed 25 years ago

Stuttering in list of components, etc.

Categories

(Bugzilla :: Bugzilla-General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.14

People

(Reporter: terry, Assigned: justdave)

References

Details

Attachments

(1 file)

Bugzilla has had a long time, very-hard-to-reproduce problem where occasionally all the entries in the versions and components and other selection lists would get duplicated: each component would be listed twice, etc. Everyone knew that this was because the versioncache file was getting corrupted, but nobody knew how. Well, I happened to be staring at some code, and I think I found out how. If a .cgi calls GetVersionTable() more than once and if it has been exactly one hour since the versioncache file was last created, then this problem can result. The first time it gets called, it decides that the existing file is recent enough it loads the data from the versioncache file. The second time, the clock has ticked over one second and so it now decides the versioncache file is out-of-date. So, it goes to regenerate it. Well, all the regeneration code assumes that the variables start out empty, so it is going to append new data to the end of the existing data in memory from the first time it loaded. Oops. GetVersionTable() needs to be patched to do nothing if it has been called already.
Target Milestone: --- → Bugzilla 2.16
*** Bug 71888 has been marked as a duplicate of this bug. ***
We seem to be running into this a lot on b.m.o. lately... here's hoping this fixes the corruptions...
Assignee: tara → justdave
Target Milestone: Bugzilla 2.16 → Bugzilla 2.14
Attached patch Patch — — Splinter Review
Keywords: patch, review
r=tara
checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
*** Bug 2669 has been marked as a duplicate of this bug. ***
Moving to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: Bugzilla 2.12 → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: