Open sassy-crick opened 2 years ago
The issue is fixed!! THanks
I had some issues with compiling but was able to successfully compile and run the demo (without seg fault) using intel 2020 c compiler.
./configure CC=icc CXX=icpc --prefix=path/to/directory
Hope this helps someone! :)
Describe the bug The program is segfaulting with more recent compilers, in particular with
gcc
11.x.y
Additional context
igor -run_demo
results in a segfault Steps to reproduce the bug As above Expected behavior To fun the test program correctlySystem information:
gcc-11.2.0
andgcc-11.3.0
Compiling the code with newer, i.e. more recent compilers like gcc-11.2 or gcc-11.3 lead to a segfault in the demo program. The attached patch fixes this in Aligner.cpp, so the demo program can be used. This also fixes another problem in Utils.h. In Utils.h
#include <string>
is missing but I am sure you can patch that yourself. There are still some small buffer overflows, which you can see for yourself if you compile with the-g3 -fsanitize=address
flags. See here for more information: https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.htmlThanks igor-1.4.0-c++-patch.txt