Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

si_code: 2 - SEGV_ACCERR - Invalid Permissions for object

Occasional Advisor

si_code: 2 - SEGV_ACCERR - Invalid Permissions for object

I have a bespoke C application that uses PRO*C libraries to interface with Oracle.

The application was compiled with Oracle 9.2.0.5 PRO*C and HPUX cc: HP aC++/ANSI C B3910B A.05.57 [June 23 2004].

The applications runs without error against Oracle 9.2.0.5.

We are testing against 11r1 at present and relinked the application and started to get SEGV_ACCERR errors:

Program received signal SIGSEGV, Segmentation fault
si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
0x9fffffffba0352d0:1 in sqlibv () at sqlbdv.c:479
479 sqlbdv.c: No such file or directory.
in sqlbdv.c
(gdb) bt
#0 0x9fffffffba0352d0:1 in sqlibv () at sqlbdv.c:479
#1 0x9fffffffba0661a0:0 in sqlshv () at sqlrbd.c:425
#2 0x9fffffffba069390:0 in sqlatm () at sqlatm.c:585
#3 0x9fffffffba046330:0 in sqlnst () at sqlnst.c:959
#4 0x9fffffffba020e40:0 in sqlcmex () at sqlent.c:354
#5 0x9fffffffba021c00:0 in sqlcxt () at sqlent.c:649
#6 0x9fffffffbdca3e50:0 in open_PO010_AM_EVERY+0x370 ()
from /u01/app/sources/DEV/mleckie/life/lib/libPO010.so
#7 0x9fffffffbe245a20:0 in GEL_SRVDPT+0x3a40 ()
from /u01/app/sources/DEV/mleckie/life/lib/libGEL_SRVDPT.so
#8 0x400000000018d260:0 in frame_91 (repid=8, line=0) at FI0982.c:56797
#9 0x4000000000123e20:0 in frame_04 (repid=0, line=0) at FI0982.c:45300
#10 0x40000000001227c0:0 in frame_03 (repid=0, line=0) at FI0982.c:45152
#11 0x4000000000130a90:0 in frame_20 (repid=0, line=0) at FI0982.c:46936
#12 0x4000000000193c90:0 in main_logic () at FI0982.c:57711
#13 0x9fffffffbf718250:0 in main+0x3840 ()
from /u01/app/sources/DEV/mleckie/mss/lib/libmss.sl

We recompiled the application and dependant libraires using the V6 compiler (cc: HP C/aC++ B3910B A.06.15 [May 16 2007]) and the PRO*C compiler from 11r1 but no improvement.

Has anyone any suggestions as to what we can do to identify the cause the problem?
4 REPLIES
Acclaimed Contributor [Founder]

Re: si_code: 2 - SEGV_ACCERR - Invalid Permissions for object

>A.05.57

(aCC5 is not supported. The latest version is A.06.24 with A.06.25 coming out shortly.)

This is dying in Oracle, you'll need to contact them.
You may be passing a bad parm to sqlcxt, that may cause the signal 11.

Highlighted
Occasional Advisor

Re: si_code: 2 - SEGV_ACCERR - Invalid Permissions for object

Thanks for the response.

Oracle Support have indicated that this is a known problem and suggested we try installed patch 7308054 over 11.1.0.7 to resolve.

Will update this with the results post patch install.
Occasional Advisor

Re: si_code: 2 - SEGV_ACCERR - Invalid Permissions for object

Patch from Oracle resolved the problem.
Occasional Advisor

Re: si_code: 2 - SEGV_ACCERR - Invalid Permissions for object

As previously noted.