Skip to content

Error processing BAM file generated by bwa-mem2 #259

Description

@Hoeze

Hi, we just got a segmentation fault when processing a BAM file generated by bwa-mem2:

# mosdepth --version
mosdepth 0.3.10
# mosdepth --threads 1 --by index0_germline1.converted_bed.bed --fasta GRCh38.fasta.gz index0_germline1 index0_germline1.md.bam                                               
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault (core dumped)

I tried updating to the latest version, and that indeed solves the SegFault. However, I still get an error message:

# mosdepth --version
mosdepth 0.3.12
# mosdepth --threads 1 --by index0_germline1.converted_bed.bed --fasta GRCh38.fasta.gz index0_germline1 index0_germline1.md.bam
fatal.nim(53)            sysFatal
Error: unhandled exception: value out of range: -149675 notin 0 .. 9223372036854775807 [RangeDefect]

What does that error mean? How do I solve that?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions