IBM Support

JR28154: INSTANCE CRASH DURING BINARY SORT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Instance crash during binary sort.
    
    Within a function which handles the decimal sort key,
    the size of the packed decimal value is not correctly handled.
    We're over-reading the data from the input insert-buffer by 1
    extra byte. This can cause traps or violations when this last
    byte happens to fall right at the end of the insert-buffer
    allotted memory.
    
    The stack seen with this problem (only the top of the stack is
    shown):
    00000032 in <?LOAD_BINARY_WORD@@YAKPAEH@Z> <sqlsbsort.h:496>
    <?bsortPadBlanks>
    <sqlsgetfirstpkey.C:2364>
    <?bsortGetFirstPartialKey>
    <?bsortGetFirstPartialKey> <sqlsgetfirstpkey.C:553>
    <?qlsBinSort> <sqlsbsort.C:570>
    <?sqlsUseBinSort>
    

Local fix

  • A workaround is to use the DB2_BINSORT registry variable to
    disable binary sorts, as follows:
    
    - db2set DB2_BINSORT=NO
    - db2stop
    - db2start
    

Problem summary

  • Users Affected: ALL
    
    Problem Description:
    
    Instance crash during binary sort.
    
    The stack seen with this problem (only the top of the stack is
    shown):
    00000032 in <?LOAD_BINARY_WORD@@YAKPAEH@Z> <sqlsbsort.h:496>
    <?bsortPadBlanks>
    <sqlsgetfirstpkey.C:2364>
    <?bsortGetFirstPartialKey>
    <?bsortGetFirstPartialKey> <sqlsgetfirstpkey.C:553>
    <?qlsBinSort> <sqlsbsort.C:570>
    <?sqlsUseBinSort>
    
    Problem Summary:
    
    Within a function which handles the decimal sort key,
    the size of the packed decimal value is not correctly handled.
    We're over-reading the data from the input insert-buffer by 1
    extra byte. This can cause traps or violations when this last
    byte happens to fall right at the end of the insert-buffer
    allotted memory.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, FixPak 1
    

Temporary fix

  • see LOCAL FIX
    

Comments

APAR Information

  • APAR number

    JR28154

  • Reported component name

    DB2 UDB WSE WIN

  • Reported component ID

    5765F3501

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-12-20

  • Closed date

    2008-05-05

  • Last modified date

    2008-05-05

  • APAR is sysrouted FROM one or more of the following:

    JR26935

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • Sort     sqls
    

Fix information

  • Fixed component name

    DB2 UDB WSE WIN

  • Fixed component ID

    5765F3501

Applicable component levels

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
05 May 2008