Skip to main content

IZ94556: CRASH IN __CHARTOBYTELENGTH DURING JNI CALL DUE TO ZERO BYTE ALL OCATION


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace:
    
    The failing stack trace includes the following fragment:
    
    ...
    dbgMalloc +00000082 *PATHNAM
    _CharToByteLength +00000374 *PATHNAM
    IBMZOS_GetStringPlatformLength +0000007E *PATHNAM
    GetStringPlatformLength +00000072 *PATHNAM
    GetStringPlatformLength +0000001C *PATHNAM
    ...
    

Local fix

Problem summary

  • __CharToByteLength function used strlen to calculate the string
    size. For unicode string, the first byte can be '00' for DBCS
    character. If the first character in the string is a DBCS
    character with first byte '00', then the length of the string is
    calculated as 0 and result in zero byte allocation.
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR12 FP5
    .
    JVM is modified to correctly calculate the unicode string size
    and there by avoid zero byte allocation.
    .
    To obtain the fix:
    Install build 20110422 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ94556

  • Reported component name

    JAVA 5 CLASS LI

  • Reported component ID

    620500130

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-02-09

  • Closed date

    2011-04-26

  • Last modified date

    2011-04-26

  • 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

    JAVA 5 CLASS LI

  • Fixed component ID

    620500130

Applicable component levels

  • R500 PSN

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Java Class Libraries


Software version:
5.0


Reference #:
IZ94556


Modified date:
2011-04-26

Translate my page

Content navigation