EddyRivasLab / hmmer

HMMER: biological sequence analysis using profile HMMs
http://hmmer.org
Other
317 stars 70 forks source link

alimask crashes when given bounds that are outside the range of the alignment #237

Closed npcarter closed 3 years ago

npcarter commented 3 years ago

Alimask crashes if asked to mask an alignment in a region that's outside the range of the alignment.

Example, on an alignment from Pfam-seed that has width 49:

npcarter@Mac-mini src % ./alimask --alirange 10..100 ~/known-good/test-align ~/test-results/masked

alimask :: appending modelmask line to a multiple sequence alignments

HMMER 3.3.2 (Nov 2020); http://hmmer.org/

Copyright (C) 2020 Howard Hughes Medical Institute.

Freely distributed under the BSD open source license.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

input alignment file: /Users/npcarter/known-good/test-align

output alignment file: /Users/npcarter/test-results/masked

alignment range: 10..100

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

alimask(14923,0x104acfd40) malloc: Incorrect checksum for freed object 0x12d906378: probably modified after being freed. Corrupt value: 0x6d6d6d6d6d6d6d6d alimask(14923,0x104acfd40) malloc: *** set a breakpoint in malloc_error_break to debug zsh: abort ./alimask --alirange 10..100 ~/known-good/test-align ~/test-results/masked

npcarter commented 3 years ago

This issue was fixed by Travis' pull request 258. Closing.