Trouble with Informix 7.3 on Solaris and CLI 2.5
Posted in 1999
Topics: Connectivity: ODBC / JDBC / .NET, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
Hello.
I try to write un C program to connect directly to my Informix 7.3 server.
Both the database server and my application run on Sun Solaris 2.5.3.
I use CLI 2.5 API instead of ESQL/C to have the portability with Odbc.
I have got a problem with the SQLDisconnect API. My program is waiting on
something with no timeout. I see it with Gdb.
This the report of onstat - u :
--------------------------------------
informix:onstat -u
Informix Dynamic Server Version 7.30.UC3 -- On-Line -- Up 02:36:27 -- 4640
Kbytes
Userthreads
address flags sessid user tty wait tout locks nreads
nwrites
a1c8018 ---P--D 1 informix - 0 0 0 13 5
a1c84cc ---P--F 0 informix - 0 0 0 0 2
a1c8980 ---P--- 6 informix - 0 0 0 0 0
a1c8e34 ---P--B 7 informix - 0 0 0 0 0
a1c979c Y--P--- 15 informix 5 a2db528 0 1 0 0
a1c9c50 ---P--D 10 informix - 0 0 0 0 0
6 active, 128 total, 9 maximum concurrent
This is the report of gdb :
----------------------------------
(gdb) where
#0 0xef4f81a0 in _syscall ()
#1 0xef6ff7f0 in buf_wait ()
#2 0xef6fef90 in recvshm ()
#3 0xef710e54 in slSQIrecv ()
#4 0xef70b268 in pfRecv ()
#5 0xef6eb02c in asfRecv ()
#6 0xef6ed550 in ASF_Call ()
#7 0xef722a34 in asf_recv ()
#8 0xef722b6c in _iread ()
#9 0xef72179c in _igetint ()
#10 0xef6cff54 in _OdbcDisconnect ()
#11 0xef6b621c in _OdbcSqlDisconnect ()
#12 0xef6b616c in SQLDisconnect ()
#13 0x137338 in KslInfDeconnecter () at
/KSLNFS31/dev//ksll4g/source//kslinf/kslinf1.c:286
#14 0x136dec in KslInfTerminer () at >
/KSLNFS31/dev//ksll4g/source//kslinf/kslinf1.c:167
#15 0x129d84 in KslInfL4GTerminer (C1=0x0, C2=0x0, C3=0x0) at
/KSLNFS31/dev//ksll4g/source//kslinf/kslinf3.c:111
#16 0x276b4 in TerminerModules () at
/KSLNFS31/dev//ksll4g/source//commun/commun1.c:1946
#17 0x27c18 in ComTerminer () at
/KSLNFS31/dev//ksll4g/source//commun/commun1.c:2048
---Type <return> to continue, or q <return> to quit---
Thanks for your help.
DUVAL Jean-Pierre, Ksl Product Manager. duval@kallisto.net