This appears to happen only on the Fossil version mentioned above. Going a step back to "[e3efeb6f29] 2011-04-27 14:36:45 UTC" produces no errors when rebuilding any repo.