DB2 - Problem description
Problem IC62126 | Status: Closed |
Multi-threaded non-Java application either crashes or has code page conversion issues such as truncation of data | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
A multi-threaded non-Java application, or a Java application using the legacy JDBC type 2 driver, may crash or hang with an access violation error (for example, C0000005 exception on Windows). This can also report a code page conversion problem (such as data truncation) when connecting or processing the data sent by the server. Another symptom of this problem would be incorrect code page conversion with no errors reported. The problem occurs because the code page conversion cache is not used in a thread safe way. An example of a failing stack due to an access violation is the following: Component Prog ID: 1[ODBC][Env 3851978] Method Name: IDispenserDriver::CreateResource Process Name: DataSvrRemote.Net.exe Exception: C0000005 Address: 0x03BEF6F8 Call Stack: DB2G11N!sqlnlsschr + 0x8b4 DB2G11N!sqlnlscpcv + 0x2101 DB2G11N!sqlnlscpcv + 0xa09 DB2G11N!sqlnlscpcv + 0x3b0 DB2SYS!sqlocpcv + 0xa5 DB2APP!CLI_utlGetBindFiles + 0x27c DB2APP!CLI_utlGetBindFiles + 0x246c DB2APP!SQLGetInfo + 0x53a DB2APP!SQLGetInfoW@20 + 0x4eb odbc32!SQLRowCount + 0xd0c odbc32!SQLRowCount + 0xe27 odbc32!SQLConnectA + 0x1006 comsvcs!DispManGetContext + 0x9eb comsvcs!DispManGetContext + 0x1f41 odbc32!SQLConnectA + 0x1813 odbc32!SQLConnectA + 0x1976 odbc32!SQLConnectA + 0x2882 odbc32!SQLSetEnvAttr + 0x2f1d + 0x37b05af + 0x865e4d + 0x865bb An example of data truncation error during connect is when the .Net provider encounters multiple CLI0106E "connection closed" errors due to code page conversion problems when converting the connection string. The following error may also be observed: [IM001] [Microsoft][ODBC Driver Manager] Driver does not support this function. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * DB2 LUW v9.7 * **************************************************************** * PROBLEM DESCRIPTION: * * Multi-threaded non-Java application either crashes or * * hascodepage conversion issues such as truncation of data * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 LUW v9.7 Fixpak 2 * **************************************************************** | |
Local Fix: | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 LUW v9.7 Fixpak 2 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 20.07.2009 31.05.2010 31.05.2010 |
Problem solved at the following versions (IBM BugInfos) | |
9.7. | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.2 |