IBM Support

IC79927: 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 CODE: 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:                                              *
    * DB2 UDB Version 9.8                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Version 9.8 FixPack 5.                            *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 UDB Version 9.8 FixPack 5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC79927

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    980

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-21

  • Closed date

    2012-06-15

  • Last modified date

    2012-06-15

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

    IC76489

  • 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

  • R980 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.8

Reference #: IC79927

Modified date: 15 June 2012