Informix - Problem description
Problem IT10802 | Status: Closed |
CDR CHECK REPLICATE CAN SEGV CALLING MEMMOVE FROM _IQUPDTARGS | |
product: | |
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10 | |
Problem description: | |
The cdr check replicate command can cause segv in cdr with the following stack which was observed running 12.10UC5W1 on linux x86_64: Program received signal SIGSEGV, Segmentation fault. 0x006edb75 in memmove () from /lib/libc.so.6 (gdb) where #0 in memmove () from /lib/libc.so.6 #1 in _iqupdtargs () #2 in __slct () #3 in _sqexecinto () #4 in sqli_exec_tcb () #5 in sqli_exec () #6 in execStmt () #7 in getVerboseRow () #8 in recheckRows () #9 in compareRepl () #10 in checkRepl () #11 in ?? () #12 in ?? () #13 in sqli_exec_tcb () | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ESQL/C Application overiding BOOL Column with CFIXCHARTYPE * * while fetching data. * **************************************************************** * PROBLEM DESCRIPTION: * * Singleton select that has BOOL column as user but requested * * to read as CFIXCHARTYPE causes access violation. * * * * For example : * * exec sql create table t1(c1 char(10) primary key, * * c2 boolean default 'F' not null, c3 lvarchar(10)); * * * * * * char sel_sql[256] = * * "select t.c1, t.c2, t.c3 from t1 t where c1=4"; * * * * * * EXEC SQL prepare prep_stmt from :sel_sql; * * EXEC SQL describe prep_stmt into pSqlda; * * * * for(i=0; i<pSqlda->sqld; i++) * * { * * struct sqlvar_struct *col = * * &(pSqlda->sqlvar[i]); * * if( (col->sqltype & SQLTYPE) == SQLBOOL) * * { * * col->sqltype = CFIXCHARTYPE; * * col->sqllen = 1; * * } * * } * * * * EXEC SQL execute prep_stmt INTO DESCRIPTOR pSqlda; * **************************************************************** * RECOMMENDATION: * * The problem has been fixed with CSDK 4.10.xC6 (IDS * * 12.10.xC6). * * Please upgrade CSDK to this version or higher. * **************************************************************** | |
Local Fix: | |
Solution | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 20.08.2015 30.12.2015 30.12.2015 |
Problem solved at the following versions (IBM BugInfos) | |
12.10.xC6, 4.10.xC6 | |
Problem solved according to the fixlist(s) of the following version(s) | |
4.10.xC5 | |
4.10.xC6 |