bcftools merge sample2.vcf.gz sample3.vcf.gz sample4.vcf.gz free(): invalid next size (fast) Aborted The same happens when excluding sample2 or sample4, so whenever we have the combination of different alternative alleles. Merging only those with the same alternative allele works: ...