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"