sub.sample() under win10 crashed

Many thanks for your great works.
I try to use sub.sample() in windows10 system to resampling my .shared data. It’s a small data (15 samples, <1000 reads/sample). When I changed to centOS system with the same command, it works perfect. I’m new to this forum, and I don’t know how to attach the .shared file here. If you are interesting, I can sent the file to you by email.

By the way, there is a small question: I used the vsearch method in cluster() command to generate the *.list file, and then get the *.shared file. While I checked all the result files, and I can’t get the sequence of each OTU. I checked the get.oturep() command, and it required a *.dist file of the OTU sequences which I didn’t have based on the vsearch method. I even try to use the *.names and *.groups files instead of *.count_table file, and in the last *.shared file, I can only get the OTUs which named otu001, otu002 etc. Not my seq names.
I found that the phylotype() and make.shared() commands would get the same problem either. Could you please give me a little clue?
Sorry for my poor English.
Best wishes,
Pal

Hi All! I’m also having issues with this.

Preface: for the commands below where I had problems, I took the input files and ran them in mothur v. 1.38.1 and they ran fine.

Back to the segmentation fault question:
I had the same issue with a segmentation fault at sub-sample on Ubuntu (running on VMware workstation player) with mothur v. 1.39.5, with a large file:
sub.sample(shared=stability.an.shared, size=27208) [or sub.sample(shared=stability.an.shared), same issue either way]
Sampling 27208 from each group.
unique
Segmentation fault (core dumped)

Interestingly, no issue if I did summary.single with subsample:
(shared=stability.an.shared, calc=nseqs-coverage-sobs-invsimpson-chao-npshannon, subsample=27208)

but dist.shared totally flipped out on me if I incorporated a subsample, whether it was a specific number or “T”. Worked fine without a subsample.

dist.shared(shared=stability.an.shared, calc=thetayc-jclass-braycurtis, subsample=27208)
Using 1 processors.
unique
*** Error in `./mothur’: free(): invalid next size (normal): 0x000000000a1211b0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ff811f367e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7ff811f3ee0a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ff811f4298c]
./mothur[0x1159d43]
./mothur[0x11986ec]
./mothur[0x508f3e]
./mothur[0xbd8e08]
./mothur[0xbdc3f9]
./mothur[0x44f479]
./mothur[0x409b69]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ff811edf830]
./mothur[0x40f4f1]
======= Memory map: ========
00400000-01446000 r-xp 00000000 08:01 1704106 /home/jmcbeth/Documents/mothur_analyses/FCL/2017-05-05/mothur
01645000-01648000 rw-p 01045000 08:01 1704106 /home/jmcbeth/Documents/mothur_analyses/FCL/2017-05-05/mothur
01648000-0164a000 rw-p 00000000 00:00 0
02048000-0c662000 rw-p 00000000 00:00 0 [heap]
7ff80c000000-7ff80c021000 rw-p 00000000 00:00 0
7ff80c021000-7ff810000000 —p 00000000 00:00 0
7ff811238000-7ff811439000 rw-p 00000000 00:00 0
7ff81183c000-7ff81193d000 rw-p 00000000 00:00 0
7ff8119be000-7ff811c96000 r–p 00000000 08:01 656418 /usr/lib/locale/locale-archive
7ff811c96000-7ff811cbb000 r-xp 00000000 08:01 398746 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ff811cbb000-7ff811eba000 —p 00025000 08:01 398746 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ff811eba000-7ff811ebe000 r–p 00024000 08:01 398746 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ff811ebe000-7ff811ebf000 rw-p 00028000 08:01 398746 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7ff811ebf000-7ff81207e000 r-xp 00000000 08:01 393413 /lib/x86_64-linux-gnu/libc-2.23.so
7ff81207e000-7ff81227e000 —p 001bf000 08:01 393413 /lib/x86_64-linux-gnu/libc-2.23.so
7ff81227e000-7ff812282000 r–p 001bf000 08:01 393413 /lib/x86_64-linux-gnu/libc-2.23.so
7ff812282000-7ff812284000 rw-p 001c3000 08:01 393413 /lib/x86_64-linux-gnu/libc-2.23.so
7ff812284000-7ff812288000 rw-p 00000000 00:00 0
7ff812288000-7ff81229e000 r-xp 00000000 08:01 398612 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff81229e000-7ff81249d000 —p 00016000 08:01 398612 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff81249d000-7ff81249e000 rw-p 00015000 08:01 398612 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff81249e000-7ff8125a6000 r-xp 00000000 08:01 393411 /lib/x86_64-linux-gnu/libm-2.23.so
7ff8125a6000-7ff8127a5000 —p 00108000 08:01 393411 /lib/x86_64-linux-gnu/libm-2.23.so
7ff8127a5000-7ff8127a6000 r–p 00107000 08:01 393411 /lib/x86_64-linux-gnu/libm-2.23.so
7ff8127a6000-7ff8127a7000 rw-p 00108000 08:01 393411 /lib/x86_64-linux-gnu/libm-2.23.so
7ff8127a7000-7ff812919000 r-xp 00000000 08:01 655979 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7ff812919000-7ff812b19000 —p 00172000 08:01 655979 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7ff812b19000-7ff812b23000 r–p 00172000 08:01 655979 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7ff812b23000-7ff812b25000 rw-p 0017c000 08:01 655979 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7ff812b25000-7ff812b29000 rw-p 00000000 00:00 0
7ff812b29000-7ff812b66000 r-xp 00000000 08:01 398725 /lib/x86_64-linux-gnu/libreadline.so.6.3
7ff812b66000-7ff812d66000 —p 0003d000 08:01 398725 /lib/x86_64-linux-gnu/libreadline.so.6.3
7ff812d66000-7ff812d68000 r–p 0003d000 08:01 398725 /lib/x86_64-linux-gnu/libreadline.so.6.3
7ff812d68000-7ff812d6e000 rw-p 0003f000 08:01 398725 /lib/x86_64-linux-gnu/libreadline.so.6.3
7ff812d6e000-7ff812d6f000 rw-p 00000000 00:00 0
7ff812d6f000-7ff812d95000 r-xp 00000000 08:01 393414 /lib/x86_64-linux-gnu/ld-2.23.so
7ff812db4000-7ff812eb4000 rw-p 00000000 00:00 0
7ff812f74000-7ff812f7a000 rw-p 00000000 00:00 0
7ff812f8a000-7ff812f8b000 rw-p 00000000 00:00 0
7ff812f8b000-7ff812f92000 r–s 00000000 08:01 790961 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7ff812f92000-7ff812f94000 rw-p 00000000 00:00 0
7ff812f94000-7ff812f95000 r–p 00025000 08:01 393414 /lib/x86_64-linux-gnu/ld-2.23.so
7ff812f95000-7ff812f96000 rw-p 00026000 08:01 393414 /lib/x86_64-linux-gnu/ld-2.23.so
7ff812f96000-7ff812f97000 rw-p 00000000 00:00 0
7ffc87e0d000-7ffc87e2e000 rw-p 00000000 00:00 0 [stack]
7ffc87feb000-7ffc87fed000 r–p 00000000 00:00 0 [vvar]
7ffc87fed000-7ffc87fef000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)


dist.shared(shared=stability.an.shared, calc=thetayc-jclass-braycurtis, subsample=T) Using 1 processors. unique Segmentation fault (core dumped)

-Joyce