# Pre.cluster Segmentation fault (core dumped) error

**URL:** <https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259>\
**Category:** mothur bugs\
**Created:** [December 20, 2019, 6:50pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259 "2019-12-20T18:50:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurolon](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@laurolon](https://forum.mothur.org/u/laurolon)\
**Post date:** [December 20, 2019, 6:50pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/1 "2019-12-20T18:50:48Z")

</div>

Hi, I am running the 16s workflow for MiSeq data, and on the pre.cluster command I get the error “Segmentation fault (core dumped)” exiting mothur. I have tried using only 1 processor and using all available processors and I still get the same error.

I am running: pre.cluster(fasta=16s.trim.contigs.good.unique.good.filter.unique.fasta, count=16s.trim.contigs.good.unique.good.filter.count\_table, diffs=2)

mothur version:v1.42.3

Is this a bug in the command?

Thanks!  
-Laura

---

<div class="post-metadata">

**Author:** ![leocadio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/leocadio/32/203_2.png) [@leocadio](https://forum.mothur.org/u/leocadio)\
**Post date:** [December 27, 2019, 11:37pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/2 "2019-12-27T23:37:58Z")

</div>

Hi Laura

Which OS were you using?

If you are using it in Windows or in Linux Debian or similar, I had a similar problem in a course, even with relatively small datasets. Windows does not handle memory properly and you run out of memory. You can try checking in your task manager if you are running out of RAM.

Again, this does not happen in IOs or CentOS/RedHat, since they handle memory better. For the same dataset and script I used for the course, a not-that-new IOs was able to finish, meanwhile my windows-based workstation (with better specs than the mac) run out of memory and faulted.

Cheers,

Leo

---

<div class="post-metadata">

**Author:** ![laurolon](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@laurolon](https://forum.mothur.org/u/laurolon)\
**Post date:** [December 30, 2019, 5:06pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/3 "2019-12-30T17:06:52Z")

</div>

Hi Leo, Thanks for your answer.  
I am running the command on a Linux system (Ubuntu 18.04.3). I checked running the command with top and it is not running out of memory, so I am wondering if there is a bug in the program.  
Best,  
Laura

---

<div class="post-metadata">

**Author:** ![Kendra](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/kendra/32/112_2.png) [@Kendra](https://forum.mothur.org/u/Kendra)\
**Post date:** [January 3, 2020, 8:59pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/4 "2020-01-03T20:59:11Z")

</div>

How many sequences are going into this command? how much ram are you using?

---

<div class="post-metadata">

**Author:** ![laurolon](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@laurolon](https://forum.mothur.org/u/laurolon)\
**Post date:** [January 6, 2020, 4:32am UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/5 "2020-01-06T04:32:17Z")

</div>

Hi Michell, Thanks for your answer. I am running 225 fastq files through the command. As for the ram usage, the computer has 13 Gb and the program used 0.2% of ram while running pre.cluster.  
Thanks!  
-Laura

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [January 6, 2020, 2:40pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/6 "2020-01-06T14:40:26Z")

</div>

I suspect the issue is caused by mothur needing more RAM than you have. If you think memory is not the issue, could you send your input files and log file to [mothur.bugs@gmail.com](mailto:mothur.bugs@gmail.com)?

---

<div class="post-metadata">

**Author:** ![laurolon](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@laurolon](https://forum.mothur.org/u/laurolon)\
**Post date:** [January 6, 2020, 6:27pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/7 "2020-01-06T18:27:54Z")

</div>

Thanks! I just sent you an email with the files.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/system/32/2_2.png) [@system](https://forum.mothur.org/u/system)\
**Post date:** [January 16, 2020, 6:27pm UTC](https://forum.mothur.org/t/pre-cluster-segmentation-fault-core-dumped-error/20259/8 "2020-01-16T18:27:58Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
