Menu

#31 Segmentation fault when maq fakemut

open
nobody
None
5
2010-06-29
2010-06-29
yanlinlin82
No

When the sequence is very short, which makes no mutation, maq will crash with segmentation fault. For example:

$ echo -e ">test\nACTG" | ./maq fakemut -
>test
Segmentation fault

Modifying the fasta2bfa.c could fix the bug:

$ cat fasta2bfa.c.patch
87c87
< if (i == mutarray[cur_mut].pos) {
---
> if (mutarray && i == mutarray[cur_mut].pos) {

Discussion


Log in to post a comment.