There is probably a wrong `termvect.push_back` call, in commit 77cbd2b3b26e between lines 1223 and 1300 of file parsrepl_rps.cc