![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
HI all, I have been trying to program sybase ct-libraries for solaris in a multithreaded environment. But whenever I try to run this program i get a core dump. Can anyone help me to find some examples or documents of how to program ct-libraries under POSIX thread environment or for native threads. I have been using "one thread one connection" model to keep it simple. Does anyone know why this problem occurs. I have complied the file using the following options. [PYTHON:sybaseiq:/export/home/sybaseiq/amol/amol/multhrdmyprog]gcc -g usingquery.c -o usingquery -I /export/home/sybaseiq/ociq-12_0/include -L /export/home/sybaseiq/ociq-12_0/lib -lpthread -lcs -lct -lcomn -lsybdb -ltcl --D_REENTRANT -D_THREAD_SAFE |
#3
| |||
| |||
|
|
HI all, I have been trying to program sybase ct-libraries for solaris in a multithreaded environment. But whenever I try to run this program i get a core dump. Can anyone help me to find some examples or documents of how to program ct-libraries under POSIX thread environment or for native threads. I have been using "one thread one connection" model to keep it simple. Does anyone know why this problem occurs. I have complied the file using the following options. [PYTHON:sybaseiq:/export/home/sybaseiq/amol/amol/multhrdmyprog]gcc -g usingquery.c -o usingquery -I /export/home/sybaseiq/ociq-12_0/include -L /export/home/sybaseiq/ociq-12_0/lib -lpthread -lcs -lct -lcomn -lsybdb -ltcl --D_REENTRANT -D_THREAD_SAFE The stack trace that is generated from the core is given below.. [PYTHON:sybaseiq:/export/home/sybaseiq/amol/amol/multhrdmyprog]gdb ./usingquery core Core was generated by `./usingquery'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libpthread.so.1...done. Loaded symbols for /usr/lib/libpthread.so.1 Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/libcs.so...done. Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libcs.so Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/libct.so...done. Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libct.so Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/libcomn.so...done. Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libcomn.so Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/libsybdb.so...done. Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libsybdb.so Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/libtcl.so...done. Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libtcl.so Reading symbols from /usr/lib/libthread.so.1...done. Loaded symbols for /usr/lib/libthread.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 Reading symbols from /usr/lib/libsocket.so.1...done. Loaded symbols for /usr/lib/libsocket.so.1 Reading symbols from /usr/lib/libdl.so.1...done. Loaded symbols for /usr/lib/libdl.so.1 Reading symbols from /usr/lib/libnsl.so.1...done. Loaded symbols for /usr/lib/libnsl.so.1 Reading symbols from /usr/lib/libmp.so.2...done. Loaded symbols for /usr/lib/libmp.so.2 Reading symbols from /usr/platform/SUNW,Ultra-80/lib/libc_p Loaded symbols for /usr/platform/SUNW,Ultra-80/lib/libc_psr Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/li Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libi Reading symbols from /export/home/sybaseiq/ociq-12_0/lib/li Loaded symbols for /export/home/sybaseiq/ociq-12_0/lib/libt ---Type <return> to continue, or q <return> to quit--- #0 0xff0deb24 in netp_checkextfds () from /export/home/syb ((gdb) where #0 0xff0deb24 in netp_checkextfds () from /export/home/syb #1 0xff0dbd78 in netp_callback_poll () from /export/home/s #2 0xff0d13c4 in syb_net_callback () from /export/home/syb (gdb) Waiting eagerly for your reply Regards, Amol |
![]() |
| Thread Tools | |
| Display Modes | |
| |