IBM Support

IC76489: DB2TOP DUMPS CORE WHEN ENTERING AN INVALID SQL HASH STRING

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • db2top can dump core when an ivalid SQL HASH STRING was entered.
    
    Reproduction steps:
    
    1) db2top -d sample
    
    2) D
    
    3) L
    
    4) ENTER SQL HASH STRING:
    SELECT AAAAAAAAAAAAAAAAA from xxxxxxx.XX_XXXX_XXXX WHERE TAG =
    '10000003-0000-9000-3030-303630303137' AND
    BBBBBBBBBBBBBBBBBBBBBBB LIKE 'MIGRA%' AND CCCCCCCCCCCC =
    'EXTERNAL' AND LABEL <= ? AND LABEL > ??
    
    In this case something like:
    
    4) ENTER SQL HASH STRING: 00000000070889701463804304
    
    is expected. Anyways there should not be a core.
    
    The failing stack is:
    
    Segmentation fault in pthread_kill at 0x9000000007a57d0 ($t1)
    0x9000000007a57d0 (pthread_kill+0xb0) e8410028          ld
    r2,0x28(r1)
    (dbx) where
    pthread_kill(??, ??) at 0x9000000007a57d0
    _p_raise(??) at 0x9000000007a5048
    finish() at 0x100002270
    interrupt(??, ??, ??) at 0x100055cc0
    wborder_set(??, ??, ??, ??, ??, ??, ??, ??) at 0x90000003c6dae44
    box32(??, ??, ??) at 0x90000003c6dd8bc
    mybox() at 0x100022f24
    putMsg() at 0x1000225ac
    do_sqltext() at 0x100037cc4
    select_sqltext() at 0x1000375a0
    do_detail() at 0x10002c5fc
    do_foreground() at 0x1000011f4
    main() at 0x1000009fc
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * see ERROR DESCRIPTION                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 5.                       *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC76489

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-19

  • Closed date

    2011-12-08

  • Last modified date

    2011-12-08

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

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

    IC79927

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       UP

  • R970 PSN

       UP

  • R980 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC76489

Modified date: 08 December 2011