-
Notifications
You must be signed in to change notification settings - Fork 23
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
Segfault #1
Comments
Thanks for the bug report. I'm afraid it would be very hard to fix the problem without the specific In addition, you could try to change the distanceLow and distanceHigh
|
Hi Bao, There's not much I could send to you as the files in tmp dir are large: total 15G |
Hi, Daniel, I find your left read file has a different size from the right read file. I have also updated the manual to make it clearer. Thanks,
|
Yes trimmed reads often have different lengths. I will try tomorrow. On Wed, Jun 25, 2014 at 4:47 PM, Bao notifications@github.com wrote:
|
It has stil crashed with a 'Segmentation fault'. Here's the stdout: (0) Alignment finished CHROMOSOME 0: |
There's may be a confounding factor here that most of the reads Will not map to my assembled contigs. I have selected a couple of contigs from a small metagenomic assembly but supplied the program with all the reads. |
Can you send me this time's printout by "ll tmp" just like yesterday?
|
Hello, I believe I am having this same issue. I have added several couts and uncommented some of the ones you had in place to try to locate where the issue occurs. It definitely makes it to the updateKMer function, and the updateKBases function (around line 1184). I think it is in the "goto cont" statement on line 1187 (I added some more prints so not exact). The last print statement before the segfault is just before the first if() control flow of the cont: statement (line 1284). I did have a print if it passed the first if() statment here and it did not print, but I did not have prints for the other if()s. I just added them, recompiled and am re-running. I will update when it's available unless you think this is pretty much useless. |
Ok, here is an update... Here is a snippet of your code mixed with my prints (starting around line 1275): cont:
cout << "cont: A" << endl;
k2.traversed = 0;
k2.s = nextS;
k2.chromosomeID0 = nextID0;
k2.chromosomeOffset0 = nextOffset0;
k2.coverage = 0;
k2.A = k2.C = k2.G = k2.T = k2.N = 0;
cout << "cont: B" << endl;
cout << "nextid: " << nextID << ", nextOffset: " << nextOffset << endl;
cout << genome[nextID][nextOffset].contiMer.size() << endl;
cout << "nextid0: " << nextID0 << ", nextOffset0: " << nextOffset0 << endl;
cout << genome[nextID0][nextOffset0].contiMer.size() << endl; I have additional cout statements at the beginning of each if() statement and just before each if() statements; however the last few lines of the std out are:
So, it appears that for some reason the segfault is caused by trying to lookup indices that don't exist (genome[nextID0][nextOffset0]). Any thoughts? |
I'm getting a segfault on 1 TB RAM machine comparing two small bacterial genomes.
Here's the stdout:
cmd-> cat alignGraph.out
AlignGraph: algorithm for secondary de novo genome assembly guided by closely related references
By Ergude Bao, CS Department, UC-Riverside. All Rights Reserved
(0) Alignment finished
CHROMOSOME 0:
(1) chromosome loaded
(2) contig alignment loaded
Here's error:
[2]+ Segmentation fault /sgi/asmopt/src/AlignGraph/AlignGraph/AlignGraph --read1 all_R1.fasta --read2 all_R2.fasta --contig contigs.fasta --genome chromosome.fasta --distanceLow 1000 --distanceHigh 1000 --extendedContig extendedContigs.fa --remainingContig remainingContigs.fa > alignGraph.out 2> alignGraph.err
Also, you should not hardcode the number of processors for bowtie2 to 8 - we have 64, the prog should pick max at runtime.
The text was updated successfully, but these errors were encountered: