torognes / swipe

Smith-Waterman database searches with inter-sequence SIMD parallelisation
GNU Affero General Public License v3.0
58 stars 21 forks source link

Fix random crashes with "Internal error in align function" #3

Closed torognes closed 10 years ago

torognes commented 11 years ago

Fix rare random crashes with "Internal error in align function" from region() in align.cc. Possibly related to reading of input data. Seems to appear only when running from a script and not interactively.

torognes commented 10 years ago

Unable to reproduce this bug until now. However, the error message did appear today when a very long protein sequence was compared to itself (it should have had a score of 65542). The bug probably appears when the actual alignments having a score above 65535 are produced (in align.cc) and an incorrect (16-bit) score have initially been computed.