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

bwt2fa: Segmentation fault: 11 #21

Open
karel-brinda opened this issue May 31, 2018 · 0 comments
Open

bwt2fa: Segmentation fault: 11 #21

karel-brinda opened this issue May 31, 2018 · 0 comments
Assignees
Labels

Comments

@karel-brinda
Copy link
Member

$ "/Users/karel/github/my/prophex/prophex" bwt2fa index.fa index.fa
[prophex:bwt2fa] Loaded bwa index from index.fa
Segmentation fault: 11
$ lldb -- "/Users/karel/github/my/prophex/prophex" bwt2fa index.fa index.fa
(lldb) target create "/Users/karel/github/my/prophex/prophex"
Current executable set to '/Users/karel/github/my/prophex/prophex' (x86_64).
(lldb) settings set -- target.run-args  "bwt2fa" "index.fa" "index.fa"
(lldb) run
Process 40906 launched: '/Users/karel/github/my/prophex/prophex' (x86_64)
[prophex:bwt2fa] Loaded bwa index from index.fa
prophex was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 40906 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x0000000100024b6d prophex`bwt2fa(prefix=<unavailable>, output_filename="index.fa") at prophex_build.c:130 [opt]
   127 		bwtint_t progress_output_step = (bwt->seq_len + 9) / 10;
   128 		while (i < bwt->seq_len) {
   129 			bwtint_t new_pos = bwt_pos - (bwt_pos > bwt->primary);
-> 130 			new_pos = bwt_B0(bwt, new_pos);
   131 			seq[bwt->seq_len - i - 1] = "ACGT"[new_pos];
   132 			new_pos = bwt->L2[new_pos] + bwt_occ(bwt, bwt_pos, new_pos);
   133 			bwt_pos = bwt_pos == bwt->primary ? 0 : new_pos;
Target 0: (prophex) stopped.
(lldb)
@karel-brinda karel-brinda changed the title Segmentation fault: 11 bwt2fa: Segmentation fault: 11 May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants