JDK-6358524 : "bit length overflow" messages from zlib-1.1.3/trees.c
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 6,9
  • Priority: P5
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2005-12-02
  • Updated: 2017-08-09
  • Resolved: 2017-08-09
Related Reports
Relates :  
Description
During Windows 64bit builds we see messages from 'jar' like:

bit length overflow
code 3 bits 6->7
code 16 bits 6->7

bit length overflow
code 6 bits 5->6

bit length overflow
code 16 bits 7->6
code 17 bits 5->6

They appear to be harmless (no data corruption has been detected) but should be investigated.

Comments
it appears these are "warning" message from tree.c while dealing with "overflow bit length". The offending "overflow" issue is being corrected. it might be desired to turn these warnings off during the runtime, but we currently prefer not to touch the zlib implementation (simply copy/paste to drop the zlib src into idk repository).
2017-08-09

This may be harmless, but should be investigated regardless: https://bugzilla.mozilla.org/show_bug.cgi?id=431950 Currently line 530 of: https://github.com/madler/zlib/blob/master/trees.c
2016-10-01

I currently get 1552 errors when creating jmods on Windows 64 bit debug builds of JDK 9, and a few on tests that depend on jar. Code is triggered here: private native int deflateBytes(long addr, byte[] b, int off, int len, int flush); bit length overflow code 18 bits 6->7 build/windows-x86_64-normal-server-fastdebug /cygdrive/d/java/ws/dev/build/windows-x86_64-normal-server-fastdebug/configure-support/bin/fixpath.exe -c /cygdrive/d/java/ws/dev/build/windows-x86_64-normal-server-fastdebug/jdk/bin/jmod -J-XX:+UseSerialGC -J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1 create \ --module-version 9-internal \ --os-name Windows \ --os-arch amd64 \ --os-version 5.2 \ --module-path /cygdrive/d/java/ws/dev/build/windows-x86_64-normal-server-fastdebug/images/jmods \ --exclude '**{_the.*,*.diz,*.debuginfo,*.dSYM/**,*.pdb,*.map}' \ --class-path /cygdrive/d/java/ws/dev/build/windows-x86_64-normal-server-fastdebug/jdk/modules/java.compiler /cygdrive bit length overflow code 4 bits 6->7 bit length overflow code 18 bits 6->7
2016-09-30