IBM Support

IV53349: CRASH IN ZIPFILE.READ()

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Multiple threads reading a zip file using the
    ZipFile API can cause a JVM crash.
    .
    Stack Trace: Native stack:
    ZIP_Read () (libzip.so)
    Java_java_util_zip_ZipFile_read () (libzip.so)
    Java stack:
    java/util/zip/ZipFile.read(Native Method)
    
    java/util/zip/ZipFile.access$1200(ZipFile.java:47(Compiled
    Code))
    java/util/zip/ZipFile$ZipFileInputStream.read(ZipFile.java:501()
       java/util/zip/ZipFile$1.fill(ZipFile.java:269(Compiled Code))
    
    java/util/zip/InflaterInputStream.read(InflaterInputStream.java:
    152()java/util/zip/InflaterInputStream.read(InflaterInputStream.
    java:116()
    .
    This error may be intermittent in nature.
    

Local fix

Problem summary

  • In a multi-threaded environment, accessing the same Zipfile by
    multiple threads can result in a crash if one thread tries to
    read a stream which is just closed by another thread. The
    streams in Zipfile is not thread safe and it is application
    responsibility to ensure the thread safety. However, it is
    better to avoid a crash.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR16
    6.0.1 SR8
    7.0.0 SR7
    7.1.0 SR1
    .
    The JDK has been updated to introduce a validation to check
    whether the stream is already closed before reading the stream.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV53349

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-12-16

  • Closed date

    2014-02-27

  • Last modified date

    2014-04-30

  • 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 CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

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

Document Information

Modified date:
14 December 2020