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 -> Mutithreading with embedded SQL and C++ on a UNIX system ?

Mutithreading with embedded SQL and C++ on a UNIX system ?

From: Christofer Dutz <dutz_at_danet.de>
Date: Tue, 22 Jun 1999 11:52:04 +0200
Message-ID: <376F5CC2.F46E8AD4@danet.de>


Greetings

Can anyone help us ?
At the moment we are developing a small C++ Client who is connected to an Oracle 7.33 database and will be used as a server for several tasks for Java clients connected to the server via Inter/Intranet. Everything works fine except the Oracle stuff.
First we created a C++ base class for accessing Oracle similar to Java, but we had problems with multithreading. After that we tried to simply generate code for our current task ( no special classes with exceptions, ... ) and when runing the program we always get a segmentation foult from the Oracle libs ( below is the output our debugger ). Are we doing something wrong, or is this a known bug ? We are sort of stuck here and non of the manuals even mention multithreading, so we would appreciate any help.

thanx in advance

    Christofer Dutz
    Danet GmbH
    Germany

Stack trace :

(ladebug) WHERE
>0 0x3ff807b315c in UnknownProcedure16FromFile1(0x3ff805663f0, 0xb0ffe0003, 0x3ff80573d3c, 0x3ffc008faa8, 0x3ff807b4034, 0x3ff80574278) DebugInformationStrippedFromFile1
#1 0x3ff807b3664 in exc_unwind(0x3ff80573d3c, 0x3ffc008faa8,
0x3ff807b4034, 0x3ff80574278, 0x3ff807b3b38, 0x3ff807b3ad4) DebugInformationStrippedFromFile1
#2 0x3ff807b3b34 in __Ots_CSpecificHandler(0x3ff807b39a0, 0x140036ee8,
0x140036bb8, 0x140036650, 0x0, 0x1400368d8) DebugInformationStrippedFromFile4
#3 0x3ff807b2ab4 in UnknownProcedure12FromFile1(0x27ba3fc2,
0x123bdb8c8, 0x3ff63ff0000, 0x3ffc02100f8, 0x3ff807b2d64, 0x14003de78) DebugInformationStrippedFromFile1
#4 0x3ff807b2da0 in exc_dispatch_exception(0x14003de78, 0x0,
0x140036650, 0x0, 0x0, 0x0) DebugInformationStrippedFromFile1
#5 0x3ff807b38c4 in exc_raise_signal_exception(0x2, 0x0, 0x0, 0x1,
0x140036650, 0x0) DebugInformationStrippedFromFile3
#6 0x3ff800d3b28 in __sigtramp(0x0, 0x1, 0x140036650, 0x0, 0x140036c38,
0x0) DebugInformationStrippedFromFile105
#7 0x3ff801860e0 in UnknownProcedure4FromFile83(0x140037278,
0x1400372c0, 0x2000, 0x140037300, 0x0, 0x3ffc0090d30) DebugInformationStrippedFromFile83
#8 0x3ff80185ec4 in UnknownProcedure6FromFile83(0x100373134,
0x14000d520, 0x3ff80185574, 0x14000d7a0, 0x40, 0x140037278) DebugInformationStrippedFromFile83
#9 0x3ff8018558c in UnknownProcedure12FromFile83(0x14000fc00,
0x140032860, 0x0, 0x3ffc0090d30, 0x14000fb40, 0x35685a9f00000000) DebugInformationStrippedFromFile83
#10 0x3ff801849d4 in UnknownProcedure20FromFile83(0x2000, 0x14000fc00,
0x1000001a1, 0x140037128, 0x3ff00000004, 0x1a1) DebugInformationStrippedFromFile83
#11 0x3ff800e2588 in __siad_getpwuid(0x3ff800e10f8, 0xc, 0x140037210,
0x3ffc008a2c8, 0x3ffc00911c8, 0x14000fc00) DebugInformationStrippedFromFile83
#12 0x3ff800e10f4 in __sia_switch(0x14000fc00, 0x3ffc0080c50,
0x3ffc0082080, 0xe, 0x3ff800e2530, 0x3ffc0091228) DebugInformationStrippedFromFile24
#13 0x3ff800e47f8 in __sia_getpasswd(0x1400372b8, 0x1400392d8,
0x14001a440, 0x0, 0x140039550, 0x0) DebugInformationStrippedFromFile82
#14 0x3ff8013468c in __getpwuid_r(0x3ff801345d0, 0x14000fc00, 0x1a1,
0x140037278, 0x1400372c0, 0x2000) DebugInformationStrippedFromFile599
#15 0x3ff801345cc in __Pgetpwuid_r(0x1400372c0, 0x2000, 0x3ff8016e930,
0x1400392d8, 0x1, 0x0) DebugInformationStrippedFromFile599
#16 0x3ff8016e92c in __cuserid(0x3ffbfd69da0, 0x3fffffe6460, 0x0,
0x140039550, 0xe, 0x14001a450) DebugInformationStrippedFromFile342
#17 0x3ffbff78b58 in sepcoget_login()

/m/otrace/src/server/osds/src/sepco.c:309
#18 0x3ffbff72f34 in epc_init()

/m/otrace/src/server/epc/src/epcinit.c:482
#19 0x3ffbfdebd7c in nldtotinit() network/src/nl/nl1/nldtot.c:251
#20 0x3ffbfe525bc in nlstddt_do_alter_trace(gbl=0x3ffffff4a80,
attrs=0x14003aa30, iattrs=0x140039fc8) network/src/nl/nl1/nlstdgo.c:1695

#21 0x3ffbfe50a98 in nlstdgg(gbl=0x14003b240, attrs=0x14003aa30,
ebuf=0x14003a730="", ebufsiz=256, actesiz=0x14003a718) network/src/nl/nl1/nlstdgo.c:409
#22 0x3ffbfe073b4 in osnqig1() network/src/osntns/osnqig.c:234
#23 0x3ffbfdeb034 in osncon() osncon.c:382
#24 0x3ffbfdce9ec in upiini()

/m/rdbms/src/client/progint/upi/upiprv.c:892
#25 0x3ffbfdc836c in upiah0()

/m/rdbms/src/client/progint/upi/upicdc.c:134
#26 0x3ffbfdc83e4 in upiahm()

/m/rdbms/src/client/progint/upi/upicdc.c:185
#27 0x3ffbfdadd54 in sqllam() /m/precomp/src/sqllib/sqllam.c:277
#28 0x3ffbfdae190 in sqllo3t() /m/precomp/src/sqllib/sqllo3.c:145
#29 0x3ffbfda0464 in sqlcnt() /m/precomp/src/sqllib/sqlexp.c:341
#30 0x3ffbfda1494 in sqlexp() /m/precomp/src/sqllib/sqlexp.c:707
#31 0x3ffbfd9695c in sqlcmex() /m/precomp/src/sqllib/sqlent.c:209
#32 0x3ffbfd96f74 in sqlcxt() /m/precomp/src/sqllib/sqlent.c:453
#33 0x1200023c4 in ((DBWrite*)0x14001a800)->connectToDB() DBWrite.cc:182

#34 0x1200022c4 in ((DBWrite*)0x14001a800)->run() DBWrite.cc:144
#35 0x120002004 in DAThread::cToCcConverter(args=0x14001a800)
DAThread.hh:18
#36 0x3ff80574274 in thdBase(0x0, 0x0, 0x0, 0x1, 0x45586732, 0x3)
DebugInformationStrippedFromFile101
(ladebug) Received on Tue Jun 22 1999 - 04:52:04 CDT

Original text of this message

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