IBM Support

PI26809: JAVA/LANG/STACKOVERFLOWERROR WITH LOOP IN NTV_MAPDIRECTBYTEBUFF

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Javacore produced shows:
    
    "java/lang/StackOverflowError"
    
    
    The thread in error shows native routine
    SAFCredentialsServiceImpl.ntv_isMixedCasePWEnabled
    calling java to write a trace. In order to write the
    trace native, routine ntv_mapDirectByteBuff is
    called which then calls java to write a trace. This
    results in a loop though because it needs to call native routine
     ntv_mapDirectByteBuff again to write the trace.
    
    loop is
    at
    com/ibm/ws/zos/core/utils/internal/NativeUtilsImpl.ntv_mapDirect
    ByteBuff
    er(Native Method)
    at
    com/ibm/ws/zos/core/utils/internal/NativeUtilsImpl.mapDirectByte
    Buffer(N
    ativeUtilsImpl.java:127)
    at
    com/ibm/ws/zos/core/utils/internal/DirectBufferHelperImpl.mapDir
    ectByteB
    uffer(DirectBufferHelperImpl.java:341)
    at
    com/ibm/ws/zos/core/utils/internal/DirectBufferHelperImpl.getSeg
    ment(Dir
    ectBufferHelperImpl.java:311)
    at
    com/ibm/ws/zos/core/utils/internal/DirectBufferHelperImpl.getSli
    ce(Direc
    tBufferHelperImpl.java:160)
    at
    com/ibm/ws/zos/logging/internal/NativeTraceHandler.getTraceObjec
    ts(Nativ
    eTraceHandler.java:370)
    at
    com/ibm/ws/zos/logging/internal/NativeTraceHandler.writeNativeTr
    ace(Nati
    veTraceHandler.java:349)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile on z/OS              *
    ****************************************************************
    * PROBLEM DESCRIPTION: java/lang/StackOverflowError when all   *
    *                      native tracing is enabled.              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The thread in error shows native routine
    SAFCredentialsServiceImpl.ntv_isMixedCasePWEnabled
    calling java to write a trace. In order to write the
    trace native, routine ntv_mapDirectByteBuff is
    called which then calls java to write a trace. This
    results in a loop because it needs to call native routine
    ntv_mapDirectByteBuff again to write the trace.
    

Problem conclusion

Temporary fix

  • Do not turn on all tracing, zos.native.*=all or
    zos.native.04.007=all.
    

Comments

APAR Information

  • APAR number

    PI26809

  • Reported component name

    LIBERTY - Z/OS

  • Reported component ID

    5655W6514

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-01

  • Closed date

    2014-10-10

  • Last modified date

    2014-11-11

  • 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

    LIBERTY - Z/OS

  • Fixed component ID

    5655W6514

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022