Process Crashed When Using 11gr2 Jdbc With JDBC/OCI (Doc ID 1099957.1)

Last updated on MARCH 08, 2017

Applies to:

JDBC - Version 11.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 17-Dec-2013***

Symptoms

Upgraded the Oracle Home from 11.1 to 11.2.0.1.

Since then, there have been intermittent problem with the application when using the 11gR2 JDBC drivers with OCI connections.

It crashes inside the libclntsh library. This error appears to happen only when using the 11.2.0.1 version of the JDBC driver and the 11.2.0.1 libclntsh library.

When using the 11.1.0.7 JDBC driver and 11.1.0.7 client libraries, the crash does not occur.

Also using java 1.6.0_07 and 1.6.0_12 (both 64-bit), both have the same issue.

Error Stack
----------------
Stack: [0x00000000409f3000,0x0000000040a14000], sp=0x0000000040a119f0, free space=122k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libclntsh.so.11.1+0x762ca1] sltskjadd+0xa1
C [libclntsh.so.11.1+0x762ee1] sltskminit+0x89
C [libclntsh.so.11.1+0x762a17] sltsini+0xb9
C [libclntsh.so.11.1+0x79a3b3] ltsini+0x29
C [libclntsh.so.11.1+0x993ae2] kpummMutexAcquire+0x8e
C [libclntsh.so.11.1+0x993321] kpummpin+0x8d
C [libclntsh.so.11.1+0x4780a3] kpuenvcr+0xad
C [libclntsh.so.11.1+0xde06bb] OCIEnvNlsCreate+0x37
C [libocijdbc11.so+0x893b] Java_oracle_jdbc_driver_T2CConnection_t2cCreateState+0x83
j oracle.jdbc.driver.T2CConnection.t2cCreateState([BI[BI[BI[BI[BI[BI[BISI[S[B[B[J)I+0
j oracle.jdbc.driver.T2CConnection.logon()V+957
j oracle.jdbc.driver.PhysicalConnection.<init>(Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V+323
j oracle.jdbc.driver.T2CConnection.<init>(Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V+4
j oracle.jdbc.driver.T2CDriverExtension.getConnection(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+34
j oracle.jdbc.driver.OracleDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+296
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+210
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
j com.retek.retl.utils.DatabaseUtils.Connect(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/sql/Connection;+56
j com.retek.retl.base.JDBCReader.connect(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+46
j com.retek.retl.base.JDBCReader.connect(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+341
j com.retek.retl.ops.Operator_JDBCRead.doInitialize()V+279
j com.retek.retl.base.Operator.initialize(Z)V+35
j com.retek.retl.base.Operator_Pipeline.doInitialize()V+26
j com.retek.retl.base.Operator.initialize(Z)V+35
j com.retek.retl.base.ActivePipeline.initialize()V+5
j com.retek.retl.base.PipelineInitializer$PipelineInitializerThread.work()V+4
j com.retek.retl.threading.ConjoinedThread.run()V+52
v ~StubRoutines::call_stub
V [libjvm.so+0x3187ed]
V [libjvm.so+0x4e1fd9]
V [libjvm.so+0x3180d8]
V [libjvm.so+0x31817b]
V [libjvm.so+0x39b673]
V [libjvm.so+0x5be4c1]
V [libjvm.so+0x4e310a]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j oracle.jdbc.driver.T2CConnection.t2cCreateState([BI[BI[BI[BI[BI[BI[BISI[S[B[B[J)I+0
j oracle.jdbc.driver.T2CConnection.logon()V+957
j oracle.jdbc.driver.PhysicalConnection.<init>(Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V+323
j oracle.jdbc.driver.T2CConnection.<init>(Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V+4
j oracle.jdbc.driver.T2CDriverExtension.getConnection(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+34
j oracle.jdbc.driver.OracleDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+296
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+210
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
j com.retek.retl.utils.DatabaseUtils.Connect(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/sql/Connection;+56
j com.retek.retl.base.JDBCReader.connect(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+46
j com.retek.retl.base.JDBCReader.connect(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+341
j com.retek.retl.ops.Operator_JDBCRead.doInitialize()V+279
j com.retek.retl.base.Operator.initialize(Z)V+35
j com.retek.retl.base.Operator_Pipeline.doInitialize()V+26
j com.retek.retl.base.Operator.initialize(Z)V+35
j com.retek.retl.base.ActivePipeline.initialize()V+5
j com.retek.retl.base.PipelineInitializer$PipelineInitializerThread.work()V+4
j com.retek.retl.threading.ConjoinedThread.run()V+52
v ~StubRoutines::call_stub


The following stack is known to be another symptom of this issue.

Stack: [0x0000000041292000,0x0000000041393000], sp=0x00000000413904b0, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x3678c8] [0x3677e0] jni_GetStringUTFChars +0xe8
C [libocijdbc11.so+0x45fc] Java_oracle_jdbc_driver_T2CConnection_t2cSetSessionTimeZone+0x5a
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
V [libjvm.so+0x33ffed] [0x33fe40] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) +0x1ad
V [libjvm.so+0x505659] [0x505640] os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*) +0x19
V [libjvm.so+0x33fe35] [0x33fe10] JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) +0x25
V [libjvm.so+0x371591] [0x371450] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) +0x141
V [libjvm.so+0x36104d] [0x360e60] jni_CallStaticVoidMethod +0x1ed

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms