Hi, I am trying to import snappy under
Python 2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Dec 6 2015, 18:08:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
yet I cam getting the following error:
import snappy
A fatal error has been detected by the Java Runtime Environment:
SIGBUS (0x7) at pc=0x00002b919fc43eca, pid=37698, tid=0x00002b9194f46be0
JRE version: (8.0_121-b13) (build )
Java VM: Java HotSpot™ 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops)
Problematic frame:
j java.lang.Object.()V+0
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again
An error report file with more information is saved as:
/home/z3425578/Downloads/hs_err_pid37698.log
If you would like to submit a bug report, please visit:
Initially we tried to use snappy with out external jpy module. It was failing to initialize. So we compiled a version of jpy independent of snappy and imported it in python, which works fine. Snappy uses the jpy which come with snappy, which does not seem to able to initlize JVM and fails every time.
What version of JVM is support by jpy snappy i.e. any restrictions such as JDK vs OracleJAVA?
Are there any restrictions as to supported architecture (i686, x86_64 etc) of JVM for snappy?
jpy.so file provided with snappy is complied against GLIBC2_14 I believe where as GLIBC2_2 what is installed on your system, though GLIB2_2 is listed as supported GLIBC in jpy.so provided by snappy, it does not seem to be recognized by RHEL/CentOS 6. This is the reason we complied a newer version of jpy and was trying to make snappy use that instead of what is provided with the snappy.
Tested is only Oracle JDK version 8. It might work with OpenJDK but there is no guarantee.
There are no artificial restrictions regarding the architecture. If Python and Java and the OS have the same bitness everything should be fine.
To let snappy use the newly compiled and already installed jpy you need to remove the following files from the snappy directory:
and also jpyconfig.properties and jpyconfig.py. Then snappy should find the new one.
We have not explicitly tested with CentOS. As you found out, there seems to be an issue. But in general, it should work.
I tried as per below but it did not work.
I note that I did not find all the 6 files you specified and that there are two locations that you may be referring to.
I may have also overlooked something else…
Please let me know what you think.
Thanks, Mark
apython27
Python 2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
import jpy
import snappy
A fatal error has been detected by the Java Runtime Environment:
SIGBUS (0x7) at pc=0x00002b17352d1be7, pid=44505, tid=0x00002b1729191be0
JRE version: (8.0_141-b16) (build )
Java VM: OpenJDK 64-Bit Server VM (25.141-b16 mixed mode linux-amd64 )
Problematic frame:
j java.lang.Object.()V+0
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again
An error report file with more information is saved as:
/tmp/hs_err_pid44505.log
If you would like to submit a bug report, please visit: