IBM Support

DB2 Instance may crash on AIX 6.1 by private memory corruption

Troubleshooting


Problem

DB2 instance Crash by private memory corruption on all DB2 versions prior to DB2 Version 10.1 on AIX 6.1

Cause

We have known APAR on AIX which may cause DB2 Instance crash if we are running DB2 versions prior to DB2 Version 10.1 on AIX 6.1.0.0.

APAR IV22982 APPLICATION CAN CRASH WHEN UNLOADING / RELOADING A LIBRARY APPLIES TO AIX 6100-06

This AIX APAR addresses a problem causing private memory corruption on all DB2 versions prior to DB2 Version 10.1.
Only systems running AIX 6.1 TL06 SP8, TL07 SP4, or AIX 7.1 TL01 SP4 are vulnerable.


Environment

DB2 V9.1,v9.5 & V9.7
AIX 6.1 TL06 SP8, TL07 SP4, or AIX 7.1 TL01 SP4

Diagnosing The Problem

Following are few example of Stack we noticed when DB2 Instance crashed by this APAR.

<StackTrace>
-------Frame------ ------Function + Offset------
0x0900000000099A8C malloc_y + 0x70C
0x0900000000010748 malloc_common@AF102_86 + 0x28
0x09000000000104D4 malloc + 0xD4
0x09000000001846C0 register_attribute + 0x320
0x0900000000183B70 lookup_attribute + 0x190
0x09000000000B40E4 method_getentry + 0x11A4
0x09000000000C8F7C __method_getentry_v2 + 0xBC
0x09000000000F4C04 process_module + 0x1A4


<StackTrace>
-------Frame------ ------Function + Offset------
0x0900000000099988 malloc_y + 0x608
0x0900000000010748 malloc_common@AF102_86 + 0x28
0x09000000000104D4 malloc + 0xD4
0x0900000000190C3C method_getgrusers + 0x61C
0x0900000000190104 method_getgr_common + 0x1E4
0x090000000019150C method_getgrgid + 0x8C
0x0900000000173B6C _getgrgid_r + 0x5EC


<StackTrace>
-------Frame------ ------Function + Offset------
0x0900000000096A44 splint + 0x224
0x0900000000099960 malloc_y + 0x5E0
0x0900000000010748 malloc_common@AF102_86 + 0x28
0x090000000049F474 _lib_spinlock_create + 0xB4
0x0900000000011874 _rec_mutex_init@AF19_14 + 0x34
0x0900000000011678 _rec_mutex_alloc + 0x38
0x0900000000103B10 opendir + 0x1D0

Resolving The Problem

Interim fix are available from IBM AIX support:
AIX 6.1 TL06 SP8 ftp://public.dhe.ibm.com/aix/efixes/iv22982

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Operating System \/ Hardware - Memory Management","Platform":[{"code":"PF002","label":"AIX"}],"Version":"9.7;9.5;9.1","Edition":"Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Workgroup Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21990988