Acclaimed Contributor Acclaimed Contributor
Re: SIGSEGV, SEGV_ACCERR - Invalid Permissions for object in OCIEnvCreate (thread stack overflow)
[ Edited ]

>even tried to run it inside thread

 

You could have a thread stack overflow.

What does this show?

(gdb) disas $pc-16*12 $pc+16*4

(gdb) set $sp_save = $sp

(gdb) frame 42

(gdb) p $sp - $sp_save