Java 1.6 Segmentation Error 11 (OSX 10.7.4)

I have a .jar file that at runtime reads one .dylib library that I compiled on OSX with the GCC compiler.

The application works without problems in OSX 10.6.8.

Java version:

java version "1.6.0_33" Java (TM) SE Runtime Environment (build 1.6.0_33-b10-424-10M3720) 64-bit Java Virtual Machine HotSpot TM (build 20.8-b01-424, mixed mode)

GCC Version:

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (based on Apple Inc. build 5658) (LLVM build 2336.1.00)

I use 64 bit Java and libs which are required .jar for x86_64. So, everything works fine on Snow Leopard.

Now I will switch my application to OSX 10.7.4. There I tried two different versions of Java:

Java version 1 (same as Snow Leopard):

java version "1.6.0_33" Java (TM) SE Runtime Environment (build 1.6.0_33-b10-424-10M3720) 64-bit Java Virtual Machine HotSpot TM (build 20.8-b01-424, mixed mode)

Java ( ):

java version "1.6.0_35" Java (TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811) 64- Java HotSpot TM ( 20.10-b01-428, )

GCC:

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 ( Apple Inc. 5658) ( LLVM 2336.9.00)

.dylib, Snow Leopard, :

0x0 rip = 0x7fff894aa697 : 11

, , Snow Leopard:

java[1366] <Error>: CGContextGetCTM: invalid context 0x0
java[1366] <Error>: CGContextSetBaseCTM: invalid context 0x0
java[1366] <Error>: CGContextGetCTM: invalid context 0x0
java[1366] <Error>: CGContextSetBaseCTM: invalid context 0x0

.dylib GCC Lion, . : 11.

, , Lion, Java, , - , Java - - , , ?

.


[edit # 1: Java 7 OSX 10.7.4]

.jar Java 7 , :

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff894aa697, pid=1471, tid=31503
#
# JRE version: 7.0_07-b10
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [CoreFoundation+0x2a697]  CFSetGetValue+0x17
#
# 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:
# /Users/username/Desktop/executable/hs_err_pid1471.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Abort trap: 6
+5
2

Mac OS X 10.8.2 Java 6 . , Java 6 Mac OS X 10.7.4. , , 10.8.2, , 10.7.4, , 10.7.4.

, .

.

+2

OS X 10.8.2, . , Java OS X.

java, . , :

Java OS X 10.8

10.8 (Mountain Lion), , , . . , -.

0

All Articles