IBM Support

IV58314: JVM CRASHES WITH INVALID FREE IF RUN WITH EMPTY LD_LIBRARY_PATH

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: *** glibc detected ***
    /bluebird/builds/bld_191708/sdk/xi3270_27/jre/bin/java: free():
    invalid pointer: 0xffa4462c ***
    .
    Stack Trace:
    /lib/libc.so.6<OSB>0x675d35<CSB>/lib/libc.so.6(cfree+0x59)<OSB>0
    x679da9<CSB>/bluebird/builds/bld_191708/sdk/xi3270_27/jre/lib/i3
    86/default/libjvm.so(JNI_CreateJavaVM+0x8c8)<OSB>0xf755c99b<CSB>
    /bluebird/builds/bld_191708/sdk/xi3270_27/jre/lib/i386/j9vm/libj
    vm.so(JNI_CreateJavaVM+0x3b1)<OSB>0xf7fb8e4b<CSB>/bluebird/build
    s/bld_191708/sdk/xi3270_27/jre/bin/../lib/i386/jli/libjli.so<OSB
    >0xf7f8630e<CSB>/lib/libpthread.so.0<OSB>0x79b912<CSB>/lib/libc.
    so.6(clone+0x5e)<OSB>0x6e17ce<CSB>
    .
    

Local fix

  • Ensure the LD_LIBRARY_PATH is not an empty string
    

Problem summary

  • The JVM incorrectly frees a pointer returned by getenv if the
    LD_LIBRARY_PATH is an empty string.
    

Problem conclusion

  • This APAR will be fixed in the following Java Releases:
       7 R1 SR1       (7.1.1.0)
    .
    The JVM has been updated to correctly track pointers returned by
    getenv.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV58314

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    270

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-31

  • Closed date

    2014-03-31

  • Last modified date

    2014-03-31

  • 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

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R270 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022