Pro*C not running in oracle11g R2 on AIX 6.1....
Hi All,
When I am running a pro*c executable on an AIX 6.1.0.0 and Oracle 11gR2 environment which is complied in AIX 6.1.0.0 and Oracle 11gR2 environment only , I am getting segment fault error . When the same code is getting compiled in AIX5.3 Oracle 10gR2 env and run in AIX5.3 Oracle 10gR2 , there is no error . I badly need help of you guys to resolve this issue :
The compilation details :
+Build date and time : Thu Dec 15 21:34:53 GMT+08:00 2011+
File to be built : test
Server Name : xxxxxxxxxx
proc include=.:/data/oracle/product/11.2.0.2/precomp/lib:/usr/lib sqlcheck=full ltype=none parse=full ireclen=500 oreclen=500 userid=xxxxxx/yyyyyyy@zzzzzzzzz lines=yes unsafe_null=yes CODE=ANSI_C mode=ORACLE dbms=v8 iname=test.pc
+Pro*C/C++: Release 11.2.0.2.0 - Production on Thu Dec 15 21:34:53 2011+
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: /data/oracle/product/11.2.0.2/precomp/admin/pcscfg.cfg
echo cc -qmaxmem=16384 -q64 -O3 -g -L/data/oracle/product/11.2.0.2/lib -c tbtfgrac.c -o tbtfgrac.o -lclntsh -lclient11 /data/oracle/product/11.2.0.2/lib/libsql11.a -lnro11 -lclient11 -lcommon11 -lgeneric11 -lnro11 -lclient11 -lcommon11 -lgeneric11 -lnls11 -lcore11 -lnls11 -lcore11 -lnls11 `cat /data/oracle/product/11.2.0.2/lib/sysliblist` -lm -lpthreads
cc -qmaxmem=16384 -q64 -O3 -g -L/data/oracle/product/11.2.0.2/lib -c tbtfgrac.c -o tbtfgrac.o -lclntsh -lclient11 /data/oracle/product/11.2.0.2/lib/libsql11.a -lnro11 -lclient11 -lcommon11 -lgeneric11 -lnro11 -lclient11 -lcommon11 -lgeneric11 -lnls11 -lcore11 -lnls11 -lcore11 -lnls11 /lib/crt0_64.o -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld -lperfstat -lm -lpthreads
cc: 1501-262 One or more input object files contain IPA information: specify -qipa for additional optimization.
ld: 0711-224 WARNING: Duplicate symbol: .bcopy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
test created...
Execution Details :
$ ./test 784 BG
Leaves validate args
[/,]
You are accessing the TFII database using a secured database login. Hint : Connect string : zzzzzzzz
Memory fault(coredump)
$ dbx tbtfgrac core
Type 'help' for help.
warning: The core file is not a fullcore. Some info may
not be available.
[using memory image in core]
reading symbolic information ...
Segmentation fault in _sigsetmask at 0x900000000477214
+0x900000000477214 (_sigsetmask+0xd4) e8410028 ld r2,0x28(r1)+
(dbx) where
_sigsetmask(??, ??, ??) at 0x900000000477214
sigthreadmask(??, ??, ??) at 0x9000000004785d0
skgesig_sigactionHandler(??, ??, ??) at 0x90000000b9187f4
getenv(??) at 0x900000000010af8
is_posix_tz() at 0x90000000004aa10
localtime_tz_r(??, ??, ??) at 0x900000000049008
sLdiGetDate(??, ??, ??, ??) at 0x90000000b427ad0
kgstmComputeTranslation(??, ??, ??, ??) at 0x90000000b4269f0
kgstmRefreshTranslation(??, ??, ??, ??) at 0x90000000b426e04
dbgtfDirectWriteEpochTSGet(??, ??, ??, ??) at 0x90000000b2ee85c
dbgtfPutStr(??, ??, ??) at 0x90000000b2ee1fc
dbgc_wrf(0x0, 0x90000000cfadbe8, 0x90000000cfae06c, 0x1, 0x2, 0x0, 0xb, 0x1) at 0x90000000b2e53a0
dbgePostErrorDirect(0x1103ec230, 0x90000000d054054, 0x5fe600005fe6, 0x100000000000001, 0x200000002, 0x0, 0xb, 0x1) at 0x90000000b33330c
kpeDbgSignalHandler(??, ??) at 0x90000000b984748
skgesig_sigactionHandler(??, ??, ??) at 0x90000000b918824
getenv(??) at 0x900000000010af8
is_posix_tz() at 0x90000000004aa10
localtime_tz_r(??, ??, ??) at 0x900000000049008
sLdiGetDate(??, ??, ??, ??) at 0x90000000b427ad0
kgstmComputeTranslation(??, ??, ??, ??) at 0x90000000b4269f0
kgstmRefreshTranslation(??, ??, ??, ??) at 0x90000000b426e04
dbgtfDirectWriteEpochTSGet(??, ??, ??, ??) at 0x90000000b2ee85c
dbgtfPutStr(??, ??, ??) at 0x90000000b2ee1fc
dbgc_wrfn(0xffffffffffc5f24, 0x90000000cff8d20, 0x0, 0x7f7f7f7f, 0xffffffffffc5f24, 0x203f002e, 0x30, 0xffffffffffc5f34) at 0x90000000b2e5888
kgdsdst(??, ??) at 0x90000000b4d9ccc
kgdsdstsg(??, ??, ??) at 0x90000000b4dbd10
dbgc_dmp(??, ??) at 0x90000000b2e56b8
dbgexExecuteDiagDmp(??) at 0x90000000b915020
dbgeNoInvocationMode(??, ??, ??) at 0x90000000b331298
dbgeBeginInvoke(??, ??) at 0x90000000b33113c
dbgePostErrorDirect(0x1103ec230, 0x90000000d054054, 0x5fe600005fe6, 0x100000000000001, 0x200000002, 0x0, 0xb, 0x1) at 0x90000000b332a94
kpeDbgSignalHandler(??, ??) at 0x90000000b984748
skgesig_sigactionHandler(??, ??, ??) at 0x90000000b918824
getenv(??) at 0x900000000010af8
is_posix_tz() at 0x90000000004aa10
localtime_tz_r(??, ??, ??) at 0x900000000049008
sLdiGetDate(??, ??, ??, ??) at 0x90000000b427ad0
dbgristih_init(??, ??) at 0x90000000b33853c
dbgexCreateIncident(??, ??, ??, ??, ??) at 0x90000000b90bc88
dbgexProcessError(??, ??, ??, ??) at 0x90000000b90a8cc
dbgeExecuteForError(??, ??, ??, ??, ??) at 0x90000000b332728
dbgePostErrorDirect(0x1103ec230, 0x90000000d054054, 0x5fe600005fe6, 0x100000000000001, 0x200000002, 0x0, 0xb, 0x1) at 0x90000000b332afc
kpeDbgSignalHandler(??, ??) at 0x90000000b984748
skgesig_sigactionHandler(??, ??, ??) at 0x90000000b918824
sqlglmt(??, ??, ??, ??) at 0x90000000cf847a0
sqlglm(??, ??, ??) at 0x90000000cf84664
Initialize(prog_name = warning: Unable to access address 0x2020202020202020 from core
(invalid char ptr (0x2020202020202020))), line 930 in "test.pc"
(dbx) func
_sigsetmask