Closed stevenhwu closed 8 years ago
How to get the number for both PR and Issue at the same time? So we don't have to go back and forth and change it.
A pull request is a special type of issue. You can just create a pull request to represent the issue.
Fixed in #112
BUG
make test
- CALL_Sample5.3_VCF_ALT fail under release mode but not debug modeHow to reproduce it
Ran it twice, once in release, once in debug mode.
cd build;
release moderm -r *;cmake -DCMAKE_BUILD_TYPE=release ..;make testdata;make dng-call; ctest -VV -R "CALL_Sample5.3_VCF_ALT"
got the following error message
debug mode
rm -r *;cmake -DCMAKE_BUILD_TYPE=debug ..;make testdata;make dng-call; ctest -VV -R "CALL_Sample5.3_VCF_ALT"
Pass the test!Cause
line 779-780 in call.cc
genotype_index[k] = (j == 0 && ref_index == 4) ? -1 : folded_diploid_genotypes_matrix[n1][n2];
On my machine, when (n1==4 || n2==4) in debug mode,
folded_diploid_genotypes_matrix[n1][n2] = -1
in release mode,
folded_diploid_genotypes_matrix[n1][n2] = 134744072
(or some random number)which cause segmentation fault at line 832-834
Fix
see PR #112