# ElasticSearch 0.19.8 - JVM crash on solaris

**URL:** https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333
**Category:** Elasticsearch
**Created:** [July 5, 2012, 8:28pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333 "2012-07-05T20:28:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![f\_shantanu](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@f\_shantanu](https://discuss.elastic.co/u/f_shantanu)
#### Post date: [July 5, 2012, 8:28pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/1 "2012-07-05T20:28:52Z")

</div>

Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am  
using mapper-attachmnents 18.7 and I have not had this problem with the  
previous version I was using 0.18.7 and mapper-attachments 18.6.  
Here is the elastic search log:

2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain]:  
Search Daemon initializing  
[2012-07-05 15:53:55,398] [DEBUG]  
[ion.util.activemq.CachingFailoverConnectionFactory] [WrapperSimpleAppMain  
]: Creating connection factory to broker  
[tcp://localhost:8025?connectionTimeout=3000&soTimeout=60000].  
[2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
] [WrapperSimpleAppMain]: [Scalphunter]  
{0.19.8}[26548]: initializing ...  
[2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
] [WrapperSimpleAppMain]: [Scalphunter] loaded  
[mapper-attachments], sites []

the jvm crashes after this point. Here is excerpt from the crash report. I  
am also attaching the complete crash report  
V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+-1078249144  
j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+0  
j  
org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.copyUpTo32([BI[BII)V+78  
j  
org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk([BI[BII)V+26  
j  
org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk(Ljava/io/InputStream;[B[B)I+104  
j  
org.elasticsearch.common.compress.lzf.LZFCompressedStreamInput.uncompress(Ljava/io/InputStream;[B)I+10  
j org.elasticsearch.common.compress.CompressedStreamInput.readyBuffer()Z+32  
j org.elasticsearch.common.compress.CompressedStreamInput.read()I+1  
j  
org.elasticsearch.common.xcontent.XContentFactory.xContentType(Ljava/io/InputStream;)Lorg/elasticsearch/common/xcontent/XContentType;+1  
j  
org.elasticsearch.common.xcontent.XContentHelper.createParser([BII)Lorg/elasticsearch/common/xcontent/XContentParser;+32  
j  
org.elasticsearch.gateway.local.state.meta.LocalGatewayMetaState.pre019Upgrade()V+238

Anyone seen this before?

Thank you.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [July 5, 2012, 10:18pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/2 "2012-07-05T22:18:23Z")

</div>

I wonder if its a problem with LZF and its usage of unsafe on solaris (it  
smells like it). In 0.19.8, there isn't an option to configure LZF to not  
use unsafe, but I just added suport for it in 0.19 branch. The settings is  
compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
link to a snapshot build of 0.19.9, just tell me which one you need  
(zip/tag.gz/deb).

On Thu, Jul 5, 2012 at 10:28 PM, Shantanu [f.shantanu@gmail.com](mailto:f.shantanu@gmail.com) wrote:

> Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am  
> using mapper-attachmnents 18.7 and I have not had this problem with the  
> previous version I was using 0.18.7 and mapper-attachments 18.6.  
> Here is the Elasticsearch log:
> 
> 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain]:  
> Search Daemon initializing  
> [2012-07-05 15:53:55,398] [DEBUG]  
> [ion.util.activemq.CachingFailoverConnectionFactory] [WrapperSimpleAppMain  
> ]: Creating connection factory to broker  
> [tcp://localhost:8025?connectionTimeout=3000&soTimeout=60000].  
> [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> ] [WrapperSimpleAppMain]: [Scalphunter]  
> {0.19.8}[26548]: initializing ...  
> [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> ] [WrapperSimpleAppMain]: [Scalphunter] loaded  
> [mapper-attachments], sites
> 
> the jvm crashes after this point. Here is excerpt from the crash report. I  
> am also attaching the complete crash report  
> V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+-1078249144  
> j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+0  
> j  
> org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.copyUpTo32([BI[BII)V+78  
> j  
> org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk([BI[BII)V+26  
> j  
> org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk(Ljava/io/InputStream;[B[B)I+104  
> j  
> org.elasticsearch.common.compress.lzf.LZFCompressedStreamInput.uncompress(Ljava/io/InputStream;[B)I+10  
> j  
> org.elasticsearch.common.compress.CompressedStreamInput.readyBuffer()Z+32  
> j org.elasticsearch.common.compress.CompressedStreamInput.read()I+1  
> j  
> org.elasticsearch.common.xcontent.XContentFactory.xContentType(Ljava/io/InputStream;)Lorg/elasticsearch/common/xcontent/XContentType;+1  
> j  
> org.elasticsearch.common.xcontent.XContentHelper.createParser([BII)Lorg/elasticsearch/common/xcontent/XContentParser;+32  
> j  
> org.elasticsearch.gateway.local.state.meta.LocalGatewayMetaState.pre019Upgrade()V+238
> 
> Anyone seen this before?
> 
> Thank you.

---

<div class="post-metadata">

### Author: ![f\_shantanu](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@f\_shantanu](https://discuss.elastic.co/u/f_shantanu)
#### Post date: [July 5, 2012, 11:00pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/3 "2012-07-05T23:00:25Z")

</div>

Thank you Shay. zip would work for me.

On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:

> I wonder if its a problem with LZF and its usage of unsafe on solaris (it  
> smells like it). In 0.19.8, there isn't an option to configure LZF to not  
> use unsafe, but I just added suport for it in 0.19 branch. The settings is  
> compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> link to a snapshot build of 0.19.9, just tell me which one you need  
> (zip/tag.gz/deb).
> 
> On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> 
> > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am  
> > using mapper-attachmnents 18.7 and I have not had this problem with the  
> > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > Here is the Elasticsearch log:
> > 
> > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain]:  
> > Search Daemon initializing  
> > [2012-07-05 15:53:55,398] [DEBUG]  
> > [ion.util.activemq.CachingFailoverConnectionFactory] [WrapperSimpleAppMain  
> > ]: Creating connection factory to broker  
> > [tcp://localhost:8025?connectionTimeout=3000&soTimeout=60000].  
> > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > {0.19.8}[26548]: initializing ...  
> > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > ] [WrapperSimpleAppMain]: [Scalphunter] loaded  
> > [mapper-attachments], sites
> > 
> > the jvm crashes after this point. Here is excerpt from the crash report.  
> > I am also attaching the complete crash report  
> > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+-1078249144  
> > j sun.misc.Unsafe.getLong(Ljava/lang/Object;J)J+0  
> > j  
> > org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.copyUpTo32([BI[BII)V+78  
> > j  
> > org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk([BI[BII)V+26  
> > j  
> > org.elasticsearch.common.compress.lzf.impl.UnsafeChunkDecoder.decodeChunk(Ljava/io/InputStream;[B[B)I+104  
> > j  
> > org.elasticsearch.common.compress.lzf.LZFCompressedStreamInput.uncompress(Ljava/io/InputStream;[B)I+10  
> > j  
> > org.elasticsearch.common.compress.CompressedStreamInput.readyBuffer()Z+32  
> > j org.elasticsearch.common.compress.CompressedStreamInput.read()I+1  
> > j  
> > org.elasticsearch.common.xcontent.XContentFactory.xContentType(Ljava/io/InputStream;)Lorg/elasticsearch/common/xcontent/XContentType;+1  
> > j  
> > org.elasticsearch.common.xcontent.XContentHelper.createParser([BII)Lorg/elasticsearch/common/xcontent/XContentParser;+32  
> > j  
> > org.elasticsearch.gateway.local.state.meta.LocalGatewayMetaState.pre019Upgrade()V+238
> > 
> > Anyone seen this before?
> > 
> > Thank you.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [July 6, 2012, 8:06am UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/4 "2012-07-06T08:06:47Z")

</div>

One more thing, can you zip the [data location]/nodes/0/\_state directory  
and mail it to me? I'd like to see if I can recreate the failure to  
decompress problem.

Here is the zip file:  
[https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip).

On Fri, Jul 6, 2012 at 1:00 AM, Shantanu [f.shantanu@gmail.com](mailto:f.shantanu@gmail.com) wrote:

> Thank you Shay. zip would work for me.
> 
> On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> 
> > I wonder if its a problem with LZF and its usage of unsafe on solaris (it  
> > smells like it). In 0.19.8, there isn't an option to configure LZF to not  
> > use unsafe, but I just added suport for it in 0.19 branch. The settings is  
> > compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> > link to a snapshot build of 0.19.9, just tell me which one you need  
> > (zip/tag.gz/deb).
> > 
> > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > 
> > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am
> > 
> > > using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > Here is the Elasticsearch log:
> > > 
> > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain]:  
> > > Search Daemon initializing  
> > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq.\*\*  
> > > CachingFailoverConnectionFacto**ry] [WrapperSimpleAppMain  
> > > ]: Creating connection factory to broker [tcp://localhost:8025?**  
> > > connectionTimeout=3000&\*\*soTimeout=60000].  
> > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > {0.19.8}[26548]: initializing ...  
> > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > ] [WrapperSimpleAppMain]: [Scalphunter] loaded  
> > > [mapper-attachments], sites
> > > 
> > > the jvm crashes after this point. Here is excerpt from the crash report.  
> > > I am also attaching the complete crash report  
> > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > j sun.misc.Unsafe.getLong(\*\*Ljava/lang/Object;J)J+-\*\*1078249144  
> > > j sun.misc.Unsafe.getLong(**Ljava/lang/Object;J)J+0  
> > > j org.elasticsearch.common.compress.lzf.impl.  
> > > UnsafeChunkDecoder.copyUpTo32(**[BI[BII)V+78  
> > > j org.elasticsearch.common.\*\*compress.lzf.impl. **UnsafeChunkDecoder.**  
> > > decodeChunk([BI[BII)V+26  
> > > j org.elasticsearch.common.\*\*compress.lzf.impl. **UnsafeChunkDecoder.**  
> > > decodeChunk(Ljava/io/\*\*InputStream;[B[B)I+104  
> > > j org.elasticsearch.common.\*\*compress.lzf. **LZFCompressedStreamInput.**  
> > > uncompress(Ljava/io/\*\*InputStream;[B)I+10  
> > > j org.elasticsearch.common.\*\*compress. **CompressedStreamInput.**  
> > > readyBuffer()Z+32  
> > > j org.elasticsearch.common.\*\*compress.\*_CompressedStreamInput.read()I+_  
> > > \*1  
> > > j org.elasticsearch.common. **xcontent.XContentFactory.**  
> > > xContentType(Ljava/io/**InputStream;)Lorg/**  
> > > elasticsearch/common/xcontent/\*\*XContentType;+1  
> > > j org.elasticsearch.common. **xcontent.XContentHelper.**  
> > > createParser([BII)Lorg/ **elasticsearch/common/xcontent/**  
> > > XContentParser;+32  
> > > j org.elasticsearch.gateway.\*\*local.state.meta.\*\*LocalGatewayMetaState.  
> > > \*\*pre019Upgrade()V+238
> > > 
> > > Anyone seen this before?
> > > 
> > > Thank you.

---

<div class="post-metadata">

### Author: ![f\_shantanu](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@f\_shantanu](https://discuss.elastic.co/u/f_shantanu)
#### Post date: [July 6, 2012, 7:28pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/5 "2012-07-06T19:28:58Z")

</div>

I have emailed you the state files. I will try running the 19.9-snapshot  
with the property set to safe and will let you know how it goes.  
Thank you for all the help.

On Friday, July 6, 2012 4:06:47 AM UTC-4, kimchy wrote:

> One more thing, can you zip the [data location]/nodes/0/\_state directory  
> and mail it to me? I'd like to see if I can recreate the failure to  
> decompress problem.
> 
> Here is the zip file:  
> [https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip).
> 
> On Fri, Jul 6, 2012 at 1:00 AM, Shantanu wrote:
> 
> > Thank you Shay. zip would work for me.
> > 
> > On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> > 
> > > I wonder if its a problem with LZF and its usage of unsafe on solaris  
> > > (it smells like it). In 0.19.8, there isn't an option to configure LZF to  
> > > not use unsafe, but I just added suport for it in 0.19 branch. The settings  
> > > is compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> > > link to a snapshot build of 0.19.9, just tell me which one you need  
> > > (zip/tag.gz/deb).
> > > 
> > > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > > 
> > > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am
> > > 
> > > > using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > > Here is the Elasticsearch log:
> > > > 
> > > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain]:  
> > > > Search Daemon initializing  
> > > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq.\*\*  
> > > > CachingFailoverConnectionFacto**ry] [WrapperSimpleAppMain  
> > > > ]: Creating connection factory to broker [tcp://localhost:8025?**  
> > > > connectionTimeout=3000&\*\*soTimeout=60000].  
> > > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > {0.19.8}[26548]: initializing ...  
> > > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > > ] [WrapperSimpleAppMain]: [Scalphunter] loaded  
> > > > [mapper-attachments], sites
> > > > 
> > > > the jvm crashes after this point. Here is excerpt from the crash  
> > > > report. I am also attaching the complete crash report  
> > > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > > j sun.misc.Unsafe.getLong(\*\*Ljava/lang/Object;J)J+-\*\*1078249144  
> > > > j sun.misc.Unsafe.getLong(**Ljava/lang/Object;J)J+0  
> > > > j org.elasticsearch.common.compress.lzf.impl.  
> > > > UnsafeChunkDecoder.copyUpTo32(**[BI[BII)V+78  
> > > > j org.elasticsearch.common.\*\*compress.lzf.impl. **UnsafeChunkDecoder.**  
> > > > decodeChunk([BI[BII)V+26  
> > > > j org.elasticsearch.common.\*\*compress.lzf.impl. **UnsafeChunkDecoder.**  
> > > > decodeChunk(Ljava/io/\*\*InputStream;[B[B)I+104  
> > > > j org.elasticsearch.common.\*\*compress.lzf.\*_LZFCompressedStreamInput._  
> > > > \*uncompress(Ljava/io/\*\*InputStream;[B)I+10  
> > > > j org.elasticsearch.common.\*\*compress. **CompressedStreamInput.**  
> > > > readyBuffer()Z+32  
> > > > j org.elasticsearch.common.\*\*compress.\*\*CompressedStreamInput.read()I+  
> > > > \*\*1  
> > > > j org.elasticsearch.common. **xcontent.XContentFactory.**  
> > > > xContentType(Ljava/io/**InputStream;)Lorg/**  
> > > > elasticsearch/common/xcontent/\*\*XContentType;+1  
> > > > j org.elasticsearch.common. **xcontent.XContentHelper.**  
> > > > createParser([BII)Lorg/ **elasticsearch/common/xcontent/**  
> > > > XContentParser;+32  
> > > > j org.elasticsearch.gateway. **local.state.meta.**  
> > > > LocalGatewayMetaState.\*\*pre019Upgrade()V+238
> > > > 
> > > > Anyone seen this before?
> > > > 
> > > > Thank you.

---

<div class="post-metadata">

### Author: ![f\_shantanu](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@f\_shantanu](https://discuss.elastic.co/u/f_shantanu)
#### Post date: [July 6, 2012, 7:43pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/6 "2012-07-06T19:43:30Z")

</div>

I tried running the snapshot version of 19.9 on the solaris machine. The  
node did come up and the JVM did not crash, but I am still getting the  
following exception. It may be because snappy does not have binaries for  
solaris? Is this a fatal error, or will Elasticsearch continue to function  
normally inspite of this? I have not set any properties related to  
compression (other than setting "compress.lzf.decoder" to safe), so I  
suppose compression is turned off by default?

Here are the log:

[2012-07-06 15:30:12,075][INFO][node] [Purple Girl]  
{0.19.9-SNAPSHOT}[4865]: initializing ...  
[2012-07-06 15:30:12,107][INFO][plugins] [Purple Girl]  
loaded , sites   
java.lang.reflect.InvocationTargetException  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
at java.lang.reflect.Method.invoke(Method.java:597)  
at  
org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317)  
at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219)  
at org.xerial.snappy.Snappy.(Snappy.java:44)  
at  
org.elasticsearch.common.compress.snappy.xerial.XerialSnappy.(XerialSnappy.java:35)  
at  
org.elasticsearch.common.compress.CompressorFactory.(CompressorFactory.java:54)  
at  
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:121)  
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:67)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:200)  
at  
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in  
java.library.path  
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)  
at java.lang.Runtime.loadLibrary0(Runtime.java:823)  
at java.lang.System.loadLibrary(System.java:1028)  
at  
org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52)  
... 14 more  
[2012-07-06 15:30:20,375][INFO][node] [Purple Girl]  
{0.19.9-SNAPSHOT}[4865]: initialized  
[2012-07-06 15:30:20,376][INFO][node] [Purple Girl]  
{0.19.9-SNAPSHOT}[4865]: starting ...  
[2012-07-06 15:30:20,878][INFO][transport] [Purple Girl]  
bound\_address {inet[/0.0.0.0:9303]}, publish\_address  
{inet[/192.168.166.221:9303]}  
[2012-07-06 15:30:24,837][INFO][cluster.service] [Purple Girl]  
detected\_master  
[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]], added  
{[Fagin][BcdSVawLTzuMRfms9einmg][inet[/192.168.166.221:9300]],[Whizzer][BX1sImVaSUSUMtGzNMUYLA][inet[/192.168.166.221:9302]],[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]],},  
reason: zen-disco-receive(from master  
[[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]]])  
[2012-07-06 15:30:25,470][INFO][discovery] [Purple Girl]  
elasticsearch/2Aml04qZR8OoFP4p8FBKiA  
[2012-07-06 15:30:25,561][INFO][http] [Purple Girl]  
bound\_address {inet[/0.0.0.0:9203]}, publish\_address  
{inet[/192.168.166.221:9203]}  
[2012-07-06 15:30:25,562][INFO][node] [Purple Girl]  
{0.19.9-SNAPSHOT}[4865]: started

On Friday, July 6, 2012 3:28:58 PM UTC-4, Shantanu wrote:

> I have emailed you the state files. I will try running the 19.9-snapshot  
> with the property set to safe and will let you know how it goes.  
> Thank you for all the help.
> 
> On Friday, July 6, 2012 4:06:47 AM UTC-4, kimchy wrote:
> 
> > One more thing, can you zip the [data location]/nodes/0/\_state directory  
> > and mail it to me? I'd like to see if I can recreate the failure to  
> > decompress problem.
> > 
> > Here is the zip file:  
> > [https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip).
> > 
> > On Fri, Jul 6, 2012 at 1:00 AM, Shantanu wrote:
> > 
> > > Thank you Shay. zip would work for me.
> > > 
> > > On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> > > 
> > > > I wonder if its a problem with LZF and its usage of unsafe on solaris  
> > > > (it smells like it). In 0.19.8, there isn't an option to configure LZF to  
> > > > not use unsafe, but I just added suport for it in 0.19 branch. The settings  
> > > > is compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> > > > link to a snapshot build of 0.19.9, just tell me which one you need  
> > > > (zip/tag.gz/deb).
> > > > 
> > > > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > > > 
> > > > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am
> > > > 
> > > > > using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > > > Here is the Elasticsearch log:
> > > > > 
> > > > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain]:  
> > > > > Search Daemon initializing  
> > > > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq.\*\*  
> > > > > CachingFailoverConnectionFacto**ry] [WrapperSimpleAppMain  
> > > > > ]: Creating connection factory to broker [tcp://localhost:8025?**  
> > > > > connectionTimeout=3000&\*\*soTimeout=60000].  
> > > > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > {0.19.8}[26548]: initializing ...  
> > > > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > > > ] [WrapperSimpleAppMain]: [Scalphunter] loaded  
> > > > > [mapper-attachments], sites
> > > > > 
> > > > > the jvm crashes after this point. Here is excerpt from the crash  
> > > > > report. I am also attaching the complete crash report  
> > > > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > > > j sun.misc.Unsafe.getLong(\*\*Ljava/lang/Object;J)J+-\*\*1078249144  
> > > > > j sun.misc.Unsafe.getLong(**Ljava/lang/Object;J)J+0  
> > > > > j org.elasticsearch.common.compress.lzf.impl.  
> > > > > UnsafeChunkDecoder.copyUpTo32(**[BI[BII)V+78  
> > > > > j org.elasticsearch.common.\*\*compress.lzf.impl.\*_UnsafeChunkDecoder._  
> > > > > \*decodeChunk([BI[BII)V+26  
> > > > > j org.elasticsearch.common.\*\*compress.lzf.impl.\*_UnsafeChunkDecoder._  
> > > > > \*decodeChunk(Ljava/io/\*\*InputStream;[B[B)I+104  
> > > > > j org.elasticsearch.common.\*\*compress.lzf.\*\*LZFCompressedStreamInput.  
> > > > > \*\*uncompress(Ljava/io/\*\*InputStream;[B)I+10  
> > > > > j org.elasticsearch.common.\*\*compress. **CompressedStreamInput.**  
> > > > > readyBuffer()Z+32  
> > > > > j org.elasticsearch.common. **compress.**  
> > > > > CompressedStreamInput.read()I+\*\*1  
> > > > > j org.elasticsearch.common. **xcontent.XContentFactory.**  
> > > > > xContentType(Ljava/io/**InputStream;)Lorg/**  
> > > > > elasticsearch/common/xcontent/\*\*XContentType;+1  
> > > > > j org.elasticsearch.common. **xcontent.XContentHelper.**  
> > > > > createParser([BII)Lorg/ **elasticsearch/common/xcontent/**  
> > > > > XContentParser;+32  
> > > > > j org.elasticsearch.gateway. **local.state.meta.**  
> > > > > LocalGatewayMetaState.\*\*pre019Upgrade()V+238
> > > > > 
> > > > > Anyone seen this before?
> > > > > 
> > > > > Thank you.

---

<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: [July 8, 2012, 11:50am UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/7 "2012-07-08T11:50:01Z")

</div>

This is an issue in Snappy

> <https://github.com/xerial/snappy-java/issues/46>
>
> The temporary file being created for the native library loading is not being del…eted at shutdown.
> This might be because the deleteOnExit() method is being called on a File which does not yet exist. 
> In SnappyLoader.extractLibraryFile, The random name is generated, and a File in the temp directory is instantiated, but not created.
> 
> \`\`\`
> String extractedLibFileName = String.format("snappy-%s-%s-%s", getVersion(), uuid, libraryFileName);
> File extractedLibFile = new File(targetFolder, extractedLibFileName);
> // Delete extracted lib file on exit.
> extractedLibFile.deleteOnExit();
> 
> try {
> // Extract a native library file into the target directory
> InputStream reader = SnappyLoader.class.getResourceAsStream(nativeLibraryFilePath);
> FileOutputStream writer = new FileOutputStream(extractedLibFile);
> \`\`\`
> 
> The file itself does not get created until the FileOutputStream is created.

The UnsatisfiedLinkError is not caught, but it should.

Jörg

On Friday, July 6, 2012 9:43:30 PM UTC+2, Shantanu wrote:

> I tried running the snapshot version of 19.9 on the solaris machine. The  
> node did come up and the JVM did not crash, but I am still getting the  
> following exception. It may be because snappy does not have binaries for  
> solaris? Is this a fatal error, or will Elasticsearch continue to function  
> normally inspite of this? I have not set any properties related to  
> compression (other than setting "compress.lzf.decoder" to safe), so I  
> suppose compression is turned off by default?
> 
> Here are the log:
> 
> [2012-07-06 15:30:12,075][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: initializing ...  
> [2012-07-06 15:30:12,107][INFO][plugins] [Purple Girl]  
> loaded , sites   
> java.lang.reflect.InvocationTargetException  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
> at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at  
> org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317)  
> at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219)  
> at org.xerial.snappy.Snappy.(Snappy.java:44)  
> at  
> org.elasticsearch.common.compress.snappy.xerial.XerialSnappy.(XerialSnappy.java:35)  
> at  
> org.elasticsearch.common.compress.CompressorFactory.(CompressorFactory.java:54)  
> at  
> org.elasticsearch.node.internal.InternalNode.(InternalNode.java:121)  
> at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)  
> at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:67)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:200)  
> at  
> org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
> Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in  
> java.library.path  
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)  
> at java.lang.Runtime.loadLibrary0(Runtime.java:823)  
> at java.lang.System.loadLibrary(System.java:1028)  
> at  
> org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52)  
> ... 14 more  
> [2012-07-06 15:30:20,375][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: initialized  
> [2012-07-06 15:30:20,376][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: starting ...  
> [2012-07-06 15:30:20,878][INFO][transport] [Purple Girl]  
> bound\_address {inet[/0.0.0.0:9303]}, publish\_address {inet[/  
> 192.168.166.221:9303]}  
> [2012-07-06 15:30:24,837][INFO][cluster.service] [Purple Girl]  
> detected\_master  
> [Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]], added  
> {[Fagin][BcdSVawLTzuMRfms9einmg][inet[/192.168.166.221:9300]],[Whizzer][BX1sImVaSUSUMtGzNMUYLA][inet[/192.168.166.221:9302]],[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]],},  
> reason: zen-disco-receive(from master  
> [[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]]])  
> [2012-07-06 15:30:25,470][INFO][discovery] [Purple Girl]  
> elasticsearch/2Aml04qZR8OoFP4p8FBKiA  
> [2012-07-06 15:30:25,561][INFO][http] [Purple Girl]  
> bound\_address {inet[/0.0.0.0:9203]}, publish\_address {inet[/  
> 192.168.166.221:9203]}  
> [2012-07-06 15:30:25,562][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: started
> 
> On Friday, July 6, 2012 3:28:58 PM UTC-4, Shantanu wrote:
> 
> > I have emailed you the state files. I will try running the 19.9-snapshot  
> > with the property set to safe and will let you know how it goes.  
> > Thank you for all the help.
> > 
> > On Friday, July 6, 2012 4:06:47 AM UTC-4, kimchy wrote:
> > 
> > > One more thing, can you zip the [data location]/nodes/0/\_state directory  
> > > and mail it to me? I'd like to see if I can recreate the failure to  
> > > decompress problem.
> > > 
> > > Here is the zip file:  
> > > [https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip).
> > > 
> > > On Fri, Jul 6, 2012 at 1:00 AM, Shantanu wrote:
> > > 
> > > > Thank you Shay. zip would work for me.
> > > > 
> > > > On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> > > > 
> > > > > I wonder if its a problem with LZF and its usage of unsafe on solaris  
> > > > > (it smells like it). In 0.19.8, there isn't an option to configure LZF to  
> > > > > not use unsafe, but I just added suport for it in 0.19 branch. The settings  
> > > > > is compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> > > > > link to a snapshot build of 0.19.9, just tell me which one you need  
> > > > > (zip/tag.gz/deb).
> > > > > 
> > > > > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > > > > 
> > > > > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am
> > > > > 
> > > > > > using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > > > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > > > > Here is the Elasticsearch log:
> > > > > > 
> > > > > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain  
> > > > > > ]: Search Daemon initializing  
> > > > > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq.\*\*  
> > > > > > CachingFailoverConnectionFacto**ry] [WrapperSimpleAppMain  
> > > > > > ]: Creating connection factory to broker [tcp://localhost:8025?**  
> > > > > > connectionTimeout=3000&\*\*soTimeout=60000].  
> > > > > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > {0.19.8}[26548]: initializing ...  
> > > > > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > loaded [mapper-attachments], sites
> > > > > > 
> > > > > > the jvm crashes after this point. Here is excerpt from the crash  
> > > > > > report. I am also attaching the complete crash report  
> > > > > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > > > > j sun.misc.Unsafe.getLong(\*\*Ljava/lang/Object;J)J+-\*\*1078249144  
> > > > > > j sun.misc.Unsafe.getLong(**Ljava/lang/Object;J)J+0  
> > > > > > j org.elasticsearch.common.compress.lzf.impl.  
> > > > > > UnsafeChunkDecoder.copyUpTo32(**[BI[BII)V+78  
> > > > > > j org.elasticsearch.common.\*\*compress.lzf.impl.\*\*UnsafeChunkDecoder.  
> > > > > > \*\*decodeChunk([BI[BII)V+26  
> > > > > > j org.elasticsearch.common.\*\*compress.lzf.impl.\*\*UnsafeChunkDecoder.  
> > > > > > \*\*decodeChunk(Ljava/io/\*\*InputStream;[B[B)I+104  
> > > > > > j org.elasticsearch.common. **compress.lzf.**  
> > > > > > LZFCompressedStreamInput.\*\*uncompress(Ljava/io/\*\*InputStream;[B)I+10  
> > > > > > j org.elasticsearch.common.\*\*compress. **CompressedStreamInput.**  
> > > > > > readyBuffer()Z+32  
> > > > > > j org.elasticsearch.common. **compress.**  
> > > > > > CompressedStreamInput.read()I+\*\*1  
> > > > > > j org.elasticsearch.common. **xcontent.XContentFactory.**  
> > > > > > xContentType(Ljava/io/**InputStream;)Lorg/**  
> > > > > > elasticsearch/common/xcontent/\*\*XContentType;+1  
> > > > > > j org.elasticsearch.common. **xcontent.XContentHelper.**  
> > > > > > createParser([BII)Lorg/ **elasticsearch/common/xcontent/**  
> > > > > > XContentParser;+32  
> > > > > > j org.elasticsearch.gateway. **local.state.meta.**  
> > > > > > LocalGatewayMetaState.\*\*pre019Upgrade()V+238
> > > > > > 
> > > > > > Anyone seen this before?
> > > > > > 
> > > > > > Thank you.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [July 9, 2012, 6:12pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/8 "2012-07-09T18:12:21Z")

</div>

Did oyu set the mentioned flag? It seems like it loaded fine. I will check  
the state files, the failure you see is from snappy failing to load (which  
is fine, its not required). I will try and hack around it.

On Fri, Jul 6, 2012 at 9:43 PM, Shantanu [f.shantanu@gmail.com](mailto:f.shantanu@gmail.com) wrote:

> I tried running the snapshot version of 19.9 on the solaris machine. The  
> node did come up and the JVM did not crash, but I am still getting the  
> following exception. It may be because snappy does not have binaries for  
> solaris? Is this a fatal error, or will Elasticsearch continue to function  
> normally inspite of this? I have not set any properties related to  
> compression (other than setting "compress.lzf.decoder" to safe), so I  
> suppose compression is turned off by default?
> 
> Here are the log:
> 
> [2012-07-06 15:30:12,075][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: initializing ...  
> [2012-07-06 15:30:12,107][INFO][plugins] [Purple Girl]  
> loaded , sites   
> java.lang.reflect.InvocationTargetException  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
> at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at  
> org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317)  
> at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219)  
> at org.xerial.snappy.Snappy.(Snappy.java:44)  
> at  
> org.elasticsearch.common.compress.snappy.xerial.XerialSnappy.(XerialSnappy.java:35)  
> at  
> org.elasticsearch.common.compress.CompressorFactory.(CompressorFactory.java:54)  
> at  
> org.elasticsearch.node.internal.InternalNode.(InternalNode.java:121)  
> at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)  
> at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:67)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:200)  
> at  
> org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
> Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in  
> java.library.path  
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)  
> at java.lang.Runtime.loadLibrary0(Runtime.java:823)  
> at java.lang.System.loadLibrary(System.java:1028)  
> at  
> org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52)  
> ... 14 more  
> [2012-07-06 15:30:20,375][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: initialized  
> [2012-07-06 15:30:20,376][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: starting ...  
> [2012-07-06 15:30:20,878][INFO][transport] [Purple Girl]  
> bound\_address {inet[/0.0.0.0:9303]}, publish\_address {inet[/  
> 192.168.166.221:9303]}  
> [2012-07-06 15:30:24,837][INFO][cluster.service] [Purple Girl]  
> detected\_master [Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]],  
> added {[Fagin][BcdSVawLTzuMRfms9einmg][inet[/192.168.166.221:9300  
> ]],[Whizzer][BX1sImVaSUSUMtGzNMUYLA][inet[/192.168.166.221:9302  
> ]],[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]],},  
> reason: zen-disco-receive(from master  
> [[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]]])  
> [2012-07-06 15:30:25,470][INFO][discovery] [Purple Girl]  
> elasticsearch/2Aml04qZR8OoFP4p8FBKiA  
> [2012-07-06 15:30:25,561][INFO][http] [Purple Girl]  
> bound\_address {inet[/0.0.0.0:9203]}, publish\_address {inet[/  
> 192.168.166.221:9203]}  
> [2012-07-06 15:30:25,562][INFO][node] [Purple Girl]  
> {0.19.9-SNAPSHOT}[4865]: started
> 
> On Friday, July 6, 2012 3:28:58 PM UTC-4, Shantanu wrote:
> 
> > I have emailed you the state files. I will try running the 19.9-snapshot  
> > with the property set to safe and will let you know how it goes.  
> > Thank you for all the help.
> > 
> > On Friday, July 6, 2012 4:06:47 AM UTC-4, kimchy wrote:
> > 
> > > One more thing, can you zip the [data location]/nodes/0/\_state directory  
> > > and mail it to me? I'd like to see if I can recreate the failure to  
> > > decompress problem.
> > > 
> > > Here is the zip file: [https://dl.dropbox.com/](https://dl.dropbox.com/)\*\*  
> > > u/2136051/elasticsearch-0.19.\*\*9-SNAPSHOT.zip[https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip)  
> > > .
> > > 
> > > On Fri, Jul 6, 2012 at 1:00 AM, Shantanu wrote:
> > > 
> > > > Thank you Shay. zip would work for me.
> > > > 
> > > > On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> > > > 
> > > > > I wonder if its a problem with LZF and its usage of unsafe on solaris  
> > > > > (it smells like it). In 0.19.8, there isn't an option to configure LZF to  
> > > > > not use unsafe, but I just added suport for it in 0.19 branch. The settings  
> > > > > is compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> > > > > link to a snapshot build of 0.19.9, just tell me which one you need  
> > > > > (zip/tag.gz/deb).
> > > > > 
> > > > > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > > > > 
> > > > > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I am
> > > > > 
> > > > > > using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > > > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > > > > Here is the Elasticsearch log:
> > > > > > 
> > > > > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain  
> > > > > > ]: Search Daemon initializing  
> > > > > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq. **CachingFail**  
> > > > > > overConnectionFacto**ry] [WrapperSimpleAppMain]:  
> > > > > > Creating connection factory to broker [tcp://localhost:8025?**  
> > > > > > connecti\*\*onTimeout=3000&\*\*soTimeout=\*\*60000].  
> > > > > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > {0.19.8}[26548]: initializing ...  
> > > > > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > loaded [mapper-attachments], sites
> > > > > > 
> > > > > > the jvm crashes after this point. Here is excerpt from the crash  
> > > > > > report. I am also attaching the complete crash report  
> > > > > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > > > > j sun.misc.Unsafe.getLong( **Ljava** /lang/Object;J)J+-\*_1078249144  
> > > > > > j sun.misc.Unsafe.getLong( **Ljava** /lang/Object;J)J+0  
> > > > > > j org.elasticsearch.common. **comp** ress.lzf.impl.UnsafeChunkDecod  
> > > > > > \*er.copyUpTo32(_[BI[BII)V+78  
> > > > > > j org.elasticsearch.common. **comp** ress.lzf.impl.\*_UnsafeChunkDecod_  
> > > > > > \*er.\*\*decodeChunk([BI[BII)V+26  
> > > > > > j org.elasticsearch.common. **comp** ress.lzf.impl.\*_UnsafeChunkDecod_  
> > > > > > \*er.\*\*decodeChunk(Ljava/io/ **InputS** tream;[B[B)I+104  
> > > > > > j org.elasticsearch.common. **comp** ress.lzf.\*_LZFCompressedStreamIn_  
> > > > > > \*put.**uncompress(Ljava/io/InputStream;[B)I+10  
> > > > > > j org.elasticsearch.common.compress.CompressedStreamInput.  
> > > > > > rea**dyBuffer()Z+32  
> > > > > > j org.elasticsearch.common. **comp** ress. **CompressedStreamInput.**  
> > > > > > read()I+\*\*1  
> > > > > > j org.elasticsearch.common. **xcon** tent.XContentFactory.\*_xContentT_  
> > > > > > \*ype(Ljava/io/\*\*InputStream;)\*\*Lorg/ **elasticsearch/common/**  
> > > > > > xcontent/\*\*XContentType;+1  
> > > > > > j org.elasticsearch.common. **xcon** tent.XContentHelper.\*_createPars_  
> > > > > > \*er([BII)Lorg/\*\*elasticsearch/\*\*common/xcontent/ **XContentParser**  
> > > > > > ;+32  
> > > > > > j org.elasticsearch.gateway. **loc** al.state.meta.\*_LocalGatewayMeta_  
> > > > > > \*State.\*\*pre019Upgrade()V+238
> > > > > > 
> > > > > > Anyone seen this before?
> > > > > > 
> > > > > > Thank you.

---

<div class="post-metadata">

### Author: ![f\_shantanu](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@f\_shantanu](https://discuss.elastic.co/u/f_shantanu)
#### Post date: [July 9, 2012, 8:23pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/9 "2012-07-09T20:23:47Z")

</div>

Thanks Shay.

As I mentioned the node did come up after I set the afore mentioned flag. I  
was just curious about the snappy exception I saw in the logs when the node  
was starting up. Now that you have confirmed that its not fatal, we would  
go ahead and upgrade to 0.19.9 once the stable version comes out. Thanks a  
lot for the help.

On Monday, July 9, 2012 2:12:21 PM UTC-4, kimchy wrote:

> Did oyu set the mentioned flag? It seems like it loaded fine. I will check  
> the state files, the failure you see is from snappy failing to load (which  
> is fine, its not required). I will try and hack around it.
> 
> On Fri, Jul 6, 2012 at 9:43 PM, Shantanu wrote:
> 
> > I tried running the snapshot version of 19.9 on the solaris machine. The  
> > node did come up and the JVM did not crash, but I am still getting the  
> > following exception. It may be because snappy does not have binaries for  
> > solaris? Is this a fatal error, or will Elasticsearch continue to function  
> > normally inspite of this? I have not set any properties related to  
> > compression (other than setting "compress.lzf.decoder" to safe), so I  
> > suppose compression is turned off by default?
> > 
> > Here are the log:
> > 
> > [2012-07-06 15:30:12,075][INFO][node] [Purple Girl]  
> > {0.19.9-SNAPSHOT}[4865]: initializing ...  
> > [2012-07-06 15:30:12,107][INFO][plugins] [Purple Girl]  
> > loaded , sites   
> > java.lang.reflect.InvocationTargetException  
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > at  
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
> > at  
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
> > at java.lang.reflect.Method.invoke(Method.java:597)  
> > at  
> > org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317)  
> > at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219)  
> > at org.xerial.snappy.Snappy.(Snappy.java:44)  
> > at  
> > org.elasticsearch.common.compress.snappy.xerial.XerialSnappy.(XerialSnappy.java:35)  
> > at  
> > org.elasticsearch.common.compress.CompressorFactory.(CompressorFactory.java:54)  
> > at  
> > org.elasticsearch.node.internal.InternalNode.(InternalNode.java:121)  
> > at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)  
> > at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:67)  
> > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:200)  
> > at  
> > org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
> > Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in  
> > java.library.path  
> > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)  
> > at java.lang.Runtime.loadLibrary0(Runtime.java:823)  
> > at java.lang.System.loadLibrary(System.java:1028)  
> > at  
> > org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52)  
> > ... 14 more  
> > [2012-07-06 15:30:20,375][INFO][node] [Purple Girl]  
> > {0.19.9-SNAPSHOT}[4865]: initialized  
> > [2012-07-06 15:30:20,376][INFO][node] [Purple Girl]  
> > {0.19.9-SNAPSHOT}[4865]: starting ...  
> > [2012-07-06 15:30:20,878][INFO][transport] [Purple Girl]  
> > bound\_address {inet[/0.0.0.0:9303]}, publish\_address {inet[/  
> > 192.168.166.221:9303]}  
> > [2012-07-06 15:30:24,837][INFO][cluster.service] [Purple Girl]  
> > detected\_master  
> > [Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]], added  
> > {[Fagin][BcdSVawLTzuMRfms9einmg][inet[/192.168.166.221:9300]],[Whizzer][BX1sImVaSUSUMtGzNMUYLA][inet[/192.168.166.221:9302]],[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]],},  
> > reason: zen-disco-receive(from master  
> > [[Apalla][QtMIm7p6TamFnm2bS\_ZDMg][inet[/192.168.166.221:9301]]])  
> > [2012-07-06 15:30:25,470][INFO][discovery] [Purple Girl]  
> > elasticsearch/2Aml04qZR8OoFP4p8FBKiA  
> > [2012-07-06 15:30:25,561][INFO][http] [Purple Girl]  
> > bound\_address {inet[/0.0.0.0:9203]}, publish\_address {inet[/  
> > 192.168.166.221:9203]}  
> > [2012-07-06 15:30:25,562][INFO][node] [Purple Girl]  
> > {0.19.9-SNAPSHOT}[4865]: started
> > 
> > On Friday, July 6, 2012 3:28:58 PM UTC-4, Shantanu wrote:
> > 
> > > I have emailed you the state files. I will try running the 19.9-snapshot  
> > > with the property set to safe and will let you know how it goes.  
> > > Thank you for all the help.
> > > 
> > > On Friday, July 6, 2012 4:06:47 AM UTC-4, kimchy wrote:
> > > 
> > > > One more thing, can you zip the [data location]/nodes/0/\_state  
> > > > directory and mail it to me? I'd like to see if I can recreate the failure  
> > > > to decompress problem.
> > > > 
> > > > Here is the zip file: [https://dl.dropbox.com/](https://dl.dropbox.com/)\*\*  
> > > > u/2136051/elasticsearch-0.19.\*\*9-SNAPSHOT.zip[https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip)  
> > > > .
> > > > 
> > > > On Fri, Jul 6, 2012 at 1:00 AM, Shantanu wrote:
> > > > 
> > > > > Thank you Shay. zip would work for me.
> > > > > 
> > > > > On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> > > > > 
> > > > > > I wonder if its a problem with LZF and its usage of unsafe on solaris  
> > > > > > (it smells like it). In 0.19.8, there isn't an option to configure LZF to  
> > > > > > not use unsafe, but I just added suport for it in 0.19 branch. The settings  
> > > > > > is compress.lzf.decoder, and set it to "safe". If you want, I can provide a  
> > > > > > link to a snapshot build of 0.19.9, just tell me which one you need  
> > > > > > (zip/tag.gz/deb).
> > > > > > 
> > > > > > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > > > > > 
> > > > > > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I
> > > > > > 
> > > > > > > am using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > > > > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > > > > > Here is the Elasticsearch log:
> > > > > > > 
> > > > > > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain  
> > > > > > > ]: Search Daemon initializing  
> > > > > > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq. **CachingFail**  
> > > > > > > overConnectionFacto**ry] [WrapperSimpleAppMain]:  
> > > > > > > Creating connection factory to broker [tcp://localhost:8025?**  
> > > > > > > connecti\*\*onTimeout=3000&\*\*soTimeout=\*\*60000].  
> > > > > > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > > {0.19.8}[26548]: initializing ...  
> > > > > > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > > loaded [mapper-attachments], sites
> > > > > > > 
> > > > > > > the jvm crashes after this point. Here is excerpt from the crash  
> > > > > > > report. I am also attaching the complete crash report  
> > > > > > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > > > > > j sun.misc.Unsafe.getLong( **Ljava** /lang/Object;J)J+-\*\*1078249144  
> > > > > > > j sun.misc.Unsafe.getLong( **Ljava** /lang/Object;J)J+0  
> > > > > > > j org.elasticsearch.common. **comp** ress.lzf.impl.\*\*UnsafeChunkDecod  
> > > > > > > **er.copyUpTo32(**[BI[BII)V+78  
> > > > > > > j org.elasticsearch.common. **comp** ress.lzf.impl.\*\*UnsafeChunkDecod  
> > > > > > > \*\*er.\*\*decodeChunk([BI[BII)V+26  
> > > > > > > j org.elasticsearch.common. **comp** ress.lzf.impl.\*\*UnsafeChunkDecod  
> > > > > > > \*\*er.\*\*decodeChunk(Ljava/io/ **InputS** tream;[B[B)I+104  
> > > > > > > j org.elasticsearch.common. **comp** ress.lzf.\*\*LZFCompressedStreamIn  
> > > > > > > \*\*put.**uncompress(Ljava/io/InputStream;[B)I+10  
> > > > > > > j org.elasticsearch.common.compress.CompressedStreamInput.  
> > > > > > > rea**dyBuffer()Z+32  
> > > > > > > j org.elasticsearch.common. **comp** ress. **CompressedStreamInput.**  
> > > > > > > read()I+\*\*1  
> > > > > > > j org.elasticsearch.common. **xcon** tent.XContentFactory.\*\*xContentT  
> > > > > > > \*\*ype(Ljava/io/\*\*InputStream;)\*\*Lorg/ **elasticsearch/common/**  
> > > > > > > xcontent/\*\*XContentType;+1  
> > > > > > > j org.elasticsearch.common. **xcon** tent.XContentHelper.\*\*createPars  
> > > > > > > \*\*er([BII)Lorg/\*\*elasticsearch/\*\*common/xcontent/ **XContentParser**  
> > > > > > > ;+32  
> > > > > > > j org.elasticsearch.gateway. **loc** al.state.meta.\*\*LocalGatewayMeta  
> > > > > > > \*\*State.\*\*pre019Upgrade()V+238
> > > > > > > 
> > > > > > > Anyone seen this before?
> > > > > > > 
> > > > > > > Thank you.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [July 9, 2012, 11:12pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/10 "2012-07-09T23:12:49Z")

</div>

I managed to hack around it so the exception won't be shown when snappy is  
not available, so at least this will go aways when 0.19.9 formal is out  
(its already in the 0.19 brach).

On Mon, Jul 9, 2012 at 10:23 PM, Shantanu [f.shantanu@gmail.com](mailto:f.shantanu@gmail.com) wrote:

> Thanks Shay.
> 
> As I mentioned the node did come up after I set the afore mentioned flag.  
> I was just curious about the snappy exception I saw in the logs when the  
> node was starting up. Now that you have confirmed that its not fatal, we  
> would go ahead and upgrade to 0.19.9 once the stable version comes out.  
> Thanks a lot for the help.
> 
> On Monday, July 9, 2012 2:12:21 PM UTC-4, kimchy wrote:
> 
> > Did oyu set the mentioned flag? It seems like it loaded fine. I will  
> > check the state files, the failure you see is from snappy failing to load  
> > (which is fine, its not required). I will try and hack around it.
> > 
> > On Fri, Jul 6, 2012 at 9:43 PM, Shantanu wrote:
> > 
> > I tried running the snapshot version of 19.9 on the solaris machine. The
> > 
> > > node did come up and the JVM did not crash, but I am still getting the  
> > > following exception. It may be because snappy does not have binaries for  
> > > solaris? Is this a fatal error, or will Elasticsearch continue to function  
> > > normally inspite of this? I have not set any properties related to  
> > > compression (other than setting "compress.lzf.decoder" to safe), so I  
> > > suppose compression is turned off by default?
> > > 
> > > Here are the log:
> > > 
> > > [2012-07-06 15:30:12,075][INFO][node] [Purple  
> > > Girl] {0.19.9-SNAPSHOT}[4865]: initializing ...  
> > > [2012-07-06 15:30:12,107][INFO][plugins] [Purple  
> > > Girl] loaded , sites   
> > > java.lang.reflect.\*\*InvocationTargetException  
> > > at sun.reflect.\*\*NativeMethodAccessorImpl.\*\*invoke0(Native  
> > > Method)  
> > > at sun.reflect.\*\*NativeMethodAccessorImpl.**invoke(**  
> > > NativeMethodAccessorImpl.java:\*\*39)  
> > > at sun.reflect.\*\*DelegatingMethodAccessorImpl.**invoke(**  
> > > DelegatingMethodAccessorImpl.\*\*java:25)  
> > > at java.lang.reflect.Method.\*\*invoke(Method.java:597)  
> > > at org.xerial.snappy.\*\*SnappyLoader.**loadNativeLibrary(**  
> > > SnappyLoader.java:317)  
> > > at org.xerial.snappy.**SnappyLoader.load(**  
> > > SnappyLoader.java:219)  
> > > at org.xerial.snappy.Snappy.\<\*\*clinit\>(Snappy.java:44)  
> > > at org.elasticsearch.common. **compress.snappy.xerial.**  
> > > XerialSnappy.(\*\*XerialSnappy.java:35)  
> > > at org.elasticsearch.common. **compress.CompressorFactory.\<**  
> > > clinit\>(CompressorFactory.\*\*java:54)  
> > > at org.elasticsearch.node.**internal.InternalNode.(**  
> > > InternalNode.java:121)  
> > > at org.elasticsearch.node.**NodeBuilder.build(NodeBuilder.**  
> > > java:159)  
> > > at org.elasticsearch.bootstrap.**Bootstrap.setup(Bootstrap.**  
> > > java:67)  
> > > at org.elasticsearch.bootstrap.\*_Bootstrap.main(Bootstrap.java:_  
> > > \*200)  
> > > at org.elasticsearch.bootstrap.**Elasticsearch.main(**  
> > > Elasticsearch.java:32)  
> > > Caused by: java.lang.\*\*UnsatisfiedLinkError: no snappyjava in  
> > > java.library.path  
> > > at java.lang.ClassLoader.\*\*loadLibrary(ClassLoader.java:\*\*1738)  
> > > at java.lang.Runtime.\*\*loadLibrary0(Runtime.java:823)  
> > > at java.lang.System.loadLibrary(\*\*System.java:1028)  
> > > at org.xerial.snappy.\*\*SnappyNativeLoader.**loadLibrary(**  
> > > SnappyNativeLoader.java:52)  
> > > ... 14 more  
> > > [2012-07-06 15:30:20,375][INFO][node] [Purple  
> > > Girl] {0.19.9-SNAPSHOT}[4865]: initialized  
> > > [2012-07-06 15:30:20,376][INFO][node] [Purple  
> > > Girl] {0.19.9-SNAPSHOT}[4865]: starting ...  
> > > [2012-07-06 15:30:20,878][INFO][transport] [Purple  
> > > Girl] bound\_address {inet[/0.0.0.0:9303]}, publish\_address {inet[/  
> > > 192.168.166.221:9303]}  
> > > [2012-07-06 15:30:24,837][INFO][cluster.service] [Purple  
> > > Girl] detected\_master [Apalla][QtMIm7p6TamFnm2bS\_\*\*ZDMg][inet[/  
> > > 192.168.166.221:**9301]], added {[Fagin][**  
> > > BcdSVawLTzuMRfms9einmg][inet[/\*\*192.168.166.221:9300]],[**Whizzer][**  
> > > BX1sImVaSUSUMtGzNMUYLA][inet[/**192.168.166.221:9302]],[**  
> > > Apalla][QtMIm7p6TamFnm2bS\_\*\*ZDMg][inet[/192.168.166.221:**9301]],},  
> > > reason: zen-disco-receive(from master [[Apalla][QtMIm7p6TamFnm2bS\_**  
> > > ZDMg][inet[/192.168.166.221:\*\*9301]]])  
> > > [2012-07-06 15:30:25,470][INFO][discovery] [Purple  
> > > Girl] elasticsearch/\*\*2Aml04qZR8OoFP4p8FBKiA  
> > > [2012-07-06 15:30:25,561][INFO][http] [Purple  
> > > Girl] bound\_address {inet[/0.0.0.0:9203]}, publish\_address {inet[/  
> > > 192.168.166.221:9203]}  
> > > [2012-07-06 15:30:25,562][INFO][node] [Purple  
> > > Girl] {0.19.9-SNAPSHOT}[4865]: started
> > > 
> > > On Friday, July 6, 2012 3:28:58 PM UTC-4, Shantanu wrote:
> > > 
> > > > I have emailed you the state files. I will try running the  
> > > > 19.9-snapshot with the property set to safe and will let you know how it  
> > > > goes.  
> > > > Thank you for all the help.
> > > > 
> > > > On Friday, July 6, 2012 4:06:47 AM UTC-4, kimchy wrote:
> > > > 
> > > > > One more thing, can you zip the [data location]/nodes/0/\_state  
> > > > > directory and mail it to me? I'd like to see if I can recreate the failure  
> > > > > to decompress problem.
> > > > > 
> > > > > Here is the zip file: [https://dl.dropbox.com/\*\*u](https://dl.dropbox.com/**u)\*\*  
> > > > > /2136051/elasticsearch-0.19.\*\*9-\*\*SNAPSHOT.zip[https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip](https://dl.dropbox.com/u/2136051/elasticsearch-0.19.9-SNAPSHOT.zip)  
> > > > > .
> > > > > 
> > > > > On Fri, Jul 6, 2012 at 1:00 AM, Shantanu wrote:
> > > > > 
> > > > > > Thank you Shay. zip would work for me.
> > > > > > 
> > > > > > On Thursday, July 5, 2012 6:18:23 PM UTC-4, kimchy wrote:
> > > > > > 
> > > > > > > I wonder if its a problem with LZF and its usage of unsafe on  
> > > > > > > solaris (it smells like it). In 0.19.8, there isn't an option to configure  
> > > > > > > LZF to not use unsafe, but I just added suport for it in 0.19 branch. The  
> > > > > > > settings is compress.lzf.decoder, and set it to "safe". If you want, I can  
> > > > > > > provide a link to a snapshot build of 0.19.9, just tell me which one you  
> > > > > > > need (zip/tag.gz/deb).
> > > > > > > 
> > > > > > > On Thu, Jul 5, 2012 at 10:28 PM, Shantanu wrote:
> > > > > > > 
> > > > > > > Elastic search 0.19.8 causes JVM to crash on solaris java 6 U 31. I
> > > > > > > 
> > > > > > > > am using mapper-attachmnents 18.7 and I have not had this problem with the  
> > > > > > > > previous version I was using 0.18.7 and mapper-attachments 18.6.  
> > > > > > > > Here is the Elasticsearch log:
> > > > > > > > 
> > > > > > > > 2012-07-05 15:53:45,723] [INFO][WrapperSimpleAppMain  
> > > > > > > > ]: Search Daemon initializing  
> > > > > > > > [2012-07-05 15:53:55,398] [DEBUG] [ion.util.activemq._CachingFail  
> > > > > > > > **overConnectionFacto** ry] [WrapperSimpleAppMain]:  
> > > > > > > > Creating connection factory to broker [tcp://localhost:8025?_  
> > > > > > > > connecti\*\*\*\*onTimeout=3000&\*\*soTimeout= **60000** ].  
> > > > > > > > [2012-07-05 15:53:58,480] [INFO] [org.elasticsearch.node  
> > > > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > > > {0.19.8}[26548]: initializing ...  
> > > > > > > > [2012-07-05 15:53:58,520] [INFO] [org.elasticsearch.plugins  
> > > > > > > > ] [WrapperSimpleAppMain]: [Scalphunter]  
> > > > > > > > loaded [mapper-attachments], sites
> > > > > > > > 
> > > > > > > > the jvm crashes after this point. Here is excerpt from the crash  
> > > > > > > > report. I am also attaching the complete crash report  
> > > > > > > > V [libjvm.so+0x974c88] Unsafe\_GetLong+0x120  
> > > > > > > > j sun.misc.Unsafe.getLong( **Ljava** \*\*/lang/Object;J)J+-\*\*  
> > > > > > > > 1078249144  
> > > > > > > > j sun.misc.Unsafe.getLong( **Ljava** \*\*/lang/Object;J)J+0  
> > > > > > > > j org.elasticsearch.common. **comp\*\*\*\*ress.lzf.impl.**  
> > > > > > > > UnsafeChunkDecod**er.copyUpTo32(\*\*[BI[BII)V+78  
> > > > > > > > j org.elasticsearch.common.\*\*comp**ress.lzf.impl.\*\*  
> > > > > > > > UnsafeChunkDecod**er.\*\*decodeChunk([BI[BII)V+26  
> > > > > > > > j org.elasticsearch.common.\*\*comp**ress.lzf.impl.\*\*  
> > > > > > > > UnsafeChunkDecod**er.decodeChunk(Ljava/io/InputS  
> > > > > > > > tream;[B[B)I+104  
> > > > > > > > j org.elasticsearch.common.\*\*comp**ress.lzf.\*\*  
> > > > > > > > LZFCompressedStreamIn**put.uncompress(Ljava/io/InputS  
> > > > > > > > tream;[B)I+10  
> > > > > > > > j org.elasticsearch.common.\*\*comp**ress.\*\*CompressedStreamInput.  
> > > > > > > > \*\*rea**dyBuffer()Z+32  
> > > > > > > > j org.elasticsearch.common.\*\*comp **ress.** CompressedStreamInput.  
> > > > > > > > read()I+1  
> > > > > > > > j org.elasticsearch.common.xcon\*\*\*\*tent.XContentFactory.  
> > > > > > > > xContentType(Ljava/io/InputStream;)Lorg/  
> > > > > > > > elasticsearch/common/xcontent/\*\*XContentType;+1  
> > > > > > > > j org.elasticsearch.common.\*\*xcontent.XContentHelper.  
> > > > > > > > createPars\*\*\*\*er([BII)Lorg/elasticsearch/common/xcontent/  
> > > > > > > > XContentParser**;+\*\*32  
> > > > > > > > j org.elasticsearch.gateway. **loc\*\*\*\*al.state.meta.**  
> > > > > > > > LocalGatewayMeta\*\*\*\*State.\*\*pre019Upgrade()V+238
> > > > > > > > 
> > > > > > > > Anyone seen this before?
> > > > > > > > 
> > > > > > > > Thank you.

---

<div class="post-metadata">

### Author: ![garcimouche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/garcimouche/32/2297_2.png) [@garcimouche](https://discuss.elastic.co/u/garcimouche)
#### Post date: [April 29, 2013, 6:38pm UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/11 "2013-04-29T18:38:33Z")

</div>

Just to let you know that I ran into the same exact issue in version 0.20.6 of ES running on an IBM System i system (OS400 operating system). JVM IBM J9 32 bits. Adding the settings option compress.lzf.decoder:safe fixes the problem for me also. Thank you very much,

---

<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, 2:39am UTC](https://discuss.elastic.co/t/elasticsearch-0-19-8-jvm-crash-on-solaris/8333/12 "2017-07-06T02:39:11Z")

</div>


