-
Notifications
You must be signed in to change notification settings - Fork 26
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
Closing BGZI gives a 'munmap_chunk(): invalid pointer' #86
Comments
but still lots of problems with orc that need to be resolved
but still lots of problems with orc that need to be resolved
Hi Xabier, thanks for reporting. I pushed a fix for this. |
I would love to help you more on this, I spend a lot of time with this issue trying to fix it and make a PR. But I couldn't understand what does the Right now I'm overriding the |
Thanks for the test files and diagnosing the exact location of the problem! |
Using Nim 2.0.2, hts-nim 0.3.25.
(Also, depending of the source, the error is
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
).The minimal example I can do to make it fail is this:
When compiled with ARC/ORC, it runs but fails with the error menctioned in the title 'munmap_chunk(): invalid pointer'. If compiled with the flag
-mm:refc
everything goes smoothly.I think I've pinpointed the problem to hts_idx_set_meta
hts-nim/src/hts/csi.nim
Line 86 in 9efe3c6
because if you return early in with
return 0
just before the true return, the error goes away. It seems that there were problems here before (samtools/htslib#936).Contents of "sample.tsv.gz":
With a "sample.tsv.gz.csi" file besides it.
The text was updated successfully, but these errors were encountered: