Skip to content

VAMOS Segmentation Fault During Chromosomal Processing #22

@alyazeeditalal

Description

@alyazeeditalal

Issue Description

VAMOS consistently crashes with segmentation fault during read phasing, particularly when processing chromosomes 5, 9, and Y.

Environment

  • System: SLURM cluster node with 64 CPUs, 1TB RAM
  • VAMOS version: 2.1.7
  • Input: Sorted, aligned BAM files with read groups
  • Reference: GRCh38

Command Used

vamos -t 12 --read -b "samples_fastq/${sample}/aligned/${sample}.sorted.aligned.RG.bam" -r "references/vamos.effMotifs-0.3.GRCh38.tsv" -s "${sample}" -o "${output_dir}/${sample}.vamos.reads.vcf"

Error Output

Phasing reads in chr9:35513232-65963886
Storing TR sequences on chrY:26496657-57215892
Phasing reads in chrY:26496657-57215892
Clearing IO
/var/spool/slurmd/job192532/slurm_script: line 65: 4166957 Segmentation fault (core dumped)

Troubleshooting Attempted

  • Reduced threads from 32 → 12 (segfault persists)
  • Verified BAM file integrity with samtools quickcheck
  • confirmed sufficient memory (>350GB available)
  • Tested with multiple samples (all fail at similar chromosomal regions)

Pattern Observed

  • Consistently fails during chromosome Y processing
  • Also observed failures on chr5 and chr9
  • Crashes occur during "Phasing reads" or "Storing TR sequences" steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions