Can you try changing [line 236](https://github.com/pb-cdunn/nim-help/blob/master/raptor_db.nim#L236) with `var sr = SequenceRecord()` ?
I'm not sure but maybe what you're doing is scope-escaping memory? That `var sr: SequenceRecord` only available in the stack and it got destroyed after you copy (or move?) to `result.seqs.add(sr)` I cannot run it, currently don't have available linux box currently.
