Skip to Main Content

Programming Languages & Frameworks

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

oracle instant client macOS arm64 Version 23.3.0.0.0 crashes when sandboxed

Kyle HJan 22 2025

When using oracle instant client arm64 on macos (v23.3) there is a crash when sandboxed:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000f923dd321980 -> 0x00007923dd321980 (possible pointer authentication failure)
Exception Codes: 0x0000000000000001, 0x0000f923dd321980

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11

VM Region Info: 0x7923dd321980 is not in any region. Bytes after previous region: 27641288726913
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 600000000000-600020000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1937e6600 __pthread_kill + 8
1 libsystem_pthread.dylib 0x19381ef70 pthread_kill + 288
2 libsystem_c.dylib 0x1936f3c18 raise + 32
3 libclntsh.dylib 0x1094c3380 skgesigOSCrash + 132
4 libclntsh.dylib 0x1097a2980 kpeDbgSignalHandler + 128
5 libclntsh.dylib 0x1094c3674 skgesig_sigactionHandler + 604
6 libsystem_platform.dylib 0x193854184 _sigtramp + 56
7 libsystem_platform.dylib 0x193851fe8 _platform_strstr + 48
8 libclntsh.dylib 0x10801a09c skpudbg_any_events_set_in_env + 84
9 libclntsh.dylib 0x1097a3ed4 kpedbgevinit + 220
10 libclntsh.dylib 0x10979879c kpummpin + 1616
11 libclntsh.dylib 0x1080441fc kpuenvcr + 220
12 libclntsh.dylib 0x1081da3ec OCIEnvCreate + 40

I ran some breakpoints on _platform_strstr and logged the arguments and it crashed on:

(lldb) x/s $x1

0x10e131f28: "EVENT_"

(lldb) x/s $x0

error: failed to read memory from 0x4fbb.

When not sandboxed it <succeeds> with the arguments:

(lldb) x/s $x1

0x10e131f28: "EVENT_"

(lldb) x/s $x0

0x16d2e35b6: "CA_ASSERT_MAIN_THREAD_TRANSACTIONS=0"

Comments

Add EVENT_10842=15

You can also set this as an environment variable with the same name & value.

Sheeraz Majeed May 10 2024 — edited on May 10 2024

Hi, Thanks for reply.

But still no trace or log files to check used oci functions

Works for me.

cjones@cjones-mac:~$ rm -rf $HOME/instantclient/log/diag/clients && mkdir -p $HOME/instantclient/log/diag/clients
cjones@cjones-mac:~$ export EVENT_10842=15
cjones@cjones-mac:~$ sqlplus cj/cj@localhost/orclpdb1

...

SQL> select * from dual;

D
-
X

SQL> exit

And then a file like /Users/cjones/instantclient/log/diag/clients/user_cjones/host_nnnnnn_nn/trace/ora_nnn_nnnnn.trc will contain lines like:

# 2024-06-06 07:26:54.520 # Thread ID 8547126272 # Entry - OCIServerAttach(srvhp = 0x128030068, errhp = 0x13580a410, dblink_hash = H:0x9bf0f8e9ee161fdf, mode = OCI_DEFAULT(000000000), dblink = localhost/orclpdb1, dblink_len = 18 );
1 - 3

Post Details

Added on Jan 22 2025
8 comments
199 views