pre2.3.1-5: the return value from pop_lut was not being checked leading to a segv upon faiure