Description
The class RangeToken initializes its fMap data member the first time on-demand, which makes it sensitive to race-conditions. I am proposing a patch to the class, with additional patches to the classes that perform static initialization to ensure that when users request full static initialization, the fMap data member of all static RangeToken instances is initialized.
Although this does not prevent threading problems in all cases, it will fix the problem with all global statics. I will attempt to propose another patch that takes care of the problem with other uses of RangeToken.