I have a program on AIX that uses CLI calls to make database connections
and retrieve data from the database. It is crashing when trying to make
a connection to the database (in SQLConnectW call). The stack trace is given below.
We use the VisualAgeC++ compiler version 5 to build on AIX and do NOT use any optimization flags. The program does used pthreads. One thing is that I have seen this happening so far on systems where the DB2 client and server are on the same AIX machine but at the same time cannot conclusively state that it never happens when the DB2 client and server are on different machines (currently investigating this).

Has anyone seen this issue before ? Any clues as to what could be wrong ?

Thanks !

Segmentation fault in sqlowque at 0xdf5e41c0 ($t4)
0xdf5e41c0 (sqlowque+0x1c) 7c21616e stwux r1,r1,r12
(dbx) where
sqlowque(??, ??, ??) at 0xdf5e41c0
sqlccipcconnr__FP13sqlcc_connectP15sqlcc_comhandle P10sqlcc_cond(??, ??, ??) at 0xdf625e40
sqlogmshr3[2] [fdpr](??, ??, ??) at 0xdf62d2fc
sqle_db2ra_ar_connatt__FP10sqle_db2raP17sqle_ar_in terface(??, ??) at 0xdf640ef8
sqle_db2ra_ar_driver__FP10sqle_db2raP17sqle_ar_int erface[5] [fdpr](??, ??) at 0xdf5bad2c
sqle_database_connect__FP10sqle_db2raP10sqler_glob[1] [fdpr](??, ??) at 0xdf5ecae4
sqleriar__FP10sqle_db2ra(??) at 0xdf5c3678
sqleStartUsingDatabase__FPcciT2N31P10sqlf_dbcfdT1P 8sqledscbP5sqlcaT1T3[1] [fdpr](0x20fbd434, 0x53000053, 0x1, 0x0, 0x22b339d8, 0x20fbd534, 0x0, 0x0) at 0xdf60ec04
sqlak_connect__FUsT1[4] [fdpr](??, ??) at 0xdf6eb380
sqlacall[3] [fdpr](0x1d001d, 0x50005, 0x20002, 0x0, 0x0) at 0xdf5c8a1c
clp_connect__FP15CLI_CONNECTINFOP15sqla_program_id UsPcN34P5sqlca(??, ??, ??, ??, ??, ??, ??, ??) at 0xdf8771e8
CLI_sqlConnect__FP15CLI_CONNECTINFOP5sqlcaP15CLI_E RRLISTINFO(??, ??, ??) at 0xdf77561c
SQLConnect2__FPP15CLI_CONNECTINFOPUcsT2T3T2T3T2T3U c(??, ??, ??, ??, ??, ??, ??, ??) at 0xdf71ff70
SQLDriverConnect2__FPP15CLI_CONNECTINFOPvPUcsT3T4P sUsUcT9P15CLI_ERRLISTINFO(??, ??, ??, ??, ??, ??, ??, ??) at 0xdf7255a0
SQLConnect1__FPP15CLI_CONNECTINFOPUcsT2T3T2T3(??, ??, ??, ??, ??, ??, ??) at 0xdf71e324
SQLConnectW(??, ??, ??, ??, ??, ??, ??) at 0xdf824ce8