Precompilers and OCI (MOSC)

MOSC Banner

Crash in OCILobRead2() when fetching JSON in to SQLT_CLOB

edited May 28, 2021 2:47PM in Precompilers and OCI (MOSC) 3 commentsAnswered

Hello,

I am using Oracle instant client 21.1.0.0.0 and an 21c ATP database in Oracle cloud.

According to the OCI doc:

Section "Compatibility with Client Libraries Prior to Release 21c"

It should be possible to fetch native JSON data into SQLT_CLOB.

But when reading the CLOB data after fetch the row, I get a crash in OCILobRead2().

I have a sample program to reproduce.

Here the stack trace of gdc (my OCI client runs on Linux Debian 10):

Program received signal SIGSEGV, Segmentation fault.

0x00007ffff5256c65 in kpulbc_get_pref_data () from /opt3/dbs/ora/instantclient_21/libclntsh.so.21.1

(gdb) where

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center