 +
 +    /* submit a line split request */
 +    if (b->block_len) {
-+      if (block_seqid == UINT32_MAX) {
++      const uint32_t block_seqid_m = my_block_seqid(__block_seqid, myid);
++      if (block_seqid_m > UINT32_MAX) {
 +        fprintf(stderr, "(E) the block count exceeded the limit %d\n", UINT32_MAX);
 +        exit(-1);
 +      }
-+      b->block_seqid = block_seqid++;
++      b->block_seqid = block_seqid_m;
++      __block_seqid++;
 +//fprintf(stderr, "R%d: blkrd_t %p len %d start %p ..%.*s\n", myid, b, b->block_len, b->block, 32, b->block+b->block_len-32);
 +      mt_linesplit_enqueue(mt->linesplit, b, myid); 
 +

 .PHONY: lib mostlyclean tags test testclean
+
+-include $(DEPS)
diff -uprN -x '*_Jul11' -x 'ibm_*' -x 'Numer*' -x a.out -x '#*#' -x version.h -x q -x '*~' -x '*.c.*' -x '*.a' -x .git -x .svn -x '*.MIT' 00_svn_r2/samtools-2015-08-19/samtools/sam.c ../files/samtools/sam.c
--- 00_svn_r2/samtools-2015-08-19/samtools/sam.c	2015-08-19 17:55:53.807903000 +0900
+++ ../files/samtools/sam.c	2015-10-13 18:57:25.755999568 +0900

+    qname_hash_bucket = md_malloc(sizeof(*qname_hash_bucket)*QNAME_HASH_SIZE, mem_bamGetQnameId1, 1);
+}
+PROFILE_MEM_INIT();
+fprintf(stderr, "(I) sam-to-bam $Rev: 85 $\n");
+#if !defined(DEBUG_POS)
+fprintf(stderr, "(I) **** built with no DEBUG_POS feature\n");
+#endif
