WIP: protect against bad key in read_seg_entry