# Segmentation fault. core dumped

**URL:** <https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605>\
**Category:** Uncategorized\
**Created:** [February 18, 2025, 5:43pm UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605 "2025-02-18T17:43:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iacobellis88](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@Iacobellis88](https://calculix.discourse.group/u/Iacobellis88)\
**Post date:** [February 18, 2025, 5:43pm UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605/1 "2025-02-18T17:43:33Z")

</div>

Hello all,  
I run a big model 1gb with some contacts sliding. The simulation crashed with this error:  
Segmentation fault (core dumped) /var/sw/calculix/2.22/bin/ccx\_2.22\_MT $@  
This error looks an error due to Calculix itself (model that put in crisis the ccx)  
Have you ever seen this error?

---

<div class="post-metadata">

**Author:** ![rsmith](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/rsmith/32/1684_2.png) [@rsmith](https://calculix.discourse.group/u/rsmith)\
**Post date:** [February 18, 2025, 9:50pm UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605/2 "2025-02-18T21:50:22Z")

</div>

I’ve seen `ccx` run out of memory when using SPOOLES.  
Most of the segmentation faults I’ve seen were when calculix was built using misconfigured libraries, for example OpenBLAS built without locking.

From the manual:

> With 32GB of RAM you can solve up to 1,000,000 equations.

and:

> Starting with version 2.8 the environment variable CCX\_LOG\_ALLOC has been introduced. If set to 1 (default is zero) one gets detailed information on all allocated, reallocated and deallocated fields during the executation of CalculiX. This may be particularly important during debugging of segmentation faults.

---

<div class="post-metadata">

**Author:** ![Iacobellis88](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@Iacobellis88](https://calculix.discourse.group/u/Iacobellis88)\
**Post date:** [February 19, 2025, 4:46pm UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605/3 "2025-02-19T16:46:41Z")

</div>

I am using pardiso on linux. Ram availsble 500 gb at 48 cpu

I see a lot of strange things for 2 models.  
1 model) very big model with 20 contacts sliding. It works until the elements of slave/ master are c3d10 vs C3d4. If I use c3d10 for boths surface iI got that error  
2 model ) I dont have a big model but 40 contact ,20 sliding 20 tie. The sliding contacts works but if I activate \*tie contact I got the error above.  
Very very strange  
What do you advice?  
Thus error in windows os is egual error u calloc memory I think

---

<div class="post-metadata">

**Author:** ![rsmith](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/rsmith/32/1684_2.png) [@rsmith](https://calculix.discourse.group/u/rsmith)\
**Post date:** [February 19, 2025, 7:30pm UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605/4 "2025-02-19T19:30:51Z")

</div>

UNIX-like systems like Linux can limit the amount of memory a process is allowed to use.

Check the output of `ulimit -a`.

---

<div class="post-metadata">

**Author:** ![Iacobellis88](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@Iacobellis88](https://calculix.discourse.group/u/Iacobellis88)\
**Post date:** [February 20, 2025, 9:25am UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605/5 "2025-02-20T09:25:17Z")

</div>

Where can I check it? Do you have other options to overcome this limit?

---

<div class="post-metadata">

**Author:** ![rsmith](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/rsmith/32/1684_2.png) [@rsmith](https://calculix.discourse.group/u/rsmith)\
**Post date:** [February 22, 2025, 10:45am UTC](https://calculix.discourse.group/t/segmentation-fault-core-dumped/2605/6 "2025-02-22T10:45:52Z")

</div>

The `ulimit` commands runs in a terminal, like most Linux commands.

It can both show and set the limits. Note that “hard” limits can only be set by the the user `root`.

See [this link](https://www.geeksforgeeks.org/ulimit-soft-limits-and-hard-limits-in-linux/) for example.
