-
Notifications
You must be signed in to change notification settings - Fork 95
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 on empty reads #32
Comments
Failing line is this one: Line 194 in 7667f14
|
Thanks Christian, Do you know what the status of your pull request is? This has been open for a couple of weeks with no action. |
@najoshi has not been active since Jul 26, so I don't know, maybe on holiday. |
@najoshi any chance of getting this merged in? |
Hi Rory, As far as I can tell, all this merge would do is add gnu autotools build to
On Tue, Feb 24, 2015 at 11:58 AM, Rory Kirchner [email protected]
Nikhil Joshi |
Perhaps an updated copy of Latest version from htslib: https://github.com/samtools/htslib/blob/develop/htslib/kseq.h |
So I think I've fixed it. I took some code from the new kseq.h and put it into this one to deal with the empty read problem. Test it out and let me know if you find more bugs. |
Hi @najoshi, good to finally hear from you. The reason I added a GNU autotools build is that it makes it much easier to add some tests and automatically execute them (as well as build and install the software in a portable and standard way). Yes, I did not have had a fix yet, just implemented the test to check the issue. @ucdavis-bioinformatics Maybe you can base your fix upon my #33 PR? |
Fix now in #33 |
Hi @najoshi and @wookietreiber, Thanks for the responses-- the fix in master works on the test file I posted. #33 does as well. |
Hi @najoshi,
I'm using sickle to clean up some trimming with cutadapt and some of the reads coming from cutadapt can have length zero, which causes sickle to segfault. I put up a file with two reads in it, one of which is empty, as an example here:
https://dl.dropboxusercontent.com/u/2822886/one_empty_read.tar
If you drop the empty read it works fine so I think it is due to the read being empty.
Any shot at a fix?
The text was updated successfully, but these errors were encountered: