You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buffer overflow in k-mer prefilter with highly conserved sequences #1092
mmseqs easy-search fails at prefilter step with segfault when running an antibody query against a multi-million antibody database (e.g. 10M clonotype sequences). Any dataset where conserved k-mers match a large fraction of targets will trigger it.
Problem is caused by underestimation of output size when checking for buffer overflow in CacheFriendlyOperations::findDuplicates. The check uses std::min(elementCount, currBinSize/2), assuming at most half of bin entries are duplicates. This assumption breaks when query k-mers are shared across a large fraction of the target database — as it happens with antibody variable region sequences, where conserved framework k-mers match ~70% of targets on consistent diagonals.
This would be amazing to have fixed, I think I'm having a similar issue with a database that contains millions of DNA barcodes, which contain both variable and conserved regions.
I am having this same issue. Nucleotide database search of CO1 amplicons (~100k) against a reference database (~1 million) results in a segfault during prefiltering.
FYI - I compiled from source with the fix from @mzueva and was able to run my queries. Not sure if there are efficiency concerns from using the max upper bound on duplicates.
Thanks all — this looks resolved (fixed in a recent release or answered in the thread), so I'm closing it. If you're still running into this, please reopen with your MMseqs2 version, the exact command, and the full output and we'll take another look. Thanks for using MMseqs2!
Activity
jackscanlan commentedon Mar 30, 2026
This would be amazing to have fixed, I think I'm having a similar issue with a database that contains millions of DNA barcodes, which contain both variable and conserved regions.
dleopold commentedon Apr 10, 2026
I am having this same issue. Nucleotide database search of CO1 amplicons (~100k) against a reference database (~1 million) results in a segfault during prefiltering.
dleopold commentedon Apr 15, 2026
FYI - I compiled from source with the fix from @mzueva and was able to run my queries. Not sure if there are efficiency concerns from using the max upper bound on duplicates.
Fix several reported issues from GitHub triage
martin-steinegger commentedon Jun 21, 2026
Thanks all — this looks resolved (fixed in a recent release or answered in the thread), so I'm closing it. If you're still running into this, please reopen with your MMseqs2 version, the exact command, and the full output and we'll take another look. Thanks for using MMseqs2!