IBM Support

IT06419: Crash with SIGSEGV in function sqlrivsum when using SUM and GROUPY with a subselect that contains UNNEST.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A query that uses SUM, GROUP BY and UNNEST can trap with a
    SIGSEGV if the SUM is applied as a vector aggregation.
    To cause the trap, a query must be issued and has a SUM and
    GROUP BY with a sub-select that contains UNNEST, an example:
    
    SELECT sum(c1)
    FROM    ( SELECT t.c1
         FROM UNNEST(arrgv1) AS t (c1) )
    GROUP BY c1@
    
    This will cause a trap with SIGSEGV with sqlrivsum on the top of
    the stack as a result of bad input going into the vector sum.
    
    Stack example:
    
    
    sqlrivsum
    sqlsVectorize
    sqlsChecknVectorize
    sqlsopen
    sqlrsopen
    sqlrsopen
    sqlrisrt
    sqlriunn
    sqlriset
    sqlriSectInvoke
    sqlrr_process_fetch_request
    sqlrr_fetch
    sqljs_ddm_cntqry
    sqljsParseRdbAccessed
    sqljsParse.fdpr.clone.104
    sqljsSqlam
    sqljsDriveRequests
    sqljsDrdaAsInnerDriver
    RunEDU
    EDUDriver
    sqloEDUEntry
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 UDB Version 10.1 fix pack 5                   *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 UDB Version 10.1 fix pack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT06419

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-01-12

  • Closed date

    2015-07-13

  • Last modified date

    2015-07-13

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

    IT03738

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

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

Document Information

Modified date:
13 July 2015