# Munmap\_chunk error

**URL:** <https://community.freefem.org/t/munmap-chunk-error/151>\
**Category:** General Discussion\
**Created:** [October 11, 2019, 9:28am UTC](https://community.freefem.org/t/munmap-chunk-error/151 "2019-10-11T09:28:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![e-aranda](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/e-aranda/32/59_2.png) [@e-aranda](https://community.freefem.org/u/e-aranda)\
**Post date:** [October 11, 2019, 9:28am UTC](https://community.freefem.org/t/munmap-chunk-error/151/1 "2019-10-11T09:28:00Z")

</div>

Hello,

I have installed FreeFem 4.4 from deb package, and it seems it is working fine, but once a script is finished I always get this error:

```
munmap_chunk(): invalid pointer
Aborted core dumped

```

Any hints?

Thanks,  
Ernesto

---

<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 11, 2019, 11:20am UTC](https://community.freefem.org/t/munmap-chunk-error/151/2 "2019-10-11T11:20:22Z")

</div>

Dear user,  
Could you give more informations about this error? typically your script to reproduce this bug

Axel

---

<div class="post-metadata">

**Author:** ![e-aranda](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/e-aranda/32/59_2.png) [@e-aranda](https://community.freefem.org/u/e-aranda)\
**Post date:** [October 14, 2019, 7:59am UTC](https://community.freefem.org/t/munmap-chunk-error/151/3 "2019-10-14T07:59:09Z")

</div>

I have been trying to locate the problem, and it has to be with reading meshes.

I think it has to be with a warning message I get when a mesh is read:  
"Warning manifold obj "

Every time I have a mesh with this warning I get the error.

This is an example of such mesh

> **[Uploadfiles.io - viga.mesh](https://uploadfiles.io/tyy08ubi)**
>
> Upload files, for free, securely, anonymously, without limits. @UploadFilesFree

and a simple script to reproduce

//  
mesh3 Th = readmesh3(“viga.mesh”);  
//

---

<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 14, 2019, 3:08pm UTC](https://community.freefem.org/t/munmap-chunk-error/151/4 "2019-10-14T15:08:41Z")

</div>

Dear Ernesta,

Thank for this report, this is a bug with the debian package.  
You can dowload the fixed release [https://github.com/FreeFem/FreeFem-sources/releases/download/v4.4/freefem\_4.4-1\_amd64.deb](https://github.com/FreeFem/FreeFem-sources/releases/download/v4.4/freefem_4.4-1_amd64.deb).

Axel

---

<div class="post-metadata">

**Author:** ![e-aranda](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/e-aranda/32/59_2.png) [@e-aranda](https://community.freefem.org/u/e-aranda)\
**Post date:** [October 15, 2019, 7:30am UTC](https://community.freefem.org/t/munmap-chunk-error/151/5 "2019-10-15T07:30:51Z")

</div>

Thanks Axel. It works fine!
