Precompilers and OCI (MOSC)

MOSC Banner

OCI program with SIGCHLD signal handler crashes libclntsh.so

edited Jan 16, 2010 5:46AM in Precompilers and OCI (MOSC) 5 commentsAnswered
Hello,

I wrote a little OCI test program, setting a SIGCHLD signal handler and calling OCIEnvCreate().

When running the program in a loop, from time to time libclntsh.so crashes...

If you remove the signal handler, it works fine.

Is this expected?
What is not legal in this sample code?

Tested on AIX 5.3, with Oracle 11.1.0.7.0...
Seems that the problem does not occur with Oracle 11.1.0.6.0 ...

Thanks
Seb

/* Simple OCI initialization test when usin SIGCHLD signal handler.
   Tested on AIX 5.3, with Oracle 11.1.0.7.0
   To compile the program:
        xlc -q64 -bdynamic -brtl -bnoipath -blibpath:/usr/lib:/lib -o ocitest6-main.bin ocitest6-main.c -I$ORACLE_HOME/rdbms/public -L$ORACLE_HOME/lib -lclntsh -lpthreads -ldl
   If you execute this program rapidely in a loop, you get sometimes a crash in OCIEnvCreate().
   Shell example to run the program in loop:
		
		

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center