IBM Support

LI73736: RUNNING A QUERY CONTAINING A PREDICATE USING A MAX/MIN AGGREGATE ON A CONSTANT MAY CRASH THE INSTANCE (ONLY IN FIX PACK 5.)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A query containing a predicate on the output of a MAX or MIN
    function applied on a constant may crash the DB2 instance with a
    SIGSEGV.
    
    An example scenario for such an abend to occur follows:
    
    CREATE TABLE T1 (C1 INT);
    SELECT  MAX_COL
    FROM    (SELECT MAX(1) AS MAX_COL
             FROM   T1
             GROUP  BY C1
            ) AS T
    WHERE   MAX_COL = 1;
    
    The stack trace may look something like:
    
    pp__17sqlnq_exphxpchildFv
    address: 0xnnnnnnnnnnnnnnnn
    sqlnr_gb_ppdto_action__FP10sqlnr_qrwaPiP14sqlnr_progress
    sqlnr_comp__FPiiP16sqlnr_rule_stateP10sqlnr_qrwaP14sqlnr_progres
    s
    sqlnr_seq__FPiP10sqlnr_qrwaP14sqlnr_progressP12sqlnr_rclass
    sqlnr_rcc__FiP10sqlnr_qrwaPiP14sqlnr_progress
    ...
    

Local fix

  • As a workaround to avoid the crash, remove any MAX/MIN
    aggregations on constants, i.e., the above query can be
    semantically equivalently rewritten as:
    
    SELECT  MAX_COL
    FROM    (SELECT 1 AS MAX_COL
             FROM   T1
             GROUP  BY C1
            ) AS T
    WHERE   MAX_COL = 1;
    

Problem summary

  • USERS AFFECTED:  ALL (only on FixPack 5)
    
    PROBLEM DESCRIPTION:  Please refer to ERROR DESCRIPTION.
    
    PROBLEM SUMMARY:  Please refer to ERROR DESCRIPTION.
    

Problem conclusion

  • Problem was first fixed in version v9.1 FixPack 7.
    

Temporary fix

  • Please refer to the LOCAL FIX
    

Comments

APAR Information

  • APAR number

    LI73736

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-09-02

  • Closed date

    2009-04-24

  • Last modified date

    2009-04-24

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

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

    LI73738

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       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":"910","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
24 April 2009