Learner001
asked on
AIX gcc compiled and linked OCILIB demo application gives segmenation fault when I run it
I have installed the library OCILIB successfully by running ( configure, make, make install) on
AIX 5.3. for the OCI lib I am using the client library for 10g client.
@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@@
This is my env:
_=/usr/bin/env
LANG=en_US
LOGIN=10gc
PATH=/m20/OraHome_1/bin:/u sr/bin:/et c:/usr/sbi n:/usr/ucb :/m20/bin: /usr/bin/X 11:/
sbin:.
LC__FASTMSG=true
LOGNAME=10gc
MAIL=/usr/spool/mail/10gc
LOCPATH=/usr/lib/nls/loc
USER=10gc
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/m20
TERM=vt100
MAILMSG=[YOU HAVE NEW MAIL]
ORACLE_HOME=/m20/OraHome_1
PWD=/patches/ocilib/ocilib -2.5.1/dem o
TZ=SAUST-3
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/% L/%N:/usr/ lib/nls/ms g/%L/%N.ca t
LIBPATH=/m20/OraHome_1/lib 32
Trying to run the demo application of OCILIB which is at site
http://vicenzo.developpez.com/ocilib/doc/html/group__g__demo.html
gives segmentation fault error.
@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ @@
Here is the gdb output when I tried to debug :
$ gdb ocilib_demo core
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0".. .
(no debugging symbols found)...
Core was generated by `ocilib_demo'.
Program terminated with signal 11, Segmentation fault.
#0 0xd41e0754 in OCIEnvCreate ()
from /usr/local/lib/libocilib.a (libocilib .so.2)
(gdb) bt
#0 0xd41e0754 in OCIEnvCreate ()
from /usr/local/lib/libocilib.a (libocilib .so.2)
#1 0xd41f43a8 in OCI_Initialize (
err_handler=@0x20000d00: 0x100004a0 <err_handler>, home=0x2 "", mode=2)
at ocilib.c:3144
#2 0x10000624 in main ()
Makefile-demo.txt
AIX 5.3. for the OCI lib I am using the client library for 10g client.
@@@@@@@@@@@@@@@@@@@@@@@@@@
This is my env:
_=/usr/bin/env
LANG=en_US
LOGIN=10gc
PATH=/m20/OraHome_1/bin:/u
sbin:.
LC__FASTMSG=true
LOGNAME=10gc
MAIL=/usr/spool/mail/10gc
LOCPATH=/usr/lib/nls/loc
USER=10gc
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/m20
TERM=vt100
MAILMSG=[YOU HAVE NEW MAIL]
ORACLE_HOME=/m20/OraHome_1
PWD=/patches/ocilib/ocilib
TZ=SAUST-3
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/%
LIBPATH=/m20/OraHome_1/lib
Trying to run the demo application of OCILIB which is at site
http://vicenzo.developpez.com/ocilib/doc/html/group__g__demo.html
gives segmentation fault error.
@@@@@@@@@@@@@@@@@@@@@@@@@@
Here is the gdb output when I tried to debug :
$ gdb ocilib_demo core
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0"..
(no debugging symbols found)...
Core was generated by `ocilib_demo'.
Program terminated with signal 11, Segmentation fault.
#0 0xd41e0754 in OCIEnvCreate ()
from /usr/local/lib/libocilib.a
(gdb) bt
#0 0xd41e0754 in OCIEnvCreate ()
from /usr/local/lib/libocilib.a
#1 0xd41f43a8 in OCI_Initialize (
err_handler=@0x20000d00: 0x100004a0 <err_handler>, home=0x2 "", mode=2)
at ocilib.c:3144
#2 0x10000624 in main ()
Makefile-demo.txt
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.