Skip to content

Commit a2b4336

Browse files
committed
[FIX] crash due to simultatenous access to length cache
1 parent c21dfd3 commit a2b4336

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/lambda.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,12 @@ computeBlastMatch(TBlastMatch & bm,
10621062

10631063
// const unsigned long qryLength = length(row0);
10641064
computeBitScore(bm, context(lH.gH.outfile));
1065-
computeEValue(bm, context(lH.gH.outfile));
1065+
1066+
// the length adjustment cache must no be written to by multiple threads
1067+
SEQAN_OMP_PRAGMA(critical(evalue_length_adj_cache))
1068+
{
1069+
computeEValue(bm, context(lH.gH.outfile));
1070+
}
10661071

10671072
if (bm.eValue > lH.options.eCutOff)
10681073
{

0 commit comments

Comments
 (0)