Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C fasta is broken #23

Open
italomaia opened this issue May 2, 2021 · 2 comments
Open

C fasta is broken #23

italomaia opened this issue May 2, 2021 · 2 comments

Comments

@italomaia
Copy link

fasta implementation for C is broken; "Segmentation fault"

@italomaia
Copy link
Author

Seems related to this call:

generate_And_Wrap_Pseudorandom_DNA_Sequence(iub_Nucleotides_Information,
		sizeof(iub_Nucleotides_Information) / sizeof(nucleotide_info), 3 * n);

@99991
Copy link

99991 commented Sep 21, 2022

Compiling and running with address sanitizer does not raise any issues:

gcc -g -fsanitize=address -fsanitize=undefined -pipe -Wall -O3 -fomit-frame-pointer -march=native -std=c99 -mfpmath=sse -msse3 -fopenmp fasta.gcc-2.c -o fasta.gcc-2.gcc_run && ./fasta.gcc-2.gcc_run 25000000 > /dev/null

Valgrind does not find any issues either. But on the first attempt, I tried to run the program without a parameter and it segfaulted here:

const intnative_t n = atoi(argv[1]);

Was that perhaps the issue for you as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants