Re: segmentation fault in olog () of oci7 on Linux/Oracle client 11g R2
From: joel garry <joel-garry_at_home.com>
Date: Wed, 14 Sep 2011 09:09:51 -0700 (PDT)
Message-ID: <f0284a4e-7843-48a7-8322-004c818609dc_at_r8g2000prd.googlegroups.com>
On Sep 14, 12:21 am, monty <manishgandh..._at_gmail.com> wrote:
> Hello everyone,
>
> I am facing a very strange problem in one of our Linux (5.3) environment. It has a oracle 11g R2 client installed. I have a simple C++ program which uses olog() oci function to connect to a remote database using the client. when I execute the program it gives a segmentation fault on olog() function, below is the error stack:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00002aaaaf00eae2 in kpuhhalp () from /oracle/112/lib/libclntsh.so.11.1
>
> 0x00002aaaaf00eae2 in kpuhhalp () from /oracle/112/lib/libclntsh.so.11.1
> #1 0x00002aaaaf04d3a5 in kpuadef () from /oracle/112/lib/libclntsh.so.11.1
> #2 0x00002aaaaf02d9fb in upiini () from /oracle/112/lib/libclntsh.so.11.1
> #3 0x00002aaaaf02756e in upiah0 () from /oracle/112/lib/libclntsh.so.11.1
> #4 0x00002aaaaf027534 in upiahm () from /oracle/112/lib/libclntsh.so.11.1
> #5 0x00002aaaaf0a22ed in upilgni () from /oracle/112/lib/libclntsh.so.11.1
> #6 0x00002aaaaf0a2130 in upilgn () from /oracle/112/lib/libclntsh.so.11.1
> #7 0x00002aaaafbd4f16 in upilogc () from /oracle/112/lib/libclntsh.so.11.1
> #8 0x00002aaaafbd5092 in upilog () from /oracle/112/lib/libclntsh.so.11.1
> #9 0x00002aaaaf9c0761 in ocilog () from /oracle/112/lib/libclntsh.so.11.1
> #10 0x00002aaaafacdd47 in olog () from /oracle/112/lib/libclntsh.so.11.1
>
> But on the other hand when I use OCILogon() function of OCI8 under same conditions it goes fine.
>
> I am not able to think on whether this is a problem due to incorrect/incomplete installation of oracle client, or some thing else. Just to confirm I have re-installed the oracle 11g client but even then problem exists.
>
> Please help me in resolving this.
>
> Thanks,
> Manish
Date: Wed, 14 Sep 2011 09:09:51 -0700 (PDT)
Message-ID: <f0284a4e-7843-48a7-8322-004c818609dc_at_r8g2000prd.googlegroups.com>
On Sep 14, 12:21 am, monty <manishgandh..._at_gmail.com> wrote:
> Hello everyone,
>
> I am facing a very strange problem in one of our Linux (5.3) environment. It has a oracle 11g R2 client installed. I have a simple C++ program which uses olog() oci function to connect to a remote database using the client. when I execute the program it gives a segmentation fault on olog() function, below is the error stack:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00002aaaaf00eae2 in kpuhhalp () from /oracle/112/lib/libclntsh.so.11.1
>
> 0x00002aaaaf00eae2 in kpuhhalp () from /oracle/112/lib/libclntsh.so.11.1
> #1 0x00002aaaaf04d3a5 in kpuadef () from /oracle/112/lib/libclntsh.so.11.1
> #2 0x00002aaaaf02d9fb in upiini () from /oracle/112/lib/libclntsh.so.11.1
> #3 0x00002aaaaf02756e in upiah0 () from /oracle/112/lib/libclntsh.so.11.1
> #4 0x00002aaaaf027534 in upiahm () from /oracle/112/lib/libclntsh.so.11.1
> #5 0x00002aaaaf0a22ed in upilgni () from /oracle/112/lib/libclntsh.so.11.1
> #6 0x00002aaaaf0a2130 in upilgn () from /oracle/112/lib/libclntsh.so.11.1
> #7 0x00002aaaafbd4f16 in upilogc () from /oracle/112/lib/libclntsh.so.11.1
> #8 0x00002aaaafbd5092 in upilog () from /oracle/112/lib/libclntsh.so.11.1
> #9 0x00002aaaaf9c0761 in ocilog () from /oracle/112/lib/libclntsh.so.11.1
> #10 0x00002aaaafacdd47 in olog () from /oracle/112/lib/libclntsh.so.11.1
>
> But on the other hand when I use OCILogon() function of OCI8 under same conditions it goes fine.
>
> I am not able to think on whether this is a problem due to incorrect/incomplete installation of oracle client, or some thing else. Just to confirm I have re-installed the oracle 11g client but even then problem exists.
>
> Please help me in resolving this.
>
> Thanks,
> Manish
Been way too many years and versions since I dealt with this sort of thing, but I'd guess you have either an include statement with a typo in your program, or somehow you are setting off something that isn't found in older versions, perhaps a sqlnet.ora issue. Maybe sqlnet tracing could help.
jg
-- _at_home.com is bogus. Give a man a fish and you've fed him for a day. Teach a man to fish and you have an apex problem. http://www.signonsandiego.com/news/2011/jul/14/feds-say-pacific-bluefin-tuna-overfished/Received on Wed Sep 14 2011 - 11:09:51 CDT