So it turns out this is a re-hash of #865012. See upstream issue reported by Sascha: https://github.com/samtools/htslib/issues/565 Also proposed patch (which was not accepted by upstream): https://github.com/samtools/htslib/pull/571 FWIW, the proposed patch "works for me" on amd64 and i386.