"SIGSEGV: Illegal storage access. (Attempt to read from nil?)" when using bed file
Hello!
I have a BED file (without headers) containing all chromossomes names from my reference and the start / end (0-based)
![image](https://user-images.githubusercontent.com/30120425/225497483-7a29d0d4-e26b-492b-81e0-257ab24f9f59.png)

When using

`mosdepth --by /data1/references/GCF_000001405.40_GRCh38.p14_genomic_clean.bed  /data1/analises/mosdepth/1995 /data1/analises/bam/1995.bam`

I get:
"SIGSEGV: Illegal storage access. (Attempt to read from nil?)" 

When using

`mosdepth --by (anynumber)  /data1/analises/mosdepth/1995 /data1/analises/bam/1995.bam`
Or
`mosdepth /data1/analises/mosdepth/1995 /data1/analises/bam/1995.bam`

It just works. 

Any ideas?