OCI program with SIGCHLD signal handler crashes libclntsh.so
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
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:
0