IBM Support

IT17492: Tab key causes runmqsc to crash on Solaris Sparc

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • In runmqsc, hitting the TAB key causes a SIGBUS with this call
    stack.
    
      __sighndlr()
      ---- called from signal handler with signal 10 (SIGBUS) ------
      _wcschr()
      fn_complete()
      uscCommandComplete()
      el_wgets()
      el_gets()
      uscGetLine()
      getLine()
      uscReadData()
      uscGetCommand()
      uscIOThread()
      ThreadMain()
    
    Failure Data Capture (FDC) records are written to
    /var/mqm/errors with the following information:
    
    Probe Id          :- XC130003
    Component         :- xehExceptionHandler
    Program Name      :- runmqsc
    Comment1          :- SIGBUS: invalid address alignment(address)
    /opt/mqm/lib64/libmqmcs.so:xcsPrintStackForCurrentThread+0xe8
    /opt/mqm/lib64/libmqmcs.so:0x120f50
    /opt/mqm/lib64/libmqmcs.so:signalHandlerInternal+0x3c
    /opt/mqm/lib64/libmqmcs.so:PrepareDumpAreas+0x140
    /opt/mqm/lib64/libmqmcs.so:xcsFFSTFn+0x3394
    /opt/mqm/lib64/libmqmcs.so:xehExceptionHandler+0xe44
    /lib/sparcv9/libc.so.1:0xd8c28
    /lib/sparcv9/libc.so.1:0xcc79c
    /lib/sparcv9/libc.so.1:0xcc9a8
    /lib/sparcv9/libc.so.1:wcschr+0x4 [ Signal 2062801888 (?)]
    /opt/mqm/lib64/libmqmr.so:0x3ba8bc
    /opt/mqm/lib64/libedit.so:el_wgets+0x4a4
    /opt/mqm/lib64/libedit.so:el_gets+0x34
    /opt/mqm/lib64/libmqmr.so:uscGetLine+0x5c
    /opt/mqm/lib64/libmqmr.so:uscReadData+0x470
    /opt/mqm/lib64/libmqmr.so:uscGetCommand+0x108
    /opt/mqm/lib64/libmqmr.so:uscIOThread+0x68
    /opt/mqm/lib64/libmqmcs.so:0x17e174
    /lib/sparcv9/libc.so.1:0xd8afc
    MQM Function Stack
    uscGetCommand
    uscReadData
    xcsFFST
    
    Probe Id          :- PC067101
    Component         :- uscReadData
    Program Name      :- runmqsc
    MQM Function Stack
    uscGetCommand
    uscReadData
    xcsFFST
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users who hit the TAB key in runmqsc on Solaris SPARC.
    
    
    Platforms affected:
    Solaris SPARC
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    The TAB key can be used to perform command-completion if
    appropriate libraries are available on the system.
    
    On Solaris SPARC, MQ calls the libedit library routine
    fn_complete().  This then calls a libc library routine _wcschr()
    passing a pointer that MQ gave to fn_complete().
    
    MQ was passing a pointer to fn_complete() that was not aligned
    in memory sufficiently for the call to _wcschr().
    
    The call from fn_complete() to _wcschr() was made with this
    insufficiently aligned pointer, and the system generated a
    SIGBUS exception as a result.
    

Problem conclusion

  • MQ product code has been changed to allocate a piece of memory
    that is certain to be aligned sufficiently, so as to prevent the
    SIGBUS failure from happening.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v9.0 CD    9.0.2
    v9.0 LTS   9.0.0.1
    
    The latest available maintenance can be obtained from
    'WebSphere MQ Recommended Fixes'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'WebSphere MQ
    Planned Maintenance Release Dates'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT17492

  • Reported component name

    IBM MQ BASE M/P

  • Reported component ID

    5724H7261

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-10-13

  • Closed date

    2017-01-17

  • Last modified date

    2017-06-01

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

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

Fix information

  • Fixed component name

    IBM MQ BASE M/P

  • Fixed component ID

    5724H7261

Applicable component levels

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
01 June 2017