Informix - Problem description
| Problem IT09044 | Status: Closed |
CHAR[INDEX] ARRAY ASSIGNMENT INTO GLOBAL VARIABLE CAN CAUSE MEMORY CORRUPTION ASSERTION FAILURE | |
| product: | |
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10 | |
| Problem description: | |
Consider the following rowtype:
create row type "informix".row_wh_costos
(
cod_emp decimal(8,0),
cod_pto decimal(4,0),
int_art char(15),
ean_art decimal(14,0),
ean_rel decimal(14,0),
fec_mov date,
num_sec decimal(2,0),
costo decimal(9,4),
reg_mov decimal(12,0),
ord_mov decimal(8,0),
usr_grb char(20),
fec_grb date,
hor_grb char(8)
);
and a global variable definition in a stored procedure like:
DEFINE GLOBAL p_wh_costos row_wh_costos DEFAULT NULL;
After initializing the global variable, an assignment like this
can cause memory corruption:
let p_wh_costos.usr_grb[20] ="X";
The top most part of the stack upon assertion failure looks
like:
(oninit)afsig_handler
(oninit)stcmpr
getglobdata <---
(oninit)getvardata
(oninit)ev_procvar_ret
(oninit)new_eval
as a global variable entry in the session's global variable list
has been corrupted by the assignment. | |
| Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Those using subscripted global variables in SPLs * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Update to IBM Informix Server 12.10.xC6 * **************************************************************** | |
| Local Fix: | |
| Solution | |
Problem Fixed In IBM Informix Server 12.10.xC6 | |
| Workaround | |
not known / see Local fix | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 21.05.2015 30.12.2015 30.12.2015 |
| Problem solved at the following versions (IBM BugInfos) | |
12.10.xC6 | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 12.10.xC6 |
|