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

core dumped with some samples #46

Open
plger opened this issue Dec 16, 2021 · 4 comments
Open

core dumped with some samples #46

plger opened this issue Dec 16, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@plger
Copy link

plger commented Dec 16, 2021

Hi,
Thanks for the great software.
I've been running chromap (-preset atac -t 8, otherwise default params) on a lot of samples from the literature, but I'm getting 'core dumped' errors on a small fraction of them, happening right after the "Loaded index successfully" message (hence seems different from #37 ).
One such example is the run SRR4269915 from the SRA (the read length is not uniform across reads in this sample).

When I use the version installed from conda (0.1.3-r256), the error I get is:

25736 Aborted                 (core dumped)
free(): invalid pointer

When I use the version from the repo (0.1.3-r257; self-built), the error I get is at the same spot but slightly different:

25569 Aborted                 (core dumped)
chromap: malloc.c:2401: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

I thought maybe there was something wrong with the fastq files, but I tried aligned with bowtie2 and everything went smoothly.
The index was created with default params and works fine for most samples.
(Running on ubuntu 18.04)

@haowenz
Copy link
Owner

haowenz commented Dec 20, 2021

Thanks for trying out and providing all the information for us to debug this! We were able to reproduce the error. We didn't perform many tests on this kind of input. Hopefully, we will locate and fix this issue soon.

@haowenz haowenz self-assigned this Jan 14, 2022
@haowenz haowenz added the bug Something isn't working label Jan 14, 2022
@haowenz
Copy link
Owner

haowenz commented Jan 21, 2022

The issue is caused by adapter trimming in this case. Since the adapters already have been trimmed for this dataset, the lengths of reads are various. This caused some problem for the fixed seed length used in adapter trimming. This should be able to resolved by using Chromap with trimming adapters turned off (you cannot use the preset parameters as it always turns on the adapter trimming step). I will also generate a fix for this issue soon.

@zhangwenda0518
Copy link

Good news, my data has successfully run in the new version,chromap-0.2.0-no-cache_x64-linux.tar.bz2

@haowenz
Copy link
Owner

haowenz commented Apr 15, 2022

Sorry for the long wait. This issue is now fixed in v0.2.2. Feel free to try the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants