-
Notifications
You must be signed in to change notification settings - Fork 45
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
sporadic segfaults running lima #557
Comments
Thank you for reporting! Please upload data to reproduce and I'll fix it asap https://github.com/PacificBiosciences/pbbioconda#file-sharing |
Okay I've uploaded a BAM file with ~50k reads. I fails sometimes but not all the time–maybe 1/2 or 1/3 of runs. A larger file would fail more often. |
Are you using the primers from https://isoseq.how/umi/examples.html? I would assume, but not sure ;)
|
Yes should be the 10x 3' kit primers. And it does run successfully sometimes...I found that if I ran |
First step, I'm able to reproduce with the released version:
Good news, with our latest development version, no more hiccups. We've found the same bug internally, but haven't updated conda yet. And even better for you, I'm going to release it tomorrow if everything goes according to my plan :) |
Great, at least I know I'm not crazy 😂 |
Latest lima v2.7.1 is up, please try |
Seems like it works now, thanks! |
Great. Please let us know when you find more problems. |
lima 2.9.0 consistently segfaults for me on Rocky Linux 8.7 / 8.8, using Linux kernel 4.18.0-425.10.1.el8_7.x86_64 & 4.18.0-477.27.1.el8_8.cloud.x86_64, respectively (the latter being a Google Cloud Platform VM instance). e.g., on a new GCP VM instance running Rocky 8.8:
The error message logged at the end has a few online references that indicate specific kernel versions + build toolchain used may be contributing factors (e.g., https://stackoverflow.com/a/51661122, Homebrew/homebrew-core#136432) The segfault can be observed when using a Debian 12 container (specifically, biocontainers image: https://quay.io/repository/biocontainers/lima) on Rocky 8.7 host OS; however, the issue does not impact Rocky Linux 9.2, nor does it impact a Rocky 8.8 container running on the default kernel available in a GitHub Codespace (6.2.0-1016-azure) --- so the kernel version seems to be important. |
So you are telling me that it aborts even with empty input? This is on a x86_64 system, correct? |
lima 2.9.0 works for me although I don't know what the changes are. |
That's correct. |
Update: it must have something to do with the lima conda package. The lima executables from the tarball downloaded from the GitHub release work OK (so far); e.g., on RHEL 8.9 (where the conda-packaged version of lima also segfaults):
|
I'm getting more and more annoyed at conda changing our binaries... |
At least an RPATH has been added (by
Squinting at the conda docs & source, I'm think it may be possible to disable this by setting |
Let me test waters with a different distribution channel idea. What if I'd provide you with a docker image that contains all PacBio secondary application tools? The binaries in there would be still statically compiled, but I'd distribute the docker image via a registry. |
A container image with the latest versions (and/or an "officially-supported" container image with the SMRT Tools versions of each application) would be convenient. It might not obviate the need to fix the bioconda packages, unless they're to be deprecated. |
Done in the bioconda-recipes PR linked to above. The updated build 1 version of the lima 2.9.0 bioconda package seems to fix the immediate-segfault issue on EL8. |
Operating system
Linux, Debian 10 on a GCP VM
Package name
Conda environment
conda list output
Describe the bug
I am getting a segfault when running
lima
to trim 10x adapters for a MAS-iso-seq dataset:At first I thought this was due to a specific read, but it seems to be sporadic--on a small file (~10k reads) it will only fail 10% of the time or so, but on a larger file (50k) it consistently crashes and on the full size file (millions of reads) it always happens.
My best guess is some kind of multithreading issue and it happens with low frequency. I don't know why this particular dataset is having this issue when others did not.
Error message
It's just
Segmentation fault
To Reproduce
I should be able to share a small BAM file with you but will need some way to transfer it.
Expected behavior
I just want to trim adapters 😢
The text was updated successfully, but these errors were encountered: