Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Unknown problem, please help
Hello,
I am using Oracle 8.0.5.0.0 under Solaris 2.6. I have created a small class which has the sole purpose of connecting to the data base. This class works fine, so I believe. I have created a small test bed with five tests:
1 - connect to the DB using default UID and PWD (works fine)
2 - connect to the DB using alternate UID and PWD passed in as aguments
(works fine)
3 - connect to the DB using invalid UID/PWD (works fine handles the error
correctly)
4 - connect to the DB using alternate UID and PWD passed in as aguments
twice (works fine handles the error)
5 - connect to the DB using alternate UID and PWD passed in as aguments and
try and disconnect twice (works fine handles the error)
Each test is a seperate subroutine called from a main program. When I execute tests 1 to 3, all works fine, when test 4 executes the program core dumps with SIG 11 (segmentation violation) I have traced it and the call stack is below:
main()
test4()
DBConnection::DBConnection(this = 0x40100, uid = 0x39d88 "cissuser", pwd
= 0x39d94 "ciss")
DBConnection::connect(this = 0x40100) sqlcxt(0x0, 0x3a0f0, 0xeffff150, 0x3a0f4, 0x81010100, 0xff00) sqlcmex(0x0, 0x45798, 0xeffff150, 0x3a0f4, 0xef4682f0, 0xef48c1b0) sqlexp(0xeffff150, 0xef4682f0, 0x0, 0xef468304, 0x1b, 0x4) sqlcnt(0xef4a8310, 0xefffef80, 0xc, 0xef4682f0, 0x0, 0x4) sqllo3t(0xef4a8310, 0x4, 0xeffff1a0, 0xefffef80, 0xefffef94, 0xefffefa4) sqllam(0xef4a8310, 0xeffff22a, 0x8, 0xeffff24c, 0x4, 0x0) sqlv8c(0x0, 0x0, 0xeffff22a, 0x8, 0xeffff24c, 0x4) OCIServerAttach(0x951a0, 0x957b4, 0x0, 0x0, 0x0, 0xf8e9dacb) kpuatch(0xb1018, 0x957b4, 0x0, 0x0, 0x0, 0x9b194)
upiah0(0x95240, 0x0, 0x0, 0x0, 0x95240, 0x1000) upiini(0x9ce3c, 0x9b194, 0x952c0, 0x9be94, 0x95240, 0x0) osncon(0x0, 0x1803, 0x0, 0x1, 0x9ce48, 0x0) nigcall(0x9e618, 0xe3, 0xef49f090, 0x1803, 0x9ce3c, 0x952c0)niotns(0x0, 0x0, 0x9fdd8, 0x0, 0xa1638, 0x9ce48) nricall(0xa1638, 0x9fdd8, 0x9fdd8, 0x0, 0xef4bd9d8, 0xb0a54) nricdt(0x0, 0xefffb8e4, 0x9fdd8, 0x0, 0xa1638, 0xefffc4cc) nscall(0x9fdd8, 0x0, 0xa1638, 0x0, 0xb0a34, 0xefffc4cc) nscall1(0xb0a34, 0xb0a08, 0xefffb8f0, 0xefffb8d8, 0xefffc4cc, 0xb0a54) nsopen(0xef4a8b20, 0x0, 0x0, 0xefffc4cc, 0x9fdd8, 0xa1638) nsmal(0x0, 0x1a0, 0xef48c1b0, 0xa1638, 0x9fdd8, 0x0) calloc(0x1, 0x1a0, 0x1a0, 0xefffac24, 0xef48c1b0, 0x9fbb8) malloc(0x1a0, 0x1, 0xb0af5, 0x2c, 0xef6a3100, 0xef154f80) _malloc_unlocked(0x1a0, 0xef6a9684, 0xef6a3100, 0x48050, 0x0, 0xef6a3100) cleanfree(0x0, 0xef6a3100, 0xef6a9684, 0xef6a9704, 0xef6a9684, 0xef64684c)
realfree(0xb0cb8, 0x742b811c, 0xef6a9710, 0xef6a3100, 0xb0cb0, 0x7420746f)
It fails when I try to log in again. If I remove the third test from the main program tests 1, 2, 4, and 5 work correctly. Need to know why this occurs. Any help would be greatly appreicated...
Thanks in advance
PS I am using embeded SQL Received on Thu Oct 21 1999 - 05:39:31 CDT
![]() |
![]() |