# Segfault with cube(50,50,150)

**URL:** <https://community.freefem.org/t/segfault-with-cube-50-50-150/143>\
**Category:** General Discussion\
**Created:** [October 1, 2019, 9:13am UTC](https://community.freefem.org/t/segfault-with-cube-50-50-150/143 "2019-10-01T09:13:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ffeppon](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ffeppon/32/1011_2.png) [@ffeppon](https://community.freefem.org/u/ffeppon)\
**Post date:** [October 1, 2019, 9:13am UTC](https://community.freefem.org/t/segfault-with-cube-50-50-150/143/1 "2019-10-01T09:13:02Z")

</div>

Dear FreeFEM developpers,

I noticed I have a segfault with the last version d65848cee66a (branch develop) when I try to create a rather (moderately) large mesh

```auto
load "msh3"
load "medit";

mesh3 Th = cube(50, 50, 150, [x,y,z*6.0]);

```

The following code returns

```auto
Enter: BuildCube: 6
    kind = 6 n tet Cube = 6 / n slip 6 70
Cube nv=392751 nt=2250000 nbe=70000
Out: BuildCube
Segmentation fault

```

It doesn’t seem to be a memory problem because I have runs on larger meshes.

Thanks,  
Florian

---

<div class="post-metadata">

**Author:** ![AFourmont](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/afourmont/32/56_2.png) [@AFourmont](https://community.freefem.org/u/AFourmont)\
**Post date:** [October 1, 2019, 9:39am UTC](https://community.freefem.org/t/segfault-with-cube-50-50-150/143/2 "2019-10-01T09:39:32Z")

</div>

Dear Florian,

Thanks for this report, it’s corrected on the branch develop ([https://github.com/FreeFem/FreeFem-sources/commit/3ccfc26651dc85bccf53fb828aa487d3e4f5f1a2](https://github.com/FreeFem/FreeFem-sources/commit/3ccfc26651dc85bccf53fb828aa487d3e4f5f1a2))

Axel
