# Segfault in ffi\_prep\_closure\_loc

**URL:** <https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227>\
**Category:** Elasticsearch\
**Created:** [August 12, 2014, 9:58am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227 "2014-08-12T09:58:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markus\_Burger](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Markus\_Burger](https://discuss.elastic.co/u/Markus_Burger)\
**Post date:** [August 12, 2014, 9:58am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/1 "2014-08-12T09:58:41Z")

</div>

hello guys,

i tryed to install elasticsearch 1.3.1 today on a dev machine and got a  
problem related to mlockall that i have never seen before and cant wrap my  
head around.

# A fatal error has been detected by the Java Runtime Environment:

# 

# SIGSEGV (0xb) at pc=0x00007f09617e040a, pid=3143, tid=139678674036480

# 

# JRE version: Java(TM) SE Runtime Environment (7.0\_65-b17) (build

1.7.0\_65-b17)

# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode

linux-amd64 compressed oops)

# Problematic frame:

# C [jna1731590185807699933.tmp+0x1240a] ffi\_prep\_closure\_loc+0x1a

this is on a vanilla install with just a few custom settings (mainly  
related to /tmp mounted noexec), sysctl and limit settings are ok (the full  
log is attached).

has anybody seen this before or has any clue why this might be happening ?

best regards, markus

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 12, 2014, 10:11am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/2 "2014-08-12T10:11:53Z")

</div>

Can you try with Java 7u60?

Jörg

On Tue, Aug 12, 2014 at 11:58 AM, Markus Burger [m4rkus.burger@gmail.com](mailto:m4rkus.burger@gmail.com)  
wrote:

> hello guys,
> 
> i tryed to install elasticsearch 1.3.1 today on a dev machine and got a  
> problem related to mlockall that i have never seen before and cant wrap my  
> head around.
> 
> # A fatal error has been detected by the Java Runtime Environment:
> 
> # 
> 
> # SIGSEGV (0xb) at pc=0x00007f09617e040a, pid=3143, tid=139678674036480
> 
> # 
> 
> # JRE version: Java(TM) SE Runtime Environment (7.0\_65-b17) (build
> 
> 1.7.0\_65-b17)
> 
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode
> 
> linux-amd64 compressed oops)
> 
> # Problematic frame:
> 
> # C [jna1731590185807699933.tmp+0x1240a] ffi\_prep\_closure\_loc+0x1a
> 
> this is on a vanilla install with just a few custom settings (mainly  
> related to /tmp mounted noexec), sysctl and limit settings are ok (the full  
> log is attached).
> 
> has anybody seen this before or has any clue why this might be happening ?
> 
> best regards, markus
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG50%2B\_CfH%2BnHpVLajRT63-4c1eCoi\_MWgR5u7FHf871gg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG50%2B_CfH%2BnHpVLajRT63-4c1eCoi_MWgR5u7FHf871gg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Markus\_Burger](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Markus\_Burger](https://discuss.elastic.co/u/Markus_Burger)\
**Post date:** [August 12, 2014, 11:30am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/3 "2014-08-12T11:30:45Z")

</div>

sadly exactly the same error accours 😕

# A fatal error has been detected by the Java Runtime Environment:

# 

# SIGSEGV (0xb) at pc=0x00007fae3d43440a, pid=21440, tid=140387243357952

# 

# JRE version: Java(TM) SE Runtime Environment (7.0\_60-b19) (build

1.7.0\_60-b19)

# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.60-b09 mixed mode

linux-amd64 compressed oops)

# Problematic frame:

# C [jna8009017922749255641.tmp+0x1240a] ffi\_prep\_closure\_loc+0x1a

Am Dienstag, 12. August 2014 12:12:00 UTC+2 schrieb Jörg Prante:

> Can you try with Java 7u60?
> 
> Jörg
> 
> On Tue, Aug 12, 2014 at 11:58 AM, Markus Burger \<[m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > hello guys,
> > 
> > i tryed to install elasticsearch 1.3.1 today on a dev machine and got a  
> > problem related to mlockall that i have never seen before and cant wrap my  
> > head around.
> > 
> > # A fatal error has been detected by the Java Runtime Environment:
> > 
> > # 
> > 
> > # SIGSEGV (0xb) at pc=0x00007f09617e040a, pid=3143, tid=139678674036480
> > 
> > # 
> > 
> > # JRE version: Java(TM) SE Runtime Environment (7.0\_65-b17) (build
> > 
> > 1.7.0\_65-b17)
> > 
> > # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode
> > 
> > linux-amd64 compressed oops)
> > 
> > # Problematic frame:
> > 
> > # C [jna1731590185807699933.tmp+0x1240a] ffi\_prep\_closure\_loc+0x1a
> > 
> > this is on a vanilla install with just a few custom settings (mainly  
> > related to /tmp mounted noexec), sysctl and limit settings are ok (the full  
> > log is attached).
> > 
> > has anybody seen this before or has any clue why this might be happening ?
> > 
> > best regards, markus
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5f339f21-df3e-406c-9947-68443df5d307%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f339f21-df3e-406c-9947-68443df5d307%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 12, 2014, 11:57am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/4 "2014-08-12T11:57:48Z")

</div>

OK. Can you check if your mem lock setting for the S user allows to  
reserve locked memory?

ulimit -l

This is by default on RHEL 64kb which should be changed to unlimited.

Jörg

On Tue, Aug 12, 2014 at 1:30 PM, Markus Burger [m4rkus.burger@gmail.com](mailto:m4rkus.burger@gmail.com)  
wrote:

> sadly exactly the same error accours 😕
> 
> # A fatal error has been detected by the Java Runtime Environment:
> 
> # 
> 
> # SIGSEGV (0xb) at pc=0x00007fae3d43440a, pid=21440, tid=140387243357952
> 
> # 
> 
> # JRE version: Java(TM) SE Runtime Environment (7.0\_60-b19) (build
> 
> 1.7.0\_60-b19)
> 
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.60-b09 mixed mode
> 
> linux-amd64 compressed oops)
> 
> # Problematic frame:
> 
> # C [jna8009017922749255641.tmp+0x1240a] ffi\_prep\_closure\_loc+0x1a
> 
> Am Dienstag, 12. August 2014 12:12:00 UTC+2 schrieb Jörg Prante:
> 
> > Can you try with Java 7u60?
> > 
> > Jörg
> > 
> > On Tue, Aug 12, 2014 at 11:58 AM, Markus Burger [m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> > wrote:
> > 
> > > hello guys,
> > > 
> > > i tryed to install elasticsearch 1.3.1 today on a dev machine and got a  
> > > problem related to mlockall that i have never seen before and cant wrap my  
> > > head around.
> > > 
> > > # A fatal error has been detected by the Java Runtime Environment:
> > > 
> > > # 
> > > 
> > > # SIGSEGV (0xb) at pc=0x00007f09617e040a, pid=3143, tid=139678674036480
> > > 
> > > # 
> > > 
> > > # JRE version: Java(TM) SE Runtime Environment (7.0\_65-b17) (build
> > > 
> > > 1.7.0\_65-b17)
> > > 
> > > # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode
> > > 
> > > linux-amd64 compressed oops)
> > > 
> > > # Problematic frame:
> > > 
> > > # C [jna1731590185807699933.tmp+0x1240a] ffi\_prep\_closure\_loc+0x1a
> > > 
> > > this is on a vanilla install with just a few custom settings (mainly  
> > > related to /tmp mounted noexec), sysctl and limit settings are ok (the full  
> > > log is attached).
> > > 
> > > has anybody seen this before or has any clue why this might be happening  
> > > ?
> > > 
> > > best regards, markus
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > 
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3ee4f06b-e207-4b4b-9b49-f908260d852e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/5f339f21-df3e-406c-9947-68443df5d307%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f339f21-df3e-406c-9947-68443df5d307%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/5f339f21-df3e-406c-9947-68443df5d307%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5f339f21-df3e-406c-9947-68443df5d307%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEVze7Do%3DXFtso%3Dazm-1WVKNx%3D%3DkhPACEVmOsb%2BvMAp\_Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEVze7Do%3DXFtso%3Dazm-1WVKNx%3D%3DkhPACEVmOsb%2BvMAp_Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 12, 2014, 11:58am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/5 "2014-08-12T11:58:24Z")

</div>

"S User" --\> "ES user"

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE-up9o89szdPG6F%3DphZcLB3c2NpYchh%3DDqPeuHD5WxPA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE-up9o89szdPG6F%3DphZcLB3c2NpYchh%3DDqPeuHD5WxPA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Markus\_Burger](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Markus\_Burger](https://discuss.elastic.co/u/Markus_Burger)\
**Post date:** [August 12, 2014, 12:19pm UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/6 "2014-08-12T12:19:57Z")

</div>

[root@dev limits.d]# runuser -s /bin/bash elasticsearch -c 'ulimit -l'  
unlimited  
[root@dev limits.d]# sysctl vm.max\_map\_count  
vm.max\_map\_count = 262144

markus

Am Dienstag, 12. August 2014 13:58:30 UTC+2 schrieb Jörg Prante:

> "S User" --\> "ES user"

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 12, 2014, 12:51pm UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/7 "2014-08-12T12:51:32Z")

</div>

And

rpm -q libffi

gives

libffi-3.0.5-3.2.el6.x86\_64

?

Jörg

On Tue, Aug 12, 2014 at 2:19 PM, Markus Burger [m4rkus.burger@gmail.com](mailto:m4rkus.burger@gmail.com)  
wrote:

> [root@dev limits.d]# runuser -s /bin/bash elasticsearch -c 'ulimit -l'  
> unlimited  
> [root@dev limits.d]# sysctl vm.max\_map\_count  
> vm.max\_map\_count = 262144
> 
> markus
> 
> Am Dienstag, 12. August 2014 13:58:30 UTC+2 schrieb Jörg Prante:
> 
> > "S User" --\> "ES user"
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEWcVL8V%2BiAOn9am22h-B5hnQ%3D6aXswz\_YwrqSeLgX-NA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEWcVL8V%2BiAOn9am22h-B5hnQ%3D6aXswz_YwrqSeLgX-NA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Markus\_Burger](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Markus\_Burger](https://discuss.elastic.co/u/Markus_Burger)\
**Post date:** [August 12, 2014, 12:59pm UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/8 "2014-08-12T12:59:55Z")

</div>

exactly...

[root@dev ~]# rpm -q libffi  
libffi-3.0.5-3.2.el6.x86\_64

markus

Am Dienstag, 12. August 2014 14:51:45 UTC+2 schrieb Jörg Prante:

> And
> 
> rpm -q libffi
> 
> gives
> 
> libffi-3.0.5-3.2.el6.x86\_64
> 
> ?
> 
> Jörg
> 
> On Tue, Aug 12, 2014 at 2:19 PM, Markus Burger \<[m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > [root@dev limits.d]# runuser -s /bin/bash elasticsearch -c 'ulimit -l'  
> > unlimited  
> > [root@dev limits.d]# sysctl vm.max\_map\_count  
> > vm.max\_map\_count = 262144
> > 
> > markus
> > 
> > Am Dienstag, 12. August 2014 13:58:30 UTC+2 schrieb Jörg Prante:
> > 
> > > "S User" --\> "ES user"
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 12, 2014, 1:12pm UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/9 "2014-08-12T13:12:09Z")

</div>

Same configuration runs here, on bare metal. Maybe you run a VM?

Just a shot in the dark, it looks like a bug in libffi, and there are more  
recent versions like 3.0.5, so if you feel like hacking this bug, I would  
try if libffi 3.1 from [GitHub - atgreen/libffi: A portable foreign-function interface library.](https://github.com/atgreen/libffi/) gives a different  
picture.

Jörg

On Tue, Aug 12, 2014 at 2:59 PM, Markus Burger [m4rkus.burger@gmail.com](mailto:m4rkus.burger@gmail.com)  
wrote:

> exactly...
> 
> [root@dev ~]# rpm -q libffi  
> libffi-3.0.5-3.2.el6.x86\_64
> 
> markus
> 
> Am Dienstag, 12. August 2014 14:51:45 UTC+2 schrieb Jörg Prante:
> 
> > And
> > 
> > rpm -q libffi
> > 
> > gives
> > 
> > libffi-3.0.5-3.2.el6.x86\_64
> > 
> > ?
> > 
> > Jörg
> > 
> > On Tue, Aug 12, 2014 at 2:19 PM, Markus Burger [m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> > wrote:
> > 
> > > [root@dev limits.d]# runuser -s /bin/bash elasticsearch -c 'ulimit -l'  
> > > unlimited  
> > > [root@dev limits.d]# sysctl vm.max\_map\_count  
> > > vm.max\_map\_count = 262144
> > > 
> > > markus
> > > 
> > > Am Dienstag, 12. August 2014 13:58:30 UTC+2 schrieb Jörg Prante:
> > > 
> > > > "S User" --\> "ES user"
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEHzP8kKyjO9yGgydpCes0Ko7wdey6gUe5GMsGELteHLg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEHzP8kKyjO9yGgydpCes0Ko7wdey6gUe5GMsGELteHLg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Markus\_Burger](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Markus\_Burger](https://discuss.elastic.co/u/Markus_Burger)\
**Post date:** [August 12, 2014, 1:29pm UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/10 "2014-08-12T13:29:14Z")

</div>

Yeah its a Vmware VM but i have a couple of ES 1.1 sitting in another  
Cluster without Issues, are there known issues with running ES in a VM ?

Thanks Jörg! I'll update libffi the next couple of days

markus

Am Dienstag, 12. August 2014 15:12:16 UTC+2 schrieb Jörg Prante:

> Same configuration runs here, on bare metal. Maybe you run a VM?
> 
> Just a shot in the dark, it looks like a bug in libffi, and there are more  
> recent versions like 3.0.5, so if you feel like hacking this bug, I would  
> try if libffi 3.1 from [GitHub - atgreen/libffi: A portable foreign-function interface library.](https://github.com/atgreen/libffi/) gives a  
> different picture.
> 
> Jörg
> 
> On Tue, Aug 12, 2014 at 2:59 PM, Markus Burger \<[m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > exactly...
> > 
> > [root@dev ~]# rpm -q libffi  
> > libffi-3.0.5-3.2.el6.x86\_64
> > 
> > markus
> > 
> > Am Dienstag, 12. August 2014 14:51:45 UTC+2 schrieb Jörg Prante:
> > 
> > > And
> > > 
> > > rpm -q libffi
> > > 
> > > gives
> > > 
> > > libffi-3.0.5-3.2.el6.x86\_64
> > > 
> > > ?
> > > 
> > > Jörg
> > > 
> > > On Tue, Aug 12, 2014 at 2:19 PM, Markus Burger [m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> > > wrote:
> > > 
> > > > [root@dev limits.d]# runuser -s /bin/bash elasticsearch -c 'ulimit -l'  
> > > > unlimited  
> > > > [root@dev limits.d]# sysctl vm.max\_map\_count  
> > > > vm.max\_map\_count = 262144
> > > > 
> > > > markus
> > > > 
> > > > Am Dienstag, 12. August 2014 13:58:30 UTC+2 schrieb Jörg Prante:
> > > > 
> > > > > "S User" --\> "ES user"
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b6e894da-6ebe-4f30-9a7b-7daf76b4b4d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b6e894da-6ebe-4f30-9a7b-7daf76b4b4d4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 12, 2014, 1:35pm UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/11 "2014-08-12T13:35:33Z")

</div>

There are so many VMs but, together with native code paths like JNA +  
mlockall + libffi etc. the chance that something odd breaks down the road  
is always there...

With Vmware VM and mlockall, not everything can work like on bare metal.  
Memory management strongly depends on the host OS settings. The guest can  
not control the host resource management, memory pinning, swap etc. Beside  
this: bug is bug, libffi should not break with SIGSEGV, in any case.

Jörg

On Tue, Aug 12, 2014 at 3:29 PM, Markus Burger [m4rkus.burger@gmail.com](mailto:m4rkus.burger@gmail.com)  
wrote:

> Yeah its a Vmware VM but i have a couple of ES 1.1 sitting in another  
> Cluster without Issues, are there known issues with running ES in a VM ?
> 
> Thanks Jörg! I'll update libffi the next couple of days
> 
> markus
> 
> Am Dienstag, 12. August 2014 15:12:16 UTC+2 schrieb Jörg Prante:
> 
> > Same configuration runs here, on bare metal. Maybe you run a VM?
> > 
> > Just a shot in the dark, it looks like a bug in libffi, and there are  
> > more recent versions like 3.0.5, so if you feel like hacking this bug, I  
> > would try if libffi 3.1 from [GitHub - atgreen/libffi: A portable foreign-function interface library.](https://github.com/atgreen/libffi/) gives a  
> > different picture.
> > 
> > Jörg
> > 
> > On Tue, Aug 12, 2014 at 2:59 PM, Markus Burger [m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> > wrote:
> > 
> > > exactly...
> > > 
> > > [root@dev ~]# rpm -q libffi  
> > > libffi-3.0.5-3.2.el6.x86\_64
> > > 
> > > markus
> > > 
> > > Am Dienstag, 12. August 2014 14:51:45 UTC+2 schrieb Jörg Prante:
> > > 
> > > > And
> > > > 
> > > > rpm -q libffi
> > > > 
> > > > gives
> > > > 
> > > > libffi-3.0.5-3.2.el6.x86\_64
> > > > 
> > > > ?
> > > > 
> > > > Jörg
> > > > 
> > > > On Tue, Aug 12, 2014 at 2:19 PM, Markus Burger [m4rkus...@gmail.com](mailto:m4rkus...@gmail.com)  
> > > > wrote:
> > > > 
> > > > > [root@dev limits.d]# runuser -s /bin/bash elasticsearch -c 'ulimit -l'  
> > > > > unlimited  
> > > > > [root@dev limits.d]# sysctl vm.max\_map\_count  
> > > > > vm.max\_map\_count = 262144
> > > > > 
> > > > > markus
> > > > > 
> > > > > Am Dienstag, 12. August 2014 13:58:30 UTC+2 schrieb Jörg Prante:
> > > > > 
> > > > > > "S User" --\> "ES user"
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40goo  
> > > > > > [glegroups.com](http://glegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/044b2715-c566-476b-ba8f-035cb4cf0af6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8485ac49-7d23-47f2-b28f-0b475052d293%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b6e894da-6ebe-4f30-9a7b-7daf76b4b4d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b6e894da-6ebe-4f30-9a7b-7daf76b4b4d4%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/b6e894da-6ebe-4f30-9a7b-7daf76b4b4d4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b6e894da-6ebe-4f30-9a7b-7daf76b4b4d4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFz8H38HgFp-5ssBTebgey2Jxg%3DB4R533qOjrMTB6paew%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFz8H38HgFp-5ssBTebgey2Jxg%3DB4R533qOjrMTB6paew%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:09am UTC](https://discuss.elastic.co/t/segfault-in-ffi-prep-closure-loc/19227/12 "2017-07-06T01:09:13Z")

</div>


