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

Some barcodes lead to unitialized data seg fault #2

Open
wltrimbl opened this issue May 17, 2016 · 3 comments
Open

Some barcodes lead to unitialized data seg fault #2

wltrimbl opened this issue May 17, 2016 · 3 comments

Comments

@wltrimbl
Copy link

idemp seg faults on line 299 (writing the .decode file) for some valid input files.

This happens whenever the input has at least one barcode that is too far from any of the barcodes. NNNNNNNNN triggers this problem for testing.

This happens because the loop that sets readBarcodeIdx[i] and readBarcodeMis[i] does not set an initial value for readBarcodeIdx and the conditionals enclosing the statements that assign readBarcodeIdx are sometimes not satisfied.

@yhwu
Copy link
Owner

yhwu commented May 20, 2016

Good catch, didn't think of this situation

@djcabral92
Copy link

Is there any fix for this type of problem? I noticed several instances of NNNNNNNNNNNN in my indexing reads and I keep getting a segmentation fault error.

@yhwu
Copy link
Owner

yhwu commented Jun 5, 2017

@wltrimbl provided a fix.

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

3 participants