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 -> PThreads/Oracle/OCI/Solaris/G++

PThreads/Oracle/OCI/Solaris/G++

From: <faceman28208_at_yahoo.com>
Date: 26 Jan 2007 10:27:00 -0800
Message-ID: <1169836020.455318.10210@a75g2000cwd.googlegroups.com>


I am working on an application using G++, PTHREADS and OCI on Solaris. The only direct dynamic memory callls in the application new and deletes of the thread objects themselves.

After a thread completes its task, the startup function deletes it.

The application crashes consistently either in a thread constructor or a thread destructor and it always crashes while executing an OCI call.

_malloc_unlocked
t_splay/t_delete/realfree

Usually in an OCIServerDetach or while allocating a handle.

The OCICreateEnvironment has OCI_THREADED as its second parameter (all after null).

The link options are

-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -lnsl -lpthread
-lposix4 -lclntsh -lsocket

What have I omitted to get this running correctly? I suspect the problem is build related.

Thanks

BG Received on Fri Jan 26 2007 - 12:27:00 CST

Original text of this message

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