Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Can't connect from C program (on AIX)

Re: Can't connect from C program (on AIX)

From: Mike Lacey <lacey_michael_j/swby_at_swby.cgo.Cargill.Com>
Date: Wed, 10 Jun 1998 10:15:08 +0100
Message-ID: <6llir2$hle@wind.cargill.com>


Gonzalo,

Looking at the stack trace the last thing your program did was a call to osnsui (with su standing for SetUserId I'll bet), above that is the result that follows a signal.

I would bet that your compilation is either:

  1. Linking an innapropriate library routine.
  2. Linking a corrupted library routine.

Can I suggest that:

  1. You try and make one of the example Proc*C programs using the supplied Makefile
  2. If that doesn't work - Reinstall Pro*C

Let me know how you get on.

Regards

Mike
--
Mike Lacey, Cargill PLC
United Kingdom

Gonzalo A. Diethelm wrote in message <357781aa.0_at_news1.ibm.net>...
>I can't even connect from a C program to an Oracle database under AIX; I
get
>a segmentation fault as soon as the EXEC CONNECT is executed.
> ..
>Segmentation fault in reset_pthread_kill at 0xd03d4628
>0xd03d4628 (reset_pthread_kill+0x38) 7ca6192e stwx r5,r6,r3
>(dbx) t
>reset_pthread_kill(??) at 0xd03d4628
>sigaction(??, ??, ??) at 0xd03d5358
>signal.signal(??, ??) at 0xd02d5518
>osnsui(??, ??, ??) at 0xd0634dd8
>osntns1(??, ??, ??, ??, ??, ??, ??, ??) at 0xd06328c4
>osncon(0x0, 0xe9, 0x1803, 0x20009e0c, 0xf0373e10, 0xf0373e08, 0xf0373dec,
>0xf0373e30) at 0xd05c351c
>upiini(??, ??, ??, ??) at 0xd0502ba0
>upiah0(??, ??, ??, ??) at 0xd051a2ec
>sqllam(??, ??, ??, ??, ??, ??, ??, ??) at 0xd066ceb8
>sqllo3t(??, ??, ??, ??, ??, ??, ??, ??) at 0xd066ca44
>sqlcnt(??, ??, ??) at 0xd066b3e0
>sqlexp(??, ??, ??, ??) at 0xd066bcf8
>sqlcmex(??, ??, ??, ??, ??) at 0xd0673c00
>sqlcxt(??, ??, ??, ??) at 0xd06741a0
>unnamed block $b1, line 272 in "sample.c"
>main(), line 272 in "sample.c"
>(dbx) q
>== End of stack trace ==============================================
Received on Wed Jun 10 1998 - 04:15:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US